hello, i tried this but still got the same error. in my code i use:
from PIL import Image my setup.py: from setuptools import setup setup( app=["converter.py"], setup_requires=["py2app"], options=dict(py2app=dict(packages='PIL',)), ) in the terminal i get: *** using recipe: PIL *** that looks ok but still that line throws an error: from PIL import Image any ideas? thanks a lot joerg Am 08.04.2008 um 16:26 schrieb Martin Dunschen: > PIL stands for "Python Imaging Library". "Image" is the module you > import to use this library. > > In your setup.py you need to make sure that the "Image" module is > included in building the app. Read the documentation to py2app (or > py2exe) to find how you can ensure that this module will be included > in > the modules your application depends on: I think you've got to use > something like this: > > setup( > options=dict( > py2app=dict( > ... > packages='wx, PIL', > ... > > > in your setup.py file. This says that you want the packages wx and PIL > (Image module) included in your distribution (the application). > > Hope this helps, > > Martin > _______________________________________________ > 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