当前位置:   article > 正文

gnuradio 启动错误 Couldn‘t find foreign strtct converter for ‘cairo.Context‘_failed to initialize gtk. if you are running over

failed to initialize gtk. if you are running over ssh, did you enable x forw

INFO

  • OS:Linux 6.1.1-arch1-1
  • gnuradio:3.10.4.0-2

弹窗错误的标题为 ImportError,内容为“Failed to initialize GTK. If you are running over ssh, did you enable X forwarding and start ssh with -X?(Couldn’t find foreign strtct converter for ‘cairo.Context’)”

从终端尝试获取更多错误细节

$ gnuradio-companion 
Gtk-Message: 20:52:00.251: Failed to load module "colorreload-gtk-module"
Gtk-Message: 20:52:00.251: Failed to load module "window-decorations-gtk-module"

$ locate colorreload-gtk-module
$ locate window-decorations-gtk-module
$ locate libcolorreload-gtk-module
$ locate libwindow-decorations-gtk-module
$ locate libcolorreload-gtk-module.so  

$ pacman -Fx colorreload-gtk-module.
警告:database file for 'archlinuxcn' does not exist (use '-Fy' to download)
extra/kde-gtk-config 5.25.5-1 (plasma)
    usr/lib/gtk-3.0/modules/libcolorreload-gtk-module.so
$ sudo pacman -S kde-gtk-config
$ gnuradio-companion
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16

此时启动没有 gtk 模块缺失的问题了,但是弹窗错误还在。最后通过搜索发现缺的是一个 python 包,在仓库里却找不到 python3-gi-cairo,最后通过排列组合找到了 python-cairo。这下子总算可以启动了

solution

sudo pacman -S kde-gtk-config
sudo pacman -S python-cairo
  • 1
  • 2

REFER

Failed to load module “colorreload-gtk-module”:locate 或 pacman -Fx colorreload-gtk-module.

解决Failed to load module canberra-gtk-module错误 footrip 2019-12-20:locate 定位模块位置

ubuntu 下使用matplotlib 出现TypeError: Couldn‘t find foreign struct converter for ‘cairo.Context‘解决方法 xkxsxkx 2020-09-08

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/507557
推荐阅读
相关标签
  

闽ICP备14008679号