qt.qpa.xcb: could not connect to display
-
Re: qt.qpa.xcb: could not connect to display :0
Hello,
I am trying to run a docker image and get a .png image as the output. However, the terminal wouldn't display the .png. I am currently using Ubuntu 20.04 and the error is:qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/opt/conda/lib/python3.7/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.Any help would be greatly appreciated!
-
Hi and welcome to devnet,
Your docker container does not provide any X server for your application to connect to. Do you really need that ?
Depending on what you want to do, this thread might help.