1

I am currently trying to run a program written to use PyQt5 in a Wayland session on KDE Neon, but I am encountering this error when I attempt to launch it:

This application failed to start because it could not find or load the Qt platform plugin "wayland"
in "".

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Reinstalling the application may fix this problem.

It was suggested to me that I make sure that qtwayland5 is already installed on my system, and that is the case, so that doesn't appear to be the source of the issue.

Additionally, I have confirmed that this issue persists with using both the version of PyQt5 found in my distro's repos as well as with the latest version of PyQt5 installed within a virtualenv.

  • XCB is an X11 client-side protocol binding, which suggests you're actually using X11 (which is meant for backwards compatibility), either via an X11 back-end of Wayland, or just using an X11 session. – Alex Huszagh Mar 31 '18 at 02:43
  • Which distro are you using? And specifically which package(s) are you using? How did you install Qt and PyQt5? – bobbaluba Apr 03 '18 at 07:30

1 Answers1

0

If you don't mind running on xcb instead of Wayland, you could always unset QT_QPA_PLATFORM=wayland (which is set on login with KDE wayland) and your app will run under XWayland.

bobbaluba
  • 3,584
  • 2
  • 31
  • 45