Chinaunix首页 | 论坛 | 博客
  • 博客访问: 163237
  • 博文数量: 60
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 458
  • 用 户 组: 普通用户
  • 注册时间: 2014-04-04 10:01
文章分类

全部博文(60)

文章存档

2016年(3)

2014年(57)

我的朋友

分类: 系统运维

2016-08-13 09:57:04

启动有道时出现一下错误:
youdap:未找到命令
adolph@adolph:~$ youdao-dict
Traceback (most recent call last):
  File "/usr/bin/youdao-dict", line 27, in
    from dae.daeclient import DAEClient
  File "/usr/share/youdao-dict/dae/daeclient.py", line 36, in
    from dae.window import Window
  File "/usr/share/youdao-dict/dae/window.py", line 30, in
    from dae.shadowwindow import ShadowWindow
  File "/usr/share/youdao-dict/dae/shadowwindow.py", line 28, in
    import dae.xutils as xutils
  File "/usr/share/youdao-dict/dae/xutils.py", line 25, in
    ewmh = EWMH()
  File "/usr/share/youdao-dict/dae/ewmh.py", line 50, in __init__
    self.display = _display or display.Display()
  File "/usr/lib/python3/dist-packages/Xlib/display.py", line 80, in __init__
    self.display = _BaseDisplay(display)
  File "/usr/lib/python3/dist-packages/Xlib/display.py", line 62, in __init__
    display.Display.__init__(*(self, ) + args, **keys)
  File "/usr/lib/python3/dist-packages/Xlib/protocol/display.py", line 129, in __init__
    raise error.DisplayConnectionError(self.display_name, r.reason)
Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'Invalid MIT-
临时解决方法是运行一下命令:
$ sudo xhost +
这样就可以正常启动有道了


阅读(3544) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~