2013-01-09 93 views
1

我一直在玩使用PySide的QT和python。我剛剛完成了基本的tutorials之一。我關閉了python並重新啓動了另一個會話,現在每當我嘗試使用help('modules')列出模塊時,按鈕教程都會運行。如果我關閉窗口python崩潰。錯誤消息的頂部是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窗口。

+0

可能是一個'sitecustomize.py'的某個地方,它重新定義了內建的'help'功能...... – kerim

回答

0

我在開始出現此問題之前安裝了PyOpenGL。卸載它的問題也消失了