PyQt4 QtCore.so符号未找到错误

时间:2013-03-20 09:42:31

标签: python macos pyqt4

我安装了sip和PyQt但是当我执行像python tutorial.py这样的python代码时,请接受此错误。我用brew install和configure.py安装了pyqt。

Traceback (most recent call last):
  File "untitled.py", line 4, in <module>
    from PyQt4 import QtCore, QtGui
ImportError: dlopen(/Library/Python/2.7/site-packages/PyQt4/QtCore.so, 2): Symbol not found: __ZN10QArrayData11shared_nullE
  Referenced from: /Library/Python/2.7/site-packages/PyQt4/QtCore.so
  Expected in: flat namespace
 in /Library/Python/2.7/site-packages/PyQt4/QtCore.so

1 个答案:

答案 0 :(得分:0)

我通过删除Python并使用macPorts安装python和pyqt解决了这个问题。