Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maifeeulasad opened this issue Jan 15, 2025 · 2 comments · May be fixed by #214
Open

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

maifeeulasad opened this issue Jan 15, 2025 · 2 comments · May be fixed by #214

Comments

@maifeeulasad
Copy link

Full log:

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

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/user/.local/lib/python3.10/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.

[1]    46903 IOT instruction (core dumped)  python3 gaze-detection-video.py
@maifeeulasad
Copy link
Author

Solution:

pip3 uninstall opencv-python
pip3 install opencv-python-headless

@maifeeulasad
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant