wayland support in wheels on Pypi
Sergio Callegari
sergio.callegari at gmail.com
Wed Feb 19 22:33:39 GMT 2025
Debugging as suggesting reveals that, as suspected, |pyqt5-qt5| does not
contain the wayland plugin, that is not in the wheel for this package.
Trying to point to my system QT5 plugins does not work either. They are
recognized but they are not binary compatible, there must be some
difference in the toolchain.
The pyqt5-qt5 package is said to contain the subset of a Qt installation
that is required by PyQt5. As of today that should probably include also
the wayland plugin, or there should be another package on pypi providing it.
Any clue?
Sergio
On 17/02/2025 09:32, Charles wrote:
> 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/20250219/114b1ece/attachment.htm>
More information about the PyQt
mailing list