博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Uuntu20.04出现“qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in...已放弃 (核心已转储)”问题解决记录
阅读量:3973 次
发布时间:2019-05-24

本文共 1794 字,大约阅读时间需要 5 分钟。

Uuntu20.04出现“qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in

…出现“已放弃 (核心已转储)”这种问题:
解决方案是:更换opencv版本

Got keys from plugin meta data ("webgl")QFactoryLoader::QFactoryLoader() looking at "/home/CCC/.local/lib/python3.8/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so"Found metadata in lib /home/camila/.local/lib/python3.8/site-packages/PyQt5/Qt/plugins/platforms/libqxcb.so, metadata={
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3", "MetaData": {
"Keys": [ "xcb" ] }, "archreq": 0, "className": "QXcbIntegrationPlugin", "debug": false, "version": 331520}Got keys from plugin meta data ("xcb")QFactoryLoader::QFactoryLoader() checking directory path "/home/CCC/anaconda3/envs/xxxxx/bin/platforms" ...loaded library "/home/CCC/anaconda3/envs/xxxxx/lib/python3.8/site-packages/cv2/qt/plugins/platforms/libqxcb.so"QObject::moveToThread: Current thread (0x555bac942790) is not the object's thread (0x555c47a16c60).Cannot move to target thread (0x555bac942790)qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/CCC/anaconda3/envs/xxxxx/lib/python3.8/site-packages/cv2/qt/plugins" 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: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.已放弃 (核心已转储)

我一度以为是安装pyqt安装出现了问题,甚至一度想卸载重装,后来查阅各种资料,发现有可能是我安装的opencv4.5.0版本过高,于是卸载重新安装了opencv4.3.0,问题得解!

pip3 uninstall opencv-pythonpip3 install opencv-python==4.3.0.36

然后检查此时的opencv版本,输入命令行:

python3 -c "import cv2; print(cv2.__version__)"

安装成功,显示

4.3.0

于是,我再次运行之前的代码,问题得以解决!记录!!!

转载地址:http://wetki.baihongyu.com/

你可能感兴趣的文章
优秀程序员的标准
查看>>
混乱的代码
查看>>
重新理解对象参数的用法
查看>>
2012年开发者该做的11件事
查看>>
利用java实现的一个发送手机短信的小例子
查看>>
2012年1月8号订火车票历程
查看>>
My97日期控件
查看>>
struts中把后台对象传到前台jsp页面上的方法
查看>>
<c:forEach varStatus="status">中 varStatus的属性简介
查看>>
SVN上的常见问题
查看>>
SVN上的常用操作(有图有真相)
查看>>
EL表达式详解
查看>>
mysql数据库介绍
查看>>
不同的数据源,不同的数据操作流程——记录下最近的项目心得
查看>>
Quartz_cron表达式
查看>>
Quartz_框架快速入门
查看>>
POI导出EXCEL经典实现
查看>>
photoshop中常用的图像处理(有图有真相)
查看>>
启动Tomcat时报这样的错误——跟数据库有关
查看>>
frame框架之间的相互引用
查看>>