[Pythonmac-SIG] Py2app: import errors while running the installedapp (PyQt4.Qt imports)
ninad at nanorex.com
Mon Mar 12 15:28:58 CET 2007
Does anyone know how to resolve this issue? (or if this or similar topic has
been discussed previously, can someone point me to that thread?)
> -----Original Message-----
> From: Ninad Sathaye [mailto:ninad at nanorex.com]
> Sent: Thursday, March 01, 2007 10:22 AM
> To: pythonmac-sig at python.org
> Subject: [Pythonmac-SIG] Py2app: import errors while running
> the installedapp (PyQt4.Qt imports)
> I have built a package using py2app on MACOSX 10.3.9. My
> application uses Qt4.2
> (PyQt4.1.x) framework. When run the application (installed
> using the created
> package) it gives import errors.
> from PyQt4.Qt import QApplication
> ImportError : Cannot import name QApplication.
> Py2app seems to break my PyQt4 directory into two parts and
> put them in different places :
> (A) the Qt.pyc into
> (B) and the .so files [Example: QtGui.so] into
> Am I leaving out a necessary option? [ I tried manually
> copying .so files from
> (B) to (A) ..that resolved the import problems but then my
> app crashed.]
> Note: During the pkg building process, I got an error which
> seems identical to the one in this message --
> 018659.html" --
> " malformed object (unknown flavor for flavor number 0 in
> LC_UNIXTHREAD command 10 can't byte swap it) "
> But the package still got built. Could this be the
> underlying problem?
> Specs --
> *System: PowerPC G4, OSX 10.3.9.
> *Python version: Python2.3
> *Py2app details: py2app-0.3.5, macholib-1.1,
> modulegraph-0.7, setuptools-0.6c3
> Any help would be greatly appreciated.
> Best Regards,
More information about the Pythonmac-SIG