Problem with results visualization

100 views
Skip to first unread message

Julio César Ocaña Lagos

unread,
Apr 14, 2021, 12:07:59 AM4/14/21
to pysph-users
Hi everyone, i installed pysph and all packages needed, and still can't watch the results in mayavi. I've tried the solutions in previous messages but mayavi still displays a black screen, and the command consoles shows the message "ValueError: Object arrays cannot be loaded when allow_pickle=False".
Any suggestion is highly appreciated

Thanks to everyone working on pysph

mutaa...@gmail.com

unread,
Apr 15, 2021, 6:18:36 AM4/15/21
to pysph-users
Can you give us more info about the OS, the python version, vtk version, mayavi verison, and the command you are using to view the output.

Best,
Abhinav

Julio César Ocaña Lagos

unread,
Apr 15, 2021, 12:51:03 PM4/15/21
to pysph-users
I'm working on Windows 10, python 3.7, vtk 9.0.1, mayavi 4.7.2 and i'm using the pysph view folder_output to watch the results and shows this classical black screen. Anything i'm doing wrong or missing? I've followed every suggestion and
solution from the pysph page and previous messages.


mayavi.png

mutaa...@gmail.com

unread,
Apr 16, 2021, 8:30:08 AM4/16/21
to pysph-users
I am not familiar with this error. Do you see any messages in the terminal window. Perhaps you could try a simple mayavi example, like, go to python do: 

`from mayavi.mlab import *' and then do
 'test_plot3d()'.

 This should open a window and show you some graphic plot. If this is busted then there could a problem with your graphics backend like pyqt5.

Julio César Ocaña Lagos

unread,
Apr 16, 2021, 1:02:59 PM4/16/21
to pysph-users
I did it, and it still displays a black screen, however i can see the plot only when i save it as an image file. Here's the screenshot i took. What graphics backend do you recommend? Thank you.scrsht.png

mutaa...@gmail.com

unread,
Apr 17, 2021, 8:20:51 AM4/17/21
to pysph-users
This may not be a backend issue, as your plot is correctly generated. This could be an issue with your AMD (as inferred from your terminal) graphics or if you are using some other graphics card the drivers needs to be updated. This is what I think.

Prabhu Ramachandran

unread,
Apr 18, 2021, 9:11:36 AM4/18/21
to Julio César Ocaña Lagos, pysph-users
On 4/14/21 09:37, Julio César Ocaña Lagos wrote:
Hi everyone, i installed pysph and all packages needed, and still can't watch the results in mayavi. I've tried the solutions in previous messages but mayavi still displays a black screen, and the command consoles shows the message "ValueError: Object arrays cannot be loaded when allow_pickle=False".
Any suggestion is highly appreciated
The latter error is possibly because you are using the pysph version from pypi.  Please use the github version (this is discussed here: https://pysph.readthedocs.io/en/latest/installation.html#downloading-pysph)

As regards the viewer being entirely black.  This could be an issue with your particular pyqt version.  What pyqt version have you used?  PySide2 has worked well for me.

If you have pyqt you can do this:
pip uninstall pyqt qt
pip install pyside2
and see if that works.

Are you using conda/anaconda? 

Regards,
Prabhu

Reply all
Reply to author
Forward
0 new messages