pysph icon indicating copy to clipboard operation
pysph copied to clipboard

No traitsui.toolkits plugin could be loaded for qt4

Open qwerdf4 opened this issue 3 years ago • 3 comments

No traitsui.toolkits plugin could be loaded for qt4

qwerdf4 avatar May 08 '21 12:05 qwerdf4

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

chhu avatar May 08 '21 19:05 chhu

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

adi18997 avatar Dec 09 '21 05:12 adi18997

Is this resolved or is this still an issue?

prabhuramachandran avatar Feb 24 '22 15:02 prabhuramachandran

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?

JeanLeu avatar Jan 11 '23 08:01 JeanLeu

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.

cassiez2233 avatar Feb 10 '23 07:02 cassiez2233

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.

JeanLeu avatar Feb 10 '23 08:02 JeanLeu

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.

cassiez2233 avatar Feb 12 '23 06:02 cassiez2233

Any resolution to the issue?

harshn05 avatar May 13 '23 15:05 harshn05

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.

prabhuramachandran avatar May 14 '23 09:05 prabhuramachandran