Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/356.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
python帮助>&燃气轮机;模块出现分段故障-如何修复?_Python - Fatal编程技术网

python帮助>&燃气轮机;模块出现分段故障-如何修复?

python帮助>&燃气轮机;模块出现分段故障-如何修复?,python,Python,欢迎使用Python 2.7!这是联机帮助实用程序。 不幸的是,在Python上使用help时,这是一个已知的问题。目前,它必须导入模块以检查其docstring,如果模块在导入时执行代码并调用第三方库(该库需要特定的执行上下文,或者可能只是有缺陷),则可能会导致崩溃。下面是一个关于这个具体案例的例子。由于导入帮助导致类似的崩溃,在中有许多未解决的问题。您确定安装gtk软件包没有问题吗? >> help() help> modules Please wait a mome

欢迎使用Python 2.7!这是联机帮助实用程序。


不幸的是,在Python上使用
help
时,这是一个已知的问题。目前,它必须导入模块以检查其docstring,如果模块在导入时执行代码并调用第三方库(该库需要特定的执行上下文,或者可能只是有缺陷),则可能会导致崩溃。下面是一个关于这个具体案例的例子。由于导入
帮助
导致类似的崩溃,在中有许多未解决的问题。

您确定安装
gtk
软件包没有问题吗?
>> help()

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:9642): 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
durrantm.../dmWorkflow$