【问题标题】:Running tryton client in ubuntu在 ubuntu 中运行 tryton 客户端
【发布时间】:2015-05-06 14:01:27
【问题描述】:

请帮我解决这个关于tryton client运行的问题。

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

/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

【问题讨论】:

  • 你在哪里有那个文件?尝试图标.png。运行“找到 tryton-icon.png”
  • 感谢您的回复,tryton-icon.png 位于以下路径:root/tryton-3.4.3/share/pixmaps/tryton。请我需要你的帮助提前谢谢

标签: tryton


【解决方案1】:

你被https://bugs.tryton.org/issue4102打到了,最新版本解决了 你有三个解决方案:

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

【讨论】:

  • 您好 pokoli,非常感谢您的回复。
  • 我选择了第二种解决方案,但它对我不起作用。堆栈跟踪向我展示了许多与 tryton 的代码源相关的错误!!! .在此列表中,我向您展示了堆栈跟踪详细信息:/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e) , _gtk.Warning) /root/tryton-3.6.0/tryton/gui/main.py:69: 警告:无效 (NULL) 指针实例 self.window = gtk.Window()
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-07-11
  • 1970-01-01
  • 1970-01-01
  • 2018-01-23
相关资源
最近更新 更多