Hello,

I get an exception when I run these 3 lines in every projet that use
wxPython.

import Image
img = Image.open('bitmaps/image.png')
img = img.tostring() -> EXCEPTION !

The program raises an IOError exception on line 207 from ImageFile.py (in
PIL).

205 if not self.map and e < 0:
206   error = ERRORS.get(e, "decoder error %d" % e)
207   raise IOError(error + " when reading image file")

Does someone know where it may come from ? It's possible that it comes
from wxPython too.

Thanks

_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to