亲大神Deepin V20下的PyQt5经典报错怎么解决
Tofloor
poster avatar
137******52
deepin
2020-12-05 07:58
Author

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.


就是这个错误,我运行PyQt5所报的错误。但是这个是在安装了源码3.9的时候报的错误,切换系统自带的3.7是没错的

大神们 救救老年人吧  本来不富裕的头发 刚入门PyQt就要入土了。。。。我在网上一搜眼睛没看瞎了也没弄好。。。。。

我发现Deepin越来越好用了,之前和Windows双系统的时候,想调开启顺序都需要改什么配置文件,现在可以直接GUI操作,那么关于这个问题是不是PATH的问题??Deepin的PATH也可以像WIndows那样操作简单吗?

Reply Favorite View the author
All Replies
Feng Yu
deepin
2020-12-05 08:01
#1

很明显你的qt版本不符。如果你不懂编译就别瞎折腾了,安心用软件仓库自带的就完事了。


如果你真的想尝试你的动手能力解决,可以设置QT_DEBUG_PLUGINS环境变量值为1运行你的程序,看看真实的错误信息


比如:

QT_DEBUG_PLUGINS=1 /path/to/your/program


Reply View the author
137******52
deepin
2020-12-05 17:39
#2
Feng Yu

很明显你的qt版本不符。如果你不懂编译就别瞎折腾了,安心用软件仓库自带的就完事了。


如果你真的想尝试你的动手能力解决,可以设置QT_DEBUG_PLUGINS环境变量值为1运行你的程序,看看真实的错误信息


比如:

QT_DEBUG_PLUGINS=1 /path/to/your/program


是时候放弃我的动手能力了[失望]   谢谢您

Reply View the author
sunhuiwang
deepin
2021-04-12 03:42
#3

装个 libxcb-util1_0.4.0-1+b1_amd64.deb 解决

Reply View the author
137******52
deepin
2021-04-16 07:51
#4
sunhuiwang

装个 libxcb-util1_0.4.0-1+b1_amd64.deb 解决

谢谢!我试试看!

Reply View the author
137******52
deepin
2021-04-16 07:57
#5
sunhuiwang

装个 libxcb-util1_0.4.0-1+b1_amd64.deb 解决

解决问题!非常感谢!

Reply View the author