在ubuntu中运行tryton客户端

时间:2015-05-05 14:16:34

标签: tryton

请帮助我解决有关tryton client

运行的问题

当我在tryton client中运行ubuntu时,我的错误有堆栈跟踪:

/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
Traceback (most recent call last):
  File "/usr/local/bin/tryton", line 45, in <module>
    from tryton import client
  File "/usr/local/lib/python2.7/dist-packages/tryton/client.py", line 24, in <module>
    import tryton.common as common
  File "/usr/local/lib/python2.7/dist-packages/tryton/common/__init__.py", line 3, in <module>
    from common import *
  File "/usr/local/lib/python2.7/dist-packages/tryton/common/common.py", line 16, in <module>
    from tryton.config import CONFIG
  File "/usr/local/lib/python2.7/dist-packages/tryton/config.py", line 188, in <module>
    os.path.join(PIXMAPS_DIR, 'tryton-icon.png').encode('utf-8'))
glib.GError: Failed to open file '/usr/share/pixmaps/tryton/tryton-icon.png': No such file or directory

1 个答案:

答案 0 :(得分:0)

你被https://bugs.tryton.org/issue4102击中了最新版本的解决方案你有三个解决方案:

  1. (简单):从/ usr / share / pixmaps / tryton创建一个simlink到root / tryton-3.4.3 / share / pixmaps / tryton,这样就可以正确读取图标。打开终端并执行:
  2. cd /usr/shar/pixmaps/ 
    ln -s /root/tryton-3.4.3/share/pixmaps/tryton
    
    1. (简单)。使用来自https://launchpad.net/~rayanayar/+archive/ubuntu/tryton-3.6
    2. 的最新稳定版(3.6)系列(服务器也必须更新)
    3. (高级)。下载链接问题中的补丁并手动将其应用于您的tryton客户端