PIL broken on win32?
Chris Mellon
arkanes at gmail.com
Wed Dec 20 13:13:30 EST 2006
PIL 1.1.5 and 1.1.6 both seem to be broken, in different ways, on win32.
1.1.5 will load and access images, but ImageDraw fails:
i = Image.open("good.jpg")
d = ImageDraw.Draw(i)
d.line((10,10,20,20))
Traceback (most recent call last):
File "<input>", line 1, in ?
File "C:\Python24\Lib\site-packages\PIL\ImageDraw.py", line 199, in line
self.draw.draw_lines(xy, ink, width)
TypeError: function takes exactly 2 arguments (3 given)
1.1.6 is just broken in general - any access to image data fails:
i = Image.open("good.jpg")
d = i.getdata()
Traceback (most recent call last):
File "<input>", line 1, in ?
File "C:\Python24\Lib\site-packages\PIL\Image.py", line 860, in getdata
self.load()
File "C:\Python24\Lib\site-packages\PIL\ImageFile.py", line 217, in load
return Image.Image.load(self)
File "C:\Python24\Lib\site-packages\PIL\Image.py", line 599, in load
return self.im.pixel_access(self.readonly)
AttributeError: pixel_access
These are the binary distributions for Python 2.4 off the effbot
download at http://effbot.org/downloads/#PIL
I tried with Python 2.5 quickly too - both 1.1.5 and 1.1.6 failed at
the same function that 1.1.5 for 2.4 failed at, but with a
SystemError: new style getargs format but argument is not a tuple
exception.
More information about the Python-list
mailing list