Problem running Siril Catalog Installer Pyhton Scrip

I am running Fedora Linux 43 KDE Plasma.
KDE Plasma Version: 6.5.3
KDE Frameworks Version: 6.20.0
QT Version: 6.10.1
Kernel Version: 6.17.10-300.fc43.x86_64
Graphics Platform: Wayland

Issue: When trying to run the python script: Siril_catalog_Installer.py, I get the following error.
I have tried reinstalling Siril with no joy.

WARNING: could not connect to display
15:44:38: WARNING: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
15:44:38: WARNING: Could not load the Qt platform plugin “xcb” in “” even though it was found.
15:44:38: WARNING: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
15:44:38: Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, wayland-brcm, wayland-egl, wayland, xcb.
15:44:39: Python process (PID: 1239) terminated by signal 6

I posted abut this on Reddit, only solution anyone could think of is to just login to the xorg session instead of wayland. But this issue will need fixing soon as X11 is getting dropped by many distros in the next years or so

But so far, Wayland is not really ready to replace X11.

I posted the same issue in the first half of this post and didn’t get that error when using the AppImage, also Fedora 43 (Nobara)

Operating System: Debian GNU/Linux 13
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.12.57+deb13-amd64 (64-bit)
Graphics Platform: Wayland

The following works for me.

Line 1062 of the Siril_Catalog_Installer.py script hard-codes the use of xcb.

os.environ['QT_QPA_PLATFORM'] = 'xcb' # Force XWayland: Wayland doesn't seem to work with PyOpenGL

I replaced that line with this

os.environ['PYOPENGL_PLATFORM'] = 'glx'

(following OpenGL context error on Ubuntu 22.04.2 in wayland session · Issue #81 · yt-project/yt_idv · GitHub).

Now, although I see (different) warnings when I start the script

12:08:04: Starting script /home/ctucker/.var/app/org.siril.Siril/data/siril-scripts/core/Siril_Catalog_Installer.py
12:08:04: libEGL warning: failed to get driver name for fd -1
12:08:04: libEGL warning: MESA-LOADER: failed to retrieve device information
12:08:04: libEGL warning: failed to get driver name for fd -1
12:08:04: MESA: error: ZINK: failed to choose pdev
12:08:04: libEGL warning: egl: failed to create dri2 screen
12:08:04: Running command: requires
12:08:04: OK! This script is compatible with this version of Siril.

the dialogue box appears and I can successfully download the catalogues.

Setting it to glx did not work for me but then I checked my other post about the issue and it makes sense as glx wasn’t one of the options

14:16:01: WARNING: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
14:16:01: Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, wayland-brcm, wayland-egl, wayland, xcb.
14:16:02: Python process (PID: 11604) terminated by signal 6

Setting it to wayland works so thank you for that, now just have to work through the numerous 429 errors!

os.environ['QT_QPA_PLATFORM'] = 'wayland'

Hello tdg,

I’m glad you found a way that works for you.

Just to be clear, I didn’t change the option for the line

os.environ['QT_QPA_PLATFORM'] = 

from ‘xcb’ to ‘wayland’, as the comment seemed to suggest Wayland would have problems.

Instead, I replaced the whole line with

os.environ['PYOPENGL_PLATFORM'] = 'glx'

Anyway, as you say, all we now have to do is deal with the 429 issues!

Thanks for clarifying, I guess I was just too happy to get it working since my thread on the error had no traction.

Regarding the 429 errors, I’ve had success following the suggested changes to the Python script from this thread.

Sorry I didn’t notice this thread before.
I don’t know if anyone still needs a fix.

I have encountered the same issue and found a solution here.

Long story short:
I fixed the issue by installing libxcb-cursor-dev with the command:

sudo apt install libxcb-cursor-dev