yun 发表于 2017-4-26 17:26:47

hb_gui 启动报错 RuntimeError: could not open display

在xshell启动hb_gui出错

# hb_gui   
Traceback (most recent call last):   
  File "/usr/bin/hb_gui", line 41, in ?   
    import gtk, gtk.glade, gobject   
  File "/usr/lib64/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 76, in ?   
    _init()   
  File "/usr/lib64/python2.4/site-packages/gtk-2.0/gtk/__init__.py", line 64, in _init   
    _gtk.init_check()   
RuntimeError: could not open display

下面我们来说一下,解决方法(按照下面步骤去操作)




具体步骤如下:File > Properties > SSH > Tunneling > Forward X11 connections to: Xmanager,然后重新启动一下xshell,再进行测试

效果如下:

页: [1]
查看完整版本: hb_gui 启动报错 RuntimeError: could not open display