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

Opencv gui issue #6

Closed
annaborn opened this issue Jan 28, 2020 · 3 comments
Closed

Opencv gui issue #6

annaborn opened this issue Jan 28, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@annaborn
Copy link
Contributor

annaborn commented Jan 28, 2020

The call cv2.namedWindow causes an issue:

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

The problem comes with the installation of opencv-python, that is required by paz and defined in setup.py. Current solution is to uninstall opencv-python, build and install the latest version of opencv manually.

The same problem was described in opencv-python github

@annaborn annaborn assigned annaborn and oarriaga and unassigned annaborn Jan 28, 2020
@annaborn annaborn added the bug Something isn't working label Jan 28, 2020
@annaborn
Copy link
Contributor Author

Here is small shell script to download and install the latest version of opencv (4.2.0)

mkdir opencv
cd opencv

wget https://github.com/opencv/opencv/archive/4.2.0.zip
unzip 4.2.0.zip

cd opencv-4.2.0
mkdir build
cd build

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
make -j8
sudo make install

cd ../../../
rm -rf opencv/

@oarriaga
Copy link
Owner

Hi Anna,
thank you for script. It would be helpful for anybody having this issue.
As of now I would like to leave the requirements as they are since I don't know for sure how many people are affected by this bug, and I feel it's better to have most people having "easy installation" with pip than all of the people having to build openCV.

@oarriaga
Copy link
Owner

I will close this for now since the problem is out of the hands of PAZ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants