[Image-SIG] Problems with PIL1.1.4 using Py2exe
>>>Gabriele Tazzari
gab at hg-lab.net
Sat Jul 17 20:55:52 CEST 2004
Hi,
I'm trying to compile and transform an application that uses the PIL 1.1.4 and transform it in an exe file using py2exe.
This is the python code:
import os,shutil,Image
a=Image.open("test.jpg")
b=a.resize((150,80),Image.ANTIALIAS)
b.save("d:/test_script.jpg")
a=None
b=None
And this is the setup script:
# setup.py
from distutils.core import setup
import py2exe
setup(name="testpil.py",scripts=["testpil.py"],)
and of course the script is called in this way:
setup.py py2exe
Can you please tell me why the script runs and the exe doesn't ?
The error I get with the exe is
Traceback (most recent call last):
File "<string>", line 2, in ?
File "Image.pyo", line 1571, in open
IOError: cannot identify image file
It can't open the image file...
Can you advise please?
Thanks
Gabriele Tazzari
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/image-sig/attachments/20040717/e30df8c1/attachment.htm
More information about the Image-SIG
mailing list