[Image-SIG] (no subject)
Bernhard Barkow
bbarkow at 24on.cc
Sun Feb 5 11:01:14 CET 2006
Hi,
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?
Thanks,
Bernhard Barkow
---
...# 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'
More information about the Image-SIG
mailing list