471,894 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,894 software developers and data experts.

PIL broken on win32?

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.
Dec 20 '06 #1
0 1051

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Gerson Kurz | last post: by
3 posts views Thread by Michael | last post: by
reply views Thread by Tim Roberts | last post: by
28 posts views Thread by Grant Edwards | last post: by
42 posts views Thread by cody | last post: by
205 posts views Thread by Jeremy Siek | last post: by
12 posts views Thread by John Gabriel | last post: by
1 post views Thread by mtnBikingMark | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.