插件错误---qt.qpa.plugin

  • 报错描述
  • 解决思路

报错描述

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.

解决思路

发现是Qt加载插件出现问题,通过设置QT_DEBUG_PLUGINS=1,可以查看Qt的插件加载信息
可以在你运行你的Python可执行文件之前先在终端执行下面命令设置环境变量::

export QT_DEBUG_PLUGINS=1

后再执行你的可执行文件,这个时候就会列出详细的报错原因。再次运行程序时,会打印出很多信息,重点是最后一段

Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/home/q512/anaconda3/envs/huqiao/bin/platforms" ...
Cannot load library /home/q512/anaconda3/envs/huqiao/lib/python3.6/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so: (libxcb-xinerama.so.0: 无法打开共享对象文件: 没有那个文件或目录)
QLibraryPrivate::loadPlugin failed on "/home/q512/anaconda3/envs/huqiao/lib/python3.6/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so" : "Cannot load library /home/q512/anaconda3/envs/huqiao/lib/python3.6/site-packages/PyQt5/Qt5/plugins/platforms/libqxcb.so: (libxcb-xinerama.so.0: 无法打开共享对象文件: 没有那个文件或目录)"
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.

它提示无法加载libqxcb.so,原因是libxcb-xinerama.so.0: 无法打开共享对象文件: 没有那个文件或目录,也就是说libxcb-xinerama.so.0共享库丢失,导致无法加载libqxcb.so。通过ldd指令查看libqxcb.so的动态链接库,可以看到libxcb-xinerama.so.0 => not found:

参考链接:
link.
link.

报错---qt.qpa.plugin相关推荐

  1. 【已解决】报错qt.qpa.plugin: Could not load the Qt platform plugin “windows“ in “...“ even though it was

    问题描述: 在Python程序中使用到Pyside2进行图形界面搭建,并使用Pyinstaller将程序打包为独立可执行文件后,双击.exe文件,出现报错: "qt.qpa.plugin: ...

  2. 安装免费视频剪辑软件运行时程序报错 Qt platform plugin could be initialized

    网上找的开源免费视频剪辑软件 安装成功了 但是运行的时候报错 好在,我前面安装Python开发桌面应用的时候碰到过类似的报错. 我立马就反应过来是环境变量没有指向的问题. 然后我就添加了系统环境变量 ...

  3. Ubuntu pyinstaller 打包可执行文件时报错:... qt.qpa.plugin: Could not find the Qt platform plugin “xcb“ in “...

    Ubuntu pyinstaller 打包可执行文件时报错:qt.qpa.plugin: Could not find the Qt platform plugin "xcb" i ...

  4. Qt-c++桌面编程报错:qt.qpa.plugin: Could not find the Qt platform plugin “windows“ in

    问题:Qt-c++桌面编程报错:qt.qpa.plugin: Could not find the Qt platform plugin "windows" in "&q ...

  5. mysql8.x实践系列(3)Qt客户端连接mysql报错:Authentication plugin ‘caching_sha2_password‘ reported error

    一.现象描述 Qt客户端远程连接mysql8.x服务器,会报错: Authentication plugin 'caching_sha2_password' reported error:Authen ...

  6. Ubuntu18.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin “xcb“问题

    Ubuntu18.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin "xcb"问题 问题描述 定位问题 解决 ...

  7. qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found. This appl

    在ubuntu上使用qt出现报错:qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" ...

  8. 出现“qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ‘ ’even though it was found

    出现"qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in ' 'even though it wa ...

  9. 解决qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in ““ even though it was found.

    项目场景: 在使用pyqt5出现问题,让人真的很头疼哇 问题描述 具体问题如下: qt.qpa.plugin: Could not load the Qt platform plugin " ...

  10. Ubuntu20.04下解决Qt出现qt.qpa.plugin:Could not load the Qt platform plugin “xcb“ 问题

    问题描述 python调用matplotlib.pyplot库进行图形绘制时弹出错误提示: qt.qpa.plugin: Could not load the Qt platform plugin & ...

最新文章

  1. ts转换mp4 linux_佳佳MPEG4格式转换器官方版下载-佳佳MPEG4格式转换器v6.5.5.0下载
  2. 通过C#代码 压缩/解压文件
  3. ajax传递数组 php,jQuery.ajax向后台传递数组问题如何解决
  4. b区计算机复试国家线,考研国家线/自主划线/a区b区线/专业线这些考研复试分数线你能分清吗?...
  5. php 获取路由参数,路由参数 · ThinkPHP5.0完全开发手册 · 看云
  6. 前端学习(3107):react-hello-jsx小练习2
  7. asterisk for mipsel
  8. filter java oauth_java – 带有自定义安全过滤器的Spring Boot OAuth2
  9. esp8266舵机驱动_arduino开发ESP8266学习笔记四—–舵机
  10. 网络服务器监测系统,网络服务器监测系统研究与开发
  11. 代码 or 指令,浅析ARM架构下的函数的调用过程
  12. 苹果推送通知服务(APNs)编程(转)详细步骤
  13. mysql慢日志分析工具_mysql慢查日志分析工具 percona-toolkit
  14. bs cs架构区别_一文了解微蜂窝、基站、宏蜂窝、直放站、BBU+RRU到底有什么区别...
  15. 使用nginx反向代理获取百度MP3的真实网址
  16. 使用.NET Core搭建分布式音频效果处理服务(一)需求、问题和解决方案的几个坑...
  17. java项目中遇到的幂等性问题
  18. CUDA版本与驱动对应情况
  19. Ceph集群配置系列《四》Ceph块设备/RBD的使用
  20. Windows下挂载MSR分区

热门文章

  1. rootkit模拟木马病毒
  2. Activity启动过程(一)AMS
  3. python aes new_python--AES加密
  4. 编辑手机pad端调试方法
  5. 小米账号登陆无法连接服务器,登录小米账号显示,无法连接网络,怎么回事?...
  6. iPhone的AFC(Apple File Conduit)
  7. 论现场跟客户演示软件产品
  8. Vuex 的简单模拟、了解Vuex
  9. 【路由器】OpenWrt 手动编译 ipk
  10. 历经18年胡培松创制优良新种质 国稻种芯百团计划行动