Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Undefined symbols within QtGui.so in PyQt4
Forum Updated to NodeBB v4.3 + New Features

Undefined symbols within QtGui.so in PyQt4

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 3.5k Views 1 Watching
  • 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 Offline
    H Offline
    hagen23
    wrote on last edited by
    #1

    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
    0
    • I Offline
      I Offline
      iugo
      wrote on last edited by
      #2

      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
      0
      • H Offline
        H Offline
        happycat
        wrote on last edited by
        #3

        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
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved