我一直在使用 PySide 玩 QT 和 python。我刚刚完成了其中一个基本教程。我已经关闭了 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 窗口。