Linux上的Python2.7在help('modules')命令时崩溃

2024-06-25 05:19:02 发布

您现在位置:Python中文网/ 问答频道 /正文

当在ubuntu12.04 LTS上运行python解释器并输入命令>;>help('modules')时,它崩溃了,我无法确定导致崩溃的模块。我想我已经添加了大约三个模块,其中一些是pythontwitter,feedparser,但是我现在还不能得到其中的一个清单。我的一些代码也会定期运行。在

这是坠机的样子。。。在

/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:23199): 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)
root@m:~/Settings# python -V
Python 2.7.3

Tags: namefrompyimportregistergtklibpackages