【问题标题】:pyqtgraph runtime error: could not load plugin "xcb" [duplicate]pyqtgraph 运行时错误:无法加载插件“xcb”[重复]
【发布时间】:2021-07-08 01:33:05
【问题描述】:

我的 Python 环境: Ubuntun 20.10,Python 3.8.6,

点冻结输出:

  • PyQt5==5.15.4
  • PyQt5-Qt5==5.15.2
  • PyQt5-sip==12.8.1
  • pyqtgraph==0.12.1
  • PySide2==5.15.2
  • PySide6==6.0.3
  • shiboken2==5.15.2
  • shiboken6==6.0.3

python plotting.py

错误信息:

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.

Aborted (core dumped)

【问题讨论】:

    标签: python pyqtgraph


    【解决方案1】:

    我在此链接 (https://github.com/pyqtgraph/pyqtgraph/issues/1220) 中找到了解决方案。

    以下安装后,PyQtGraph 示例代码开始工作:

    • sudo apt-get install -y libxkbcommon-x11-0 x11-utils
    • sudo apt-get install --no-install-recommends -y libyaml-dev libegl1-mesa libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-06
      • 2013-07-23
      • 1970-01-01
      • 2016-01-08
      • 2021-09-11
      • 1970-01-01
      • 2021-04-29
      • 2017-11-21
      相关资源
      最近更新 更多