[Image-SIG] PIL / wxPython conflict

bob@glumol.com bob at glumol.com
Wed Jun 29 14:05:16 CEST 2005


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



More information about the Image-SIG mailing list