我目前正在尝试运行一个在KDE Neon上的Wayland会话中使用PyQt5的程序,但我在尝试启动它时遇到了这个错误:
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.有人建议我确保我的系统上已经安装了qtwayland5,情况就是这样,所以这似乎不是问题的根源。
此外,我已经确认这个问题仍然存在于使用我的发行版代码库中的PyQt5版本以及安装在virtualenv中的最新版本的PyQt5上。
发布于 2018-04-03 15:30:16
如果你不介意在xcb上运行,而不是在Wayland上运行,你可以随时取消设置QT_QPA_PLATFORM=wayland (这是在KDE wayland登录时设置的),你的应用程序将在XWayland下运行。
https://stackoverflow.com/questions/49583671
复制相似问题