[Pythonmac-SIG] py2app and .so files

André Sintzoff andre.sintzoff at gmail.com
Fri Mar 4 10:56:58 CET 2011


Hello,

I'm trying to create a py2app application built for TortoiseHg
(https://bitbucket.org/tortoisehg/thg/wiki/Home). The goal is to
provide a Mac OS X stand alone application for TortoiseHg.

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.

$ ls ./dist/TortoiseHg.app/Contents/Resources/lib/python2.5/lib-dynload/*
./dist/TortoiseHg.app/Contents/Resources/lib/python2.5/lib-dynload/PyQt4:
Qsci.so		QtCore.so	QtGui.so

./dist/TortoiseHg.app/Contents/Resources/lib/python2.5/lib-dynload/mercurial:
base85.so	diffhelpers.so	osutil.so
bdiff.so	mpatch.so	parsers.so


How to tell to the application to use bundled .so files?

Thank you

André


More information about the Pythonmac-SIG mailing list