PyQT on Debian12
-
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.
-
@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?@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