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 platform issue in benchmark #70

Closed
ammohamedds opened this issue Jul 5, 2022 · 1 comment
Closed

Qt platform issue in benchmark #70

ammohamedds opened this issue Jul 5, 2022 · 1 comment

Comments

@ammohamedds
Copy link

ammohamedds commented Jul 5, 2022

When I run notebook_benchmark in jupyter it works fine, plots of benchmark appear, while executing it on pycharm, the below error appears due to a Qt platform issue even though I've reinstalled it several times and the agents are trained and all codes are implemented successfully except only ploting part.

##################### Error#############################
QObject::moveToThread: Current thread (0x20247e0) is not the object's thread (0x5c0a590).
Cannot move to target thread (0x20247e0)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/ahmed/PhD/CyberBattleSim/CyberBattleSim/cybervenv/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.
###########################################################

Has anyone encountered such a problem?

@ammohamedds
Copy link
Author

The issue is related to qt in Linux, so if you use pycharm,, delete/remove plugins from cv2 folder
/venv/lib/python3.7/site-packages/cv2/qt/plugins

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

No branches or pull requests

1 participant