pypr / pysph

A framework for Smoothed Particle Hydrodynamics in Python
http://pysph.readthedocs.io
Other
441 stars 137 forks source link

No traitsui.toolkits plugin could be loaded for qt4 #312

Closed qwerdf4 closed 1 year ago

qwerdf4 commented 3 years ago

No traitsui.toolkits plugin could be loaded for qt4

chhu commented 3 years ago

Haha, just had the same experience from a fresh pip3 install. For me this solved the issue: pip3 install pyqt5

adi18997 commented 2 years ago

Haha, just had the same experience from a fresh pip3 install. For me this solved the issue: pip3 install pyqt5

I am not able to see output just white screen after the code

prabhuramachandran commented 2 years ago

Is this resolved or is this still an issue?

JeanLeu commented 1 year ago

Hi, I met the same error "RuntimeError: No traitsui.toolkits plugin could be loaded for qt4". I tried to pip install pyqt5, but it didn't work. Do you have any idea?

cassiez2233 commented 1 year ago

Hi, I met the same error "RuntimeError: No traitsui.toolkits plugin could be loaded for qt4". I tried to pip install pyqt5, but it didn't work. Do you have any idea?

hello, have you solved this problem? I met the same one.

JeanLeu commented 1 year ago

Hi, I met the same error "RuntimeError: No traitsui.toolkits plugin could be loaded for qt4". I tried to pip install pyqt5, but it didn't work. Do you have any idea?

hello, have you solved this problem? I met the same one.

No, I still have these problem.

cassiez2233 commented 1 year ago

Can I ensure some questions? Did you use pyinstaller to pack the exe? when you packed it, was there some warnings like: "lib not found in folders like ‘pyqt’"? I want to know if the error of "RuntimeError: No traitsui.toolkits plugin could be loaded for qt4" is related to the dependency of dll in pyqt folders.

harshn05 commented 1 year ago

Any resolution to the issue?

prabhuramachandran commented 1 year ago

You need to install pyqt5 or pyside2 or pyside6; a compatible UI toolkit should resolve the issue. Otherwise dump VTK files using pysph dump_vtk and load it up with ParaView. Alternatively, use pysph binder and use the created notebook (this is quite limited but should let you at least view the data). This is really not a pysph issue per-se but more a Mayavi one so closing.