<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">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].</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">As a python application it isn't always clear where the application path is which is used to load the plugins.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">[1] <a href="https://doc.qt.io/qt-6/debug.html#environment-variables-recognized-by-qt">https://doc.qt.io/qt-6/debug.html#environment-variables-recognized-by-qt</a></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">[2] <a href="https://doc.qt.io/qt-6/deployment-plugins.html">https://doc.qt.io/qt-6/deployment-plugins.html</a></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Feb 17, 2025 at 3:07 PM Sergio Callegari <<a href="mailto:sergio.callegari@gmail.com">sergio.callegari@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  

    
    
    
  
  <div>
    <div>
      <p style="margin-bottom:19.2px;margin-top:0px">Hi,</p>
      <p style="margin-bottom:19.2px;margin-top:0px">I
        have noticed a strange behavior from applications using PyQt5
        and PyQt5-Qt5 (seen using the python IDE spyder).</p>
      <p style="margin-bottom:19.2px;margin-top:0px">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.</p>
      <p style="margin-bottom:19.2px;margin-top:0px">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:</p>
      <p style="margin-bottom:19.2px;margin-top:0px">Could
        not find the Qt platform plugin “wayland” in “”</p>
      <p style="margin-bottom:19.2px;margin-top:0px">Now
        I wonder if there might be something missing in the pre-built
        wheels of PyQt5 distributed on Pypi.</p>
      <p style="margin-bottom:19.2px;margin-top:0px">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.</p>
      <p style="margin-bottom:19.2px;margin-top:0px">Thanks
        for the attention and your help,</p>
      <p style="margin-bottom:19.2px;margin-top:0px">Sergio</p>
      <div title="MDH:SGksPGJyPjxicj5JIGhhdmUgbm90aWNlZCBhIHN0cmFuZ2UgYmVoYXZpb3IgZnJvbSBhcHBsaWNhdGlvbnMgdXNpbmcgUHlRdDUgYW5kIFB5UXQ1LVF0NSAoc2VlbiB1c2luZyB0aGUgcHl0aG9uIElERSBzcHlkZXIpLjxicj48YnI+V2hlbiBJIHJ1biBzcHlkZXIgYWZ0ZXIgaGF2aW5nIGluc3RhbGxlZCBpdCBmcm9tIHRoZSBwYWNrYWdlcyBwcm92aWRlZCBieSBteSBkaXN0cmlidXRpb24gKG1hbmphcm8pLCBzcHlkZXIgcnVucyBhcyBhIHdheWxhbmQgYXBwbGljYXRpb24gb24gbXkgc3lzdGVtLjxicj48YnI+SG93ZXZlciwgaWYgSSBpbnN0YWxsIHNweWRlciB1c2luZyBwaXAsIHV2LCBvciBwaXB4IChuYW1lbHkgaW5zdGFsbGF0aW9uIG1ldGhvZHMgdGhhdCByZWx5IG9uIHByZS1idWlsdCB3aGVlbHMgZnJvbSBweXBpKSwgdGhlbiBzcHlkZXIgY2Fubm90IHJ1biBhbnltb3JlIGFzIGEgd2F5bGFuZCBhcHBsaWNhdGlvbi4gRnJvbSBpdHMgbG9ncywgSSBzZWUgdGhhdCBpdCBjYW5ub3QgZmluZCB0aGUgYXBwcm9wcmlhdGUgUXQgcGx1Z2luOjxicj48YnI+Q291bGQgbm90IGZpbmQgdGhlIFF0IHBsYXRmb3JtIHBsdWdpbiAid2F5bGFuZCIgaW4gIiI8YnI+PGJyPk5vdyBJIHdvbmRlciBpZiB0aGVyZSBtaWdodCBiZSBzb21ldGhpbmcgbWlzc2luZyBpbiB0aGUgcHJlLWJ1aWx0IHdoZWVscyBvZiBQeVF0NSBkaXN0cmlidXRlZCBvbiBQeXBpLjxicj48YnI+QmVpbmcgYWJsZSB0byBoYXZlIFF0IGFwcGxpY2F0aW9ucyB3b3JraW5nIGFzIHdheWxhbmQgYXBwbGljYXRpb25zIGNvdWxkIGJlIGJlbmVmaWNpYWwgb24gc3lzdGVtcyB3aXRoIHR3byBkaXNwbGF5cyB3aXRoIGRpZmZlcmVudCByZXNvbHV0aW9ucywgd2hpY2ggaXMgYSBzZXR1cCBub3Qgd2VsbCBzdXBwb3J0ZWQgYnkgc29tZSBjb21wb3NpdG9ycyB3aXRoIFh3YXlsYW5kLjxicj48YnI+VGhhbmtzIGZvciB0aGUgYXR0ZW50aW9uIGFuZCB5b3VyIGhlbHAsPGJyPjxicj5TZXJnaW88YnI+PGJyPjxicj48dWwgY2xhc3M9ImRyb3Bkb3duLW1lbnUgdGV4dGNvbXBsZXRlLWRyb3Bkb3duIiBzdHlsZT0iZGlzcGxheTogbm9uZTsgcG9zaXRpb246IGFic29sdXRlOyB6LWluZGV4OiAxMDAwOyIgY29udGVudGVkaXRhYmxlPSJmYWxzZSI+PC91bD4=" aria-hidden="true" style="font-size:0px;padding:0px;margin:0px;height:0px;max-height:0px;max-width:0px;overflow:hidden;width:0px">&#8203;</div>
    </div>
  </div>

</blockquote></div>