【问题标题】:Using Python help throws SEGFAULT [closed]使用 Python 帮助抛出 SEGFAULT [关闭]
【发布时间】:2013-02-11 13:02:02
【问题描述】:

在使用 Python 帮助时,我输入了模块并收到以下错误:

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:12351): 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)

另请参阅:https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/896836

如何解决或绕过此问题并获得我想要的帮助?

【问题讨论】:

  • 这里有问题吗?
  • 出现错误时似乎有点明显,但没关系,已添加。

标签: python segmentation-fault


【解决方案1】:

这样的“模块列表”(pydoc -k 也是)需要将所有可用的东西导入一个进程,这可能会导致各种问题。不要那样做。

另见http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697402

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-29
    • 1970-01-01
    • 2020-10-16
    • 1970-01-01
    • 1970-01-01
    • 2015-09-24
    相关资源
    最近更新 更多