Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Undefined symbols within QtGui.so in PyQt4

    General and Desktop
    3
    3
    3305
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hagen23 last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • I
        iugo last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H
          happycat last edited by

          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.

          50+ years, a Programmer, Designer, & Manager
          From Philco 2000 to Raspberry Pi processors.
          From Measurement and Control to Data Base applications.
          Happycat

          1 Reply Last reply Reply Quote 0
          • First post
            Last post