我在Windows 7上运行matplotlib和PyQt时遇到了问题。
当执行任何使用这两个库的代码时,即使是演示代码,如:http://eli.thegreenplace.net/files/prog_code/qt_mpl_bars.py.txt
我会得到以下错误:
TypeError: 'PySide.QtGui.QWidget.setParent' called with wrong argument types:
PySide.QtGui.QWidget.setParent(QWidget)
Supported signatures:
PySide.QtGui.QWidget.setParent(PySide.QtGui.QWidget)
PySide.QtGui.QWidget.setParent(PySide.QtGui.QWidget, PySide.QtCore.Qt.WindowFl
ags)
我正在使用Python 2.7.5,matplotlib 1.2.1和PyQt 4.10.3。所有这些都是32位的,在我的64位操作系统上运行。我已经分别使用了使用matplotlib和PyQt的代码,没有出现任何问题。
我尝试了在Getting PySide to work with matplotlib中建议的解决方案,但没有成功。
请帮助我跟踪此错误。