Undefined symbols within QtGui.so in PyQt4
-
Whenever I try to run a Qt program, such as this one:
import sys
from PyQt4.QtGui import *
app = QApplication(sys.argv)
button = QPushButton("Hello World", None)
button.show()
app.exec_()I get the following error message:
from PyQt4.QtGui import *
ImportError: /usr/lib/python2.7/dist-packages/PyQt4/QtGui.so: undefined symbol: _ZN15QSessionManager16staticMetaObjectEI have reinstalled the following packages to no avail:
python-qt4
python-qt4-dev
python-qt4-glSome system info:
Ubuntu 14.04.1 LTS
3.13.0-32-lowlatency
usr/bin/python2.7: Python 2.7.6
Using Qt version 4.8.6Hope anyone can help me with this.
-
I had same problem with QT5. The problem appears to be a version mismatch. After downloading a .deb at http://tinyurl.com/kza5uob my problem was resolved.