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: _ZN15QSessionManager16staticMetaObjectE

    I have reinstalled the following packages to no avail:

    python-qt4
    python-qt4-dev
    python-qt4-gl

    Some 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.6

    Hope anyone can help me with this.



  • Hello everyone,

    I have the exact same error as hagen23.
    Configuration (64 bits):

    • Ubuntu 14.04.1 LTS
    • Python 2.7.6
    • Qt version: 4.8.6
    • PyQt version: 4.10.4
    • SIP version: 4.16.4

    Hope anyone can help us with this

    Thank you



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.