Pyside symbol problem



  • 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?



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



  • 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


Log in to reply
 

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