PyQT on Debian12
-
Hi guys... i have to start a docker with a python application wrote in pyQT6 but have some errors
i'm root and when i try to execute the docker ->Authorization required, but no authorization protocol specified qt.qpa.xcb: could not connect to display :11.0 qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" 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: vnc, vkkhrdisplay, linuxfb, minimalegl, minimal, offscreen, xcb, wayland, wayland-egl, eglfs.
i'm on Debian 12(bookworm), Xfce 4.18, GTK 3.24.38
-
Hi and welcome to devnet,
Did you install the libraries suggested in the error message ?
-
S SGaist moved this topic from General and Desktop on
-
That message is showed if i log in the server like root.
If i log in the server like user, open a shell, get root privileges (needed to execute the docker) and try to start the docker, i get
qt.qpa.xcb: could not connect to display qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" 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: vnc, vkkhrdisplay, linuxfb, minimalegl, minimal, offscreen, xcb, wayland, wayland-egl, eglfs.
-
@jsulm said in PyQT on Debian12:
@Mussiu Do you mean it works if you run your app as regular user?
And how is Docker involved here? Is your app part of Docker container?
Did you install libxcb-cursor0 in this container?-
Nono, just 2 similar errors (first post in this topic is returned when i logged as root, next error post is returned when i logged as user)
-
I have a docker that should execute a program with a pyqt GUI. It works when i execute it on a old CentOs 7
-
The container is on an Almalinux and in the Dockerfile there are all libs needed
-
-
Be aware that using
xhost +
disables lots of securities. -
If memory serves well, you can try with something like
xhost +local:<username>
. -
S SGaist has marked this topic as solved on