2

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

この問題を解決または回避し、必要なヘルプを得るにはどうすればよいですか?

4

1 に答える 1

1

そのような「モジュールのリスト」(pydoc -kも) は、利用可能なすべてを 1 つのプロセスにインポートする必要があり、これはあらゆる種類の問題を引き起こす可能性があります。そうしないでください。

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697402も参照してください。

于 2013-02-11T13:28:06.690 に答える