Pyside symbol problem

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

    when i run hello example:



    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")

    Enter Qt application main loop


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

    what's happen?

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

  • I think this is solution of your problem:

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

Log in to reply

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