Pyside symbol problem
-
Hi,
i have installed psyde 1.0.1
@
import PySide
print PySide.version
@
1.0.1when 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_metacastEPKcwhat'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#Troubleshootingbq. 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