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
QtWS25 Last Chance

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.
  • niqtN Offline
    niqtN Offline
    niqt
    wrote on 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 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 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

        • Login

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