ubuntu安装 pyqt5 报错 xcb找不到 pyinstaller打包open3d报错

这篇具有很好参考价值的文章主要介绍了ubuntu安装 pyqt5 报错 xcb找不到 pyinstaller打包open3d报错。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

2个错误
QObject::moveToThread: Current thread (0x25b5c20) is not the object’s thread (0x5ce7ee0).
Cannot move to target thread (0x25b5c20)

qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “/home/dong/miniconda3/envs/fastdeploy/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.

Aborted (core dumped)

chatgpt这样说的

这个错误可能有两个不同的问题,我分别给出解决方法:

QObject::moveToThread: Current thread (0x25b5c20) is not the object’s thread (0x5ce7ee0). Cannot move to target thread (0x25b5c20)
这个错误可能是因为您试图将一个对象移到它不属于的线程中。为了解决这个问题,您需要确保对象在您想要移动它的线程中创建,或者使用信号和槽在线程之间通信。

qt.qpa.plugin: Could not load the Qt platform plugin “xcb” in “/home/dong/miniconda3/envs/fastdeploy/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.
这个错误是因为缺少Qt平台插件“xcb”,导致应用程序无法初始化。您需要确保安装了所需的插件,并且应用程序配置为使用正确的插件。您可以尝试重新安装应用程序来解决这个问题。如果重新安装不起作用,则可能需要将插件路径添加到系统环境变量中。另外,您还可以尝试安装其他平台插件,例如“wayland”或“eglfs”,看看是否可以解决问题。

在解决这些问题之后,如果应用程序仍然崩溃并显示“Aborted (core dumped)”消息,请检查应用程序日志以查找原因。可能有其他问题导致了应用程序崩溃。

但是我的解决的方法是
第一个问题, 卸载opencv-python 安装pip install opencv-python==4.1.2.30

第二个问题,首先设置qt的debug环境变量方便我们查找问题
export QT_DEBUG_PLUGINS=1

发现问题是 (libxcb-xinerama.so.0: cannot open shared object file: No such file or directory)
其实我还安装了
conda config --add channels conda-forge
conda install libxcb xcb-util
但是感觉没啥用还是报错

最后解决办法是sudo apt-get install libxcb-xinerama0

报错 dongdong shen
pyimod03_ctypes.PyInstallerImportError: Failed to load dynlib/dll ‘/home/dong/don/tmini_deploy/dist/main/open3d/cpu/pybind.cpython-38-x86_64-linux-gnu.so’. Most likely this dynlib/dll was not found when the application was frozen.
[25489] Failed to execute script ‘main’ due to unhandled exception!

明明文件存在

解决sudo apt-get install libc++1文章来源地址https://www.toymoban.com/news/detail-428196.html

到了这里,关于ubuntu安装 pyqt5 报错 xcb找不到 pyinstaller打包open3d报错的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包赞助服务器费用

相关文章

  • 安装Pyqt5报错:ERROR: Failed building wheel for PyQt5-sip

    安装Pyqt5报错:ERROR: Failed building wheel for PyQt5-sip

    今天尝试安装Pyqt5出现如下报错。 根据提示安装下列模块问题依旧 最后定位到这个提示:需要用到 Microsoft C++ Build Tools 用powershell 从微软下载C++生成工具并启动 安装如下选项 c++/cli 一定要选。 再次安装 pyqt5安装成功。

    2024年02月15日
    浏览(10)
  • PYQT 自带的 Pyrcc 系统的使用,PyInstaller对PYQT程序进行打包,不能打包背景图片,图标等解决办法

    PYQT 自带的 Pyrcc 系统的使用,PyInstaller对PYQT程序进行打包,不能打包背景图片,图标等解决办法

    使用 PyInstaller 对程序进行打包,不能打包背景图片。打包后的软件可以正常运行,但涉及到图片相关的资源(如背景图片,头像)全部不显示。 当使用Python PyInstaller对程序进行打包时,如果程序中涉及到背景图片,会出现无法打包背景图片的问题。这是由于PyInstaller默认只会

    2024年02月04日
    浏览(41)
  • pyqt5报错

    Python 3.9 Pyqt5 5.15 报这个错的, 把PyUIC的Arguments参数改为: -m PyQt5.uic.pyuic $FileName$ -o $FileNameWithoutExtension$.py 参考: https://www.bilibili.com/read/cv17738858/?jump_opus=1 File|Settings|Tools|External Tools|PyUIC的【Program】选择pyuic5.exe,并将【Arguments】替换成 参考:Pycharm-Error while finding module specific

    2024年04月28日
    浏览(4)
  • nuitka打包python的PyQt5成exe可执行文件

    nuitka打包python的PyQt5成exe可执行文件

    可以打包多文件,也可以打包单文件。 使用的python版本是3.8.10 1、下载gcc 方式1:可以到网站下载,点我跳转 方式2:可以直接去网盘下载,点我跳转 提取码:8888 网盘里面也有python3.8.10的安装包,下载后直接安装即可。 下载 64位 winlibs-x86_64-posix-seh-gcc-11.3.0-llvm-14. 后,解压到

    2024年02月05日
    浏览(12)
  • python pyinstaller打包常见问题(二):No file找不到文件解决办法

    python pyinstaller打包常见问题(二):No file找不到文件解决办法

    我写了python程序,本地环境能正常运行,我打算打包成exe文件 方便发给朋友,让没有python环境也能正常运行 程序调用了wav文件,一个音效资源文件,程序调用的路径如下: 程序制作完成后,我开始打包 在需要打包的程序的目录上,我进入终端输入以下命令进行打包: 完成打

    2024年02月22日
    浏览(39)
  • Pyinstaller打包报错小结

    1.Pyinstaller打包exe文件,执行后提示缺失yaml,csv,dll等资源文件。 2.打包后运行提示 WARNING: file already exists but should not: C:UsersADMINI~1AppDataLocalTemp_MEI130922torch_C.cp38-win_amd64.pyd。 3.运行exe闪退。 4.(ModuleNotFoundError: No module named \\\'tensorflow_core.python及FileNotFoundError:No such file or dire

    2024年02月11日
    浏览(36)
  • 【Python】pyqt5安装Designer并配置到pycharm,解决报错ImportError: DLL load failed while importing QtCore(保姆级图文)

    【Python】pyqt5安装Designer并配置到pycharm,解决报错ImportError: DLL load failed while importing QtCore(保姆级图文)

    欢迎关注 『Python』 系列,持续更新中 欢迎关注 『Python』 系列,持续更新中 ImportError: DLL load failed while importing QtCore: 找不到指定的模块 报错解决的省流小助手:出现报错 ImportError: DLL load failed while importing QtCore的原因在于,我之前装过pyside2,那个库里面也有designer.exe工具,

    2024年02月07日
    浏览(12)
  • ubuntu20.04 安装 Qt 后无法启动,出现报错:Could not load the Qt platform plugin “xcb” even though it was found!

    ubuntu20.04 安装 Qt 后无法启动,出现报错:Could not load the Qt platform plugin “xcb” even though it was found!

    目录 前言 一、Qt在Ubuntu上的安装 1.下载Qt在线安装程序 2.Qt在线安装 二、Qt creator无法显示问题解决 1.问题所在 2.问题解决 总结 本篇博文是记录了作者在 ubuntu20.04 版本中安装 Qt 时遇到的问题以及解决方案。其中包括了Qt在ubuntu系统中的安装以及解决安装后无法启动Qt以及出现

    2024年02月03日
    浏览(8)
  • Ubuntu+Pycharm+QtDesigner,并配置Pyqt5

    Ubuntu+Pycharm+QtDesigner,并配置Pyqt5

    1. 安装PyQt5 2. 安装ubuntu环境下所需要的依赖包  3. 安装QtDesigner  4. 设置Pycharm 步骤: File–setting–Tools–External Tools 点击 + 号 4.1 添加QtDesigner Name就是要添加的工具名称可以取 Group就是要把这个工具添加到哪个工具箱里面,类是于文件夹 Program是工具的位置,这里是安装QtDesi

    2024年02月09日
    浏览(19)
  • 已解决(pip安装pyqt5报错) error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft

    已解决(pip安装pyqt5报错) error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft

    已解决(pip安装pyqt5报错) error: Microsoft Visual C++ 14.0 or greater is required. Get it with \\\"Microsoft C++ Build Tools\\\": https://visualstudio.microsoft.com/visual-cpp-build-tools/ 报错信息翻译 : 错误:需要Microsoft Visual C++14.0或更高版本。使用“Microsoft C++构建工具”获取:https://visualstudio.microsoft.com/visual

    2024年02月11日
    浏览(10)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包