Python- help('modules') unexpected behaviour

情到浓时终转凉″ 提交于 2019-12-02 06:50:18

问题


I've been playing with QT and python using PySide. I've just done one of the basic tutorials . I've closed down python and restarted another session and now whenever I try to list the modules using help('modules') the button tutorial runs. If I close the window python crashes. The top of the error message is

Process:         Python [2005]
Path:            /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:      org.python.python
Version:         2.7.3 (2.7.3)
Code Type:       X86-64 (Native)
Parent Process:  bash [1967]

Date/Time:       2013-01-09 12:38:53.307 +0000
OS Version:      Mac OS X 10.6.8 (10K549)
Report Version:  6

Interval Since Last Report:          486115 sec
Crashes Since Last Report:           12
Per-App Interval Since Last Report:  23989 sec
Per-App Crashes Since Last Report:   7
Anonymous UUID:                      93C97407-5F4D-4A25-83BC-C0116B028ECE

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Application Specific Information:
abort() called
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:    '-[QNSApplication _setup:]: unrecognized selector sent to instance 0x116b2fe00'
*** Call stack at first throw:

My most recent action was to install 'PIP' and download some packages. Does anyone know what is causing this or how to resolve it?

Edit 1

I noticed that changing directory meant that the PySide tutorial would not run. It now prints out the available modules as before but it also loads a TK window from any directory.


回答1:


I had installed PyOpenGL just before I begun having this issue. Having uninstalled it the issue has also disappeared



来源:https://stackoverflow.com/questions/14235617/python-helpmodules-unexpected-behaviour

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!