Chris Mellon wrote: > 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
looks like you're using a 1.1.5 core DLL with 1.1.6. look for multiple copies of _imaging.pyd under c:\python24. </F> -- http://mail.python.org/mailman/listinfo/python-list