R: Py2exe beginner troubles
Lee Morgan
unknown at lee-morgan.net
Thu Sep 27 22:13:53 EDT 2001
"Fabrizio" <facelle at jumpy.it> writes:
> Thank you, now it works !
>
> By the way, is PIL (Python Imaging Library) supported by py2exe ?
> I have tried it, but I got an error message.
>
It is but you have to import the modules that you need that are loaded
dynamically, ie instead of
import Image
do something like
import Image
import BmpImagePlugin, JpegImagePlugin, PngImagePlugin, SgiImagePlugin, SunImagePlugin, TgaImagePlugin, TiffImagePlugin
Thats, at a guess, the reason for the error. You could probably cause the import
on a py2exe command line flag, but I haven't tried it.
Cheers
--
Lee Morgan
More information about the Python-list
mailing list