2012-09-01 8 views
6

¡Bienvenido a Python 2.7! Esta es la utilidad de ayuda en línea. ...python help >> modules da error de segmentación - ¿cómo solucionarlo?

>> 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$ 
+1

¿Estás seguro de que no hay nada de malo con la instalación de ese paquete 'gtk'? – jdi

Respuesta

5

Por desgracia, este es un problema conocido cuando se utiliza help en Python. Actualmente tiene que importar módulos para inspeccionar sus documentos y esto puede provocar bloqueos si los módulos ejecutan código al importar y llamar a bibliotecas de terceros que esperan un cierto contexto de ejecución o que pueden tener errores. Aquí hay un open Ubuntu issue sobre este caso específico. Hay una serie de problemas abiertos en el Python issue tracker acerca de bloqueos similares debido a la importación help.

Cuestiones relacionadas