我已經新安裝了Ubuntu 12.04 64位。我有Python 2.7並安裝了Python 3.3,因爲python3到現在爲止沒有問題,但是安裝相當新。當我嘗試檢查我用help('modules')
安裝的模塊我有一個錯誤:python無法顯示模塊列表
Python 2.7.3 (default, Aug 1 2012, 05:14:39)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> help('modules')
Please wait a moment while I gather a list of all available modules...
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
import gobject._gobject
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
from gtk import _gtk
** (python:20929): CRITICAL **: pyg_register_boxed: assertion `boxed_type != 0' failed
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: cannot register existing type `GdkDevice'
from gtk import _gtk
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:40: Warning: g_type_get_qdata: assertion `node != NULL' failed
from gtk import _gtk
Segmentation fault (core dumped)
我不知道如何解釋這個輸出,我應該做的。很顯然,如果在安裝操作系統之後我想要修復它,請不要等到將會丟失任何工作。任何人都有類似的問題,並知道應該做什麼?
它看起來像一個PyGTK的問題。我在Arch Linux上得到了相同的警告,但沒有發現段錯誤。 – Blender
@Blender你嘗試解決它嗎?我不知道我該怎麼做。剛剛檢查突觸它看起來我有GTK的庫instlled – tomasz74
它根本不打擾我。我不使用PyGTK。 – Blender