[Pythonmac-SIG] py2app and .so files

Aahz aahz at pythoncraft.com
Fri Mar 4 17:10:17 CET 2011


On Fri, Mar 04, 2011, Andr? Sintzoff wrote:
>
> The application is created with:
> $ python setup.py py2app --use-pythonpath
> 
> Unfortunately, when
> $ open ./dist/TortoiseHg.app/Contents/MacOS/TortoiseHg
> the following message is displayed
> ImportError: '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/mercurial/osutil.so'
> not found
> 
> I'm wondering why the application searches modules in
> /System/Library/Frameworks/Python.framework and not in the bundle just
> created where the files are available.

You need to download from python.org; using the built-in Python causes
py2app to behave differently.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Programming language design is not a rational science. Most reasoning
about it is at best rationalization of gut feelings, and at worst plain
wrong."  --GvR, python-ideas, 2009-03-01


More information about the Pythonmac-SIG mailing list