eth-ait / aitviewer

A set of tools to visualize and interact with sequences of 3D data.
MIT License
497 stars 46 forks source link

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" #43

Closed zc-alexfan closed 8 months ago

zc-alexfan commented 8 months ago

Cannot launch the viewer.

Error:

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

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/zfan/miniconda3/envs/aitviewer/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.
zc-alexfan commented 8 months ago

This error is due to opencv.

Solution:

pip uninstall opencv-python
pip uninstall opencv-python-headless
pip install opencv-python-headless