Bernhard Barkow wrote: > I'm having a serious problem with the Python Image Library: it > compiles fine with JPEG support, and passes the selftest.py (55 > tests), but whenever I try to open a JPEG file, I receive an error > (AttributeError: 'module' object has no attribute '_safe_read'; see > below). > I use Python 2.3.5 and libjpeg62 (Debian 3.1), PIL 1.1.5 (no Freetype2). > Do you have any hints how I can overcome this?
looks like a version mixup. make sure you don't have older ImageFile modules lying around... </F> > ...# pilfile.py -v logo2.jpg > logo2.jpg failed: unexpected error > Traceback (most recent call last): > File "/usr/bin/pilfile.py", line 75, in ? > im = Image.open(file) > File "/usr/lib/python2.3/site-packages/PIL/Image.py", line 1556, > in open > return factory(fp, filename) > File "/usr/lib/python2.3/site-packages/PIL/ImageFile.py", line 78, > in __init__ > self._open() > File "/usr/lib/python2.3/site-packages/PIL/JpegImagePlugin.py", > line 270, in _open > handler(self, i) > File "/usr/lib/python2.3/site-packages/PIL/JpegImagePlugin.py", > line 56, in APP > s = ImageFile._safe_read(self.fp, n) > AttributeError: 'module' object has no attribute '_safe_read' _______________________________________________ Image-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/image-sig
