<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>A have a larger Python program, based on PyQt5, and running well
on Linux, Win, Mac. I tried to convert to PyQt6 and failed.</p>
<p>I changed all "PyQt5" to "PyQt6", and used the tool from K.Mulier
(<a class="moz-txt-link-freetext" href="https://stackoverflow.com/a/72658216/6178507">https://stackoverflow.com/a/72658216/6178507</a>) to convert the
enums, which - so far- seemed to have worked ok. <br>
</p>
<p>However, upon starting, the program crashes at the execution of:</p>
<p>gapp = QApplication([])</p>
<p>with the message:</p>
<p><font face="Courier New, Courier, monospace">qt.qpa.plugin: From
6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt
xcb platform plugin.<br>
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in ""
even though it was found.<br>
This application failed to start because no Qt platform plugin
could be initialized. Reinstalling the application may fix this
problem.<br>
Available platform plugins are: wayland-egl, linuxfb, wayland,
vnc, vkkhrdisplay, minimal, eglfs, minimalegl, offscreen, xcb.</font><br>
</p>
<p>I had seen this obscure message a few years earlier with PyQt5.
Back the it could be "fixed" by executing: <br>
sudo apt-get install libxcb-xinerama0</p>
<p>Today with PyQt6 this does NOT help.</p>
<p>What now?Any guidance?<br>
</p>
<p><br>
</p>
</body>
</html>