[Pythonmac-SIG] Error building an OSX PySide app with py2app

Aahz aahz at pythoncraft.com
Sun Sep 11 01:48:37 CEST 2011

On Thu, Sep 01, 2011, Aaron Scott Hildebrandt wrote:
> I'm trying to deploy a Python app on OSX that was built with PySide. py2app
> packages it without issue, copying and linking a lot of PySide and Qt files
> in the process. But then, when I try to run the built app, I get this error:
>   File "PySide/QtCore.pyc", line 15, in __load
> ImportError: '/usr/lib/python2.6/lib-dynload/PySide/QtCore.so' not found
> The weird thing is, QtCore.so IS included in the application bundle: py2app
> copied it to
> dailies_v02.app/Contents/Resources/lib/python2.6/lib-dynload/PySide/.

Responding late, notice the oddball path.  Somehow your lib-dynload/
isn't getting looked at.  You might try running the app from the command
line (using the packaged Python).
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"If you don't know what your program is supposed to do, you'd better not
start writing it."  --Dijkstra

More information about the Pythonmac-SIG mailing list