Python-帮助('模块')意外行为

时间:2013-01-09 12:51:33

标签: python pyside

我一直在使用PySide玩QT和python。我刚刚做了一个基本的tutorials。我关闭了python并重新启动了另一个会话,现在每当我尝试使用help('modules')列出模块时,按钮教程就会运行。如果我关闭窗口python崩溃。错误消息的顶部是

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:

我最近的行动是安装' PIP'并下载一些软件包。有谁知道是什么导致了这个或如何解决它?

修改1

我注意到更改目录意味着PySide教程无法运行。它现在像以前一样打印出可用的模块,但它也从任何目录加载TK窗口。

1 个答案:

答案 0 :(得分:0)

在我开始遇到这个问题之前,我已经安装了PyOpenGL。卸载后,问题也消失了