Error: qt.qpa.xcb: could not connect to display
-
Hello there,
Greetings of the day,I am getting the below error of qt.qpa.plugin when running in the docker container. The project works fine on the local Ubuntu:18.04.
Error statement: *qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/miniconda/lib/python3.9/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.
Aborted (core dumped)*
I am using ubuntu:18.04 OS on top of docker container.
Any comments for solving the error are appreciated.
Thanks
-
@Jeetu said in Error: qt.qpa.xcb: could not connect to display:
Any comments for solving the error are appreciated.
You do not have running X server in your container it seems
-
@jsulm Yes, you are right but how do I get one?
Thank you for responding, your response is appreciated.For better understanding,
I am running my python code inside Docker container on EC2(Ubuntu:18.04) instance.
Looking forward to get the solution.
Thanks -
@Jeetu I'm not a Docker expert. You should search for running GUI applications in Docker. For example: https://l10nn.medium.com/running-x11-applications-with-docker-75133178d090