python - 使用 Python 帮助抛出 SEGFAULT

标签 python segmentation-fault

<分区>

在使用 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

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

最佳答案

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

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

关于python - 使用 Python 帮助抛出 SEGFAULT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14812520/

相关文章:

c++ - C++中的指针;段错误错误 :

python - 在 Tkinter Canvas 中删除多边形内的区域

python - Django 获取主要+外部属性

python - 在具有时间限制的事件数据中查找子序列的出现

python - Angular-cli 与任何其他服务器

c++ - 处理删除命令期间出现段错误

python - 如何删除第一列和第三列中都包含 NaN 的行?

c++ - 创建一个包含 300 万个元素的双数组

c - 在 C 中扫描 long long int 时出现段错误

macos - Mac 上奇怪的 C 库链接问题 - Segmentation Fault