Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. Pyside symbol problem
Forum Update on Monday, May 27th 2025

Pyside symbol problem

Scheduled Pinned Locked Moved Language Bindings
3 Posts 3 Posters 4.9k Views
  • 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.
  • N Offline
    N Offline
    niqt
    wrote on 19 Apr 2011, 08:32 last edited by
    #1

    Hi,
    i have installed psyde 1.0.1
    @
    import PySide
    print PySide.version
    @
    1.0.1

    when i run hello example:

    @

    #!/usr/bin/python

    Import PySide classes

    import sys
    from PySide.QtCore import *
    from PySide.QtGui import *

    Create a Qt application

    app = QApplication(sys.argv)

    Create a Label and show it

    label = QLabel("Hello World")
    label.show()

    Enter Qt application main loop

    app.exec_()
    sys.exit()
    @

    i have:
    File "hello.py", line 6, in <module>
    from PySide.QtGui import *
    ImportError: /usr/lib/pymodules/python2.6/PySide/QtGui.so: undefined symbol: _ZN9QGtkStyle11qt_metacastEPKc

    what's happen?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      renato.filho
      wrote on 22 Apr 2011, 14:47 last edited by
      #2

      Which version of Qt are you using? This is on windows or Linux?

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vsorokin
        wrote on 22 Apr 2011, 16:49 last edited by
        #3

        I think this is solution of your problem:
        http://code.google.com/p/freebsd-pyside/wiki/Functionality#Troubleshooting

        bq. problem
        from PySide.QtGui import *
        ImportError: /usr/local/lib/python2.7/site-packages/PySide/QtGui.so: Undefined symbol "_ZN9QGtkStyle11qt_metacastEPKc"
        solution
        The current solution is to rebuild py-gui after changing your /etc/make.conf to include:
        QT4_OPTIONS += QGTKSTYLE

        --
        Vasiliy

        1 Reply Last reply
        0

        3/3

        22 Apr 2011, 16:49

        • Login

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