Am 09.04.2008 um 13:20 schrieb Martin Dunschen: > The recommendation is to import like this: > > import Image
that throws an error that the module is not found even without wrapping is it the recommendation for py2app or for python general? > > > not > from PIL import Image > ... > > This reqires that PYTHONPATH is set up to find the module. > > > PIL should be in your PYTHONPATH environment variable. Test this: > > import sys > print sys.path > > and see if PIL is somewhere in there. ['/Users/Shared/work/converter/pybackend', '/Users/Shared/work/ converter/pybackend/src', '/Library/Python/2.5/site-packages', '/ System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/ python', '/System/Library/Frameworks/Python.framework/Versions/2.5/ Extras/lib/python/PyObjC', '/System/Library/Frameworks/ Python.framework/Versions/2.5/lib/python2.5', '/System/Library/ Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload', '/ System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/plat-darwin', '/System/Library/Frameworks/Python.framework/ Versions/2.5/lib/python2.5/plat-mac', '/System/Library/Frameworks/ Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib- scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/ 2.5/lib/python25.zip', '/System/Library/Frameworks/Python.framework/ Versions/2.5/lib/python25.zip'] obviously it is missing how do I add it? > > > I take it that if you run your python without wrapping it into an > application everything works as expected? yes everything works fine. Thanks and best Regards Joerg > > _______________________________________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/mailman/listinfo/pythonmac-sig _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig