[PySide] pyside hybrid app
Tommaso Vinci
tommaso.vinci at polytechnique.fr
Fri Aug 24 13:38:12 CEST 2012
Dear all,
I'm trying to reproduce the hybrid app tutorial with pyside and can't get
it work.
I'm probably really close to the solution!
first: I'm on a mac with qt and pyside installed.
I'm able to compile the first qt library then run the generator without
(major) issues, and finally compile the hybrid stuff
I end up with both libraries but when I try to import them in python I get
this error:
Traceback (most recent call last):
File "Main.py", line 4, in <module>
import PyHybrid
ImportError: dynamic module does not define init function (initPyHybrid)
I'm attaching a zip file of the source tree
I've seen someone struggling with the same error but there he had problems
with the LD_LIBRARY_PATH, in my case both libraries can resolve all the
dynamic loading
PyHybrid.so:
libPyHybrid.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 125.2.11)
/System/Library/Frameworks/Python.framework/Versions/2.6/Python
(compatibility version 2.6.0, current version 2.6.1)
libpyside-python2.6.1.1.dylib (compatibility version 1.1.0, current
version 1.1.0)
libshiboken-python2.6.1.1.dylib (compatibility version 1.1.0, current
version 1.1.0)
libMainWindow.1.dylib (compatibility version 1.0.0, current version
1.0.0)
QtXml.framework/Versions/4/QtXml (compatibility version 4.7.0, current
version 4.7.4)
QtCore.framework/Versions/4/QtCore (compatibility version 4.7.0,
current version 4.7.4)
QtGui.framework/Versions/4/QtGui (compatibility version 4.7.0, current
version 4.7.4)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
version 7.9.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version
830.0.0)
libMainWindow.1.dylib:
libMainWindow.1.dylib (compatibility version 1.0.0, current version
1.0.0)
QtGui.framework/Versions/4/QtGui (compatibility version 4.7.0, current
version 4.7.4)
QtCore.framework/Versions/4/QtCore (compatibility version 4.7.0,
current version 4.7.4)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
version 7.9.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version
830.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 125.2.11)
Hope someone can help me
--
Tommaso Vinci
LULI - Ecole Polytechnique
+33 (0)1 69335427
tommaso.vinci at polytechnique.edu
http://www.luli.polytechnique.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20120824/1f2b8160/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HybridApp.tgz
Type: application/x-gzip
Size: 3151 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20120824/1f2b8160/attachment.bin>
More information about the PySide
mailing list