2015-05-05 32 views
0

請幫我解決關於運行tryton client的這個問題。在ubuntu中運行tryton客戶端

還有就是我的錯誤的堆棧跟蹤當我運行tryton clientubuntu

/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 
+0

您在哪裏擁有該文件? tryton-的icon.png。運行'locate tryton-icon.png' – lapinkoira

+0

感謝您的迴應,tryton-icon.png位於以下路徑:root/tryton-3.4.3/share/pixmaps/tryton。請提前感謝您的幫助 –

回答

0

你被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 
  • (簡單)。使用https://launchpad.net/~rayanayar/+archive/ubuntu/tryton-3.6
  • (高級)中最新的stable(3.6)系列(服務器也必須更新)。在鏈接問題中下載修補程序並手動將其應用到您的Tryton客戶端
  • +0

    您好pokoli,非常感謝您的回覆。 –

    +0

    我選擇第二種解決方案,但它不適合我。堆棧跟蹤顯示了許多與tryton代碼源相關的錯誤! 。在這個列表中,我向您展示了堆棧跟蹤詳細信息:/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57:GtkWarning:無法打開顯示 warnings.warn(str(e ),_gtk.Warning) /root/tryton-3.6.0/tryton/gui/main.py:69:警告:invalid(NULL)指針實例self.window = gtk.Window() –

    +0

    您能否在tryton bugtracker? https://bugs.tryton.org/ – pokoli