wayland support in wheels on Pypi

Charles peacech at gmail.com
Mon Feb 17 08:32:00 GMT 2025


Just set QT_DEBUG_PLUGINS [1], check where it tries to load the plugins,
and if it is a wrong path, fix it using the methods in [2].

As a python application it isn't always clear where the application path is
which is used to load the plugins.

[1] https://doc.qt.io/qt-6/debug.html#environment-variables-recognized-by-qt
[2] https://doc.qt.io/qt-6/deployment-plugins.html

On Mon, Feb 17, 2025 at 3:07 PM Sergio Callegari <sergio.callegari at gmail.com>
wrote:

> Hi,
>
> I have noticed a strange behavior from applications using PyQt5 and
> PyQt5-Qt5 (seen using the python IDE spyder).
>
> When I run spyder after having installed it from the packages provided by
> my distribution (manjaro), spyder runs as a wayland application on my
> system.
>
> However, if I install spyder using pip, uv, or pipx (namely installation
> methods that rely on pre-built wheels from pypi), then spyder cannot run
> anymore as a wayland application. From its logs, I see that it cannot find
> the appropriate Qt plugin:
>
> Could not find the Qt platform plugin “wayland” in “”
>
> Now I wonder if there might be something missing in the pre-built wheels
> of PyQt5 distributed on Pypi.
>
> Being able to have Qt applications working as wayland applications could
> be beneficial on systems with two displays with different resolutions,
> which is a setup not well supported by some compositors with Xwayland.
>
> Thanks for the attention and your help,
>
> Sergio
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20250217/02368d78/attachment.htm>


More information about the PyQt mailing list