Failure in converting PyQt5 to PyQt6
Dmitry Shachnev
mitya57 at ubuntu.com
Mon Dec 30 10:59:21 GMT 2024
Hi,
On Mon, Dec 30, 2024 at 09:43:25AM +0100, ullix wrote:
> A have a larger Python program, based on PyQt5, and running well on Linux,
> Win, Mac. I tried to convert to PyQt6 and failed.
>
> I changed all "PyQt5" to "PyQt6", and used the tool from K.Mulier
> (https://stackoverflow.com/a/72658216/6178507) to convert the enums, which -
> so far- seemed to have worked ok.
>
> However, upon starting, the program crashes at the execution of:
>
> gapp = QApplication([])
>
> with the message:
>
> qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load
> the Qt xcb platform plugin.
Did you try installing the package which is mentioned in the error message?
In Debian/Ubuntu, that would be the latter one, libxcb-cursor0.
--
Dmitry Shachnev
More information about the PyQt
mailing list