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

how to deal the error : qt.qpa.plugin: Could not load the Qt platform plugin "xcb" #38

Open
zsdfaker opened this issue Dec 2, 2020 · 10 comments

Comments

@zsdfaker
Copy link

zsdfaker commented Dec 2, 2020

when i run kitti_object.py i get the error
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/zsder/anaconda3/envs/tensorflow/lib/python3.7/site-packages/cv2/qt/plugins" even though it was found.
in debug log i get follow message:

Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/home/zsder/anaconda3/envs/tensorflow/bin/platforms" ...
loaded library "/home/zsder/anaconda3/envs/tensorflow/lib/python3.7/site-packages/cv2/qt/plugins/platforms/libqxcb.so"
QObject::moveToThread: Current thread (0x55c738b00180) is not the object's thread (0x55c738fe29f0).
Cannot move to target thread (0x55c738b00180)

my work space:
ubuntu 20.04
python 3.7
opencv 4.4.0
pyqt 5.9.2
pyqt5 5.15.1

@arxidinakbar
Copy link
Contributor

arxidinakbar commented Dec 10, 2020

@zsdfaker same error, did you find out anything?

@Jieqianyu
Copy link

Maybe the plugin shipped with opencv was not suited for this version of QT.
It may solve this to install opencv-python==3.4.10.35

@shijinghuihub
Copy link

I have reinstalled mayavi according to the version in this link https://blog.csdn.net/qq_42266322/article/details/125387739

@shijinghuihub
Copy link

I have reinstalled mayavi according to the version in this link https://blog.csdn.net/qq_42266322/article/details/125387739

And this: pip install opencv-python==4.1.2.30

@ansonlcy
Copy link

@shijinghuihub Thank you very much! You have solved my problem!

@ZhongYupei
Copy link

@shijinghuihub sorry ,it didn't work for me

@Liuyaqi99
Copy link

thanks,it helps

I have reinstalled mayavi according to the version in this link https://blog.csdn.net/qq_42266322/article/details/125387739

@PercyJia95
Copy link

Just do "pip install opencv-python==4.1.2.30" without going to that link, this works for me.

@zenjieli
Copy link

zenjieli commented Mar 9, 2023

That is the fix. Why not update the readme?

@gxmc0ming
Copy link

gxmc0ming commented Mar 23, 2023

I have reinstalled mayavi according to the version in this link https://blog.csdn.net/qq_42266322/article/details/125387739

按照这个版本重新安装环境,可以用

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

10 participants