-
Notifications
You must be signed in to change notification settings - Fork 156
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
QObject::moveToThread: Current thread (0x55c07be39a60) is not the object's thread (0x55c07c164490). Cannot move to target thread (0x55c07be39a60) #11
Comments
Hi there: I have tested the code on several computers, but the error didn't occur. |
I was able to fix this problem by installing new pyqt. if you are using anaconda, just write down below: $ conda install pyqt |
I can confirm that. A working combination seems to be opencv-python==4.1.0.25 and pyqt 5.9.2 |
opencv-python==4.1.0.25 is not available for anaconda environment on Ubuntu. the version opencv-python==4.3.0.36 and above pyqt version 5.9.2 works fine! solved the issue for me! |
I resolved this error by downgrading from opencv-python 4.5.1.48 to opencv-python 4.3.0.36 with PyQt5 5.15.2 installed. |
Thank you very much thanks to @schauppi, I solved it |
It does not help me out. It has repeated the same error. |
make be change cv2.waitKey(0) to cv2.waitKey(1) can solve your problem |
|
Python3.8, ubuntu 18.04.1 ,
solves my problem |
Python 3.8, Ubuntu 18.04, Conda Environment, |
I am unable to downgrade my opencv, what options do I have ?
and
|
@fatbringer 4.3.0.36 is compatible for only certain python versions. Check your python version against the available builds.. https://pypi.org/project/opencv-python/4.3.0.36/ |
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. QObject::moveToThread: Current thread (0x261a670) is not the object's thread (0x3cd8880). |
Hello, Liu:
I am running your code on Ubuntu16.04, however, when I run python demo.py, the following two lines showed repeatedly:
QObject::moveToThread: Current thread (0x55c07be39a60) is not the object's thread (0x55c07c164490).
Cannot move to target thread (0x55c07be39a60)
Is it a normal phenomenon or there's something wrong with my operation? Thank you for your time.
The text was updated successfully, but these errors were encountered: