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.xcb: could not connect to display :0 #30

Open
karanjakhar opened this issue Jan 10, 2021 · 8 comments
Open

qt.qpa.xcb: could not connect to display :0 #30

karanjakhar opened this issue Jan 10, 2021 · 8 comments

Comments

@karanjakhar
Copy link

Please guide me. I tried many ways but unable to solve this issue.
Screenshot from 2021-01-10 18-51-31

@electricalgorithm
Copy link

Could you send us your CUDA version?

@carlosedubarreto
Copy link

@karanjakhar
to see the cuda version you can type.

nvcc --version

here is an example of the result
image

@karanjakhar
Copy link
Author

Screenshot from 2021-01-11 18-39-33

@sohaiblaraba
Copy link

This is related to some conflict between OpenCV and PyQT.

Try uninstalling both and reinstall them using these versions that seem to work together with no problem.

opencv-python==4.1.0.25 and pyqt 5.9.2

@ivanodapice
Copy link

dockerlog
terminal
I have also the same problem, tried to uninstall and install the specified version of pyqt and opencv-python but it didn't solve the situation. Ubuntu 20.04.1 LTS

@rklasen
Copy link

rklasen commented Jan 15, 2021

This is related to some conflict between OpenCV and PyQT.

Try uninstalling both and reinstall them using these versions that seem to work together with no problem.

opencv-python==4.1.0.25 and pyqt 5.9.2

That worked for me. It can be done in the requrements.txt as well, and then the docker image works too. i.e. change pyqt5==5.14.2 (or what it was, i forgot) to pyqt5==5.9.2 and rebuild the docker image with docker-compose up --build # Expect some time before UI appears. Tested on Ubuntu 20.10, nvidia-drivers-450 and cuda 11 on host. It seems it uses cuda 10 automatically in the container.

@sohaiblaraba
Copy link

This is related to some conflict between OpenCV and PyQT.
Try uninstalling both and reinstall them using these versions that seem to work together with no problem.
opencv-python==4.1.0.25 and pyqt 5.9.2

That worked for me. It can be done in the requrements.txt as well, and then the docker image works too. i.e. change pyqt5==5.14.2 (or what it was, i forgot) to pyqt5==5.9.2 and rebuild the docker image with docker-compose up --build # Expect some time before UI appears. Tested on Ubuntu 20.10, nvidia-drivers-450 and cuda 11 on host. It seems it uses cuda 10 automatically in the container.

I happy that it worked for you :))

@zhywanna
Copy link

dockerlog terminal I have also the same problem, tried to uninstall and install the specified version of pyqt and opencv-python but it didn't solve the situation. Ubuntu 20.04.1 LTS

Same. Did you solve this problem?

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

7 participants