benjiebob / SMALViewer

PyQt5 app for viewing SMAL meshes
GNU General Public License v3.0
26 stars 5 forks source link

ABOUT PyQt5 #5

Open simonlisss opened 3 years ago

simonlisss commented 3 years ago

Hello, Ask for your help. When I run python smal_viewer.py I met the error as follow:

QObject::moveToThread: Current thread (0x5636a4374280) is not the object's thread (0x5636a7396d00). Cannot move to target thread (0x5636a4374280)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/lisicheng/anaconda3/envs/smalviewer/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.

Aborted (core dumped)

I tried to reinstall pyqt5 again but useless, could you please tell me how to solve it?

mshooter commented 1 year ago

Hi @simonlisss,

I solved it by using these commands: pip uninstall python-opencv pip install python-opencv-headless