PIL broken on win32?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Mellon

    #1

    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("goo d.jpg")
    d = ImageDraw.Draw( i)
    d.line((10,10,2 0,20))
    Traceback (most recent call last):
    File "<input>", line 1, in ?
    File "C:\Python24\Li b\site-packages\PIL\Im ageDraw.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("goo d.jpg")
    d = i.getdata()
    Traceback (most recent call last):
    File "<input>", line 1, in ?
    File "C:\Python24\Li b\site-packages\PIL\Im age.py", line 860, in getdata
    self.load()
    File "C:\Python24\Li b\site-packages\PIL\Im ageFile.py", line 217, in load
    return Image.Image.loa d(self)
    File "C:\Python24\Li b\site-packages\PIL\Im age.py", line 599, in load
    return self.im.pixel_a ccess(self.read only)
    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.
Working...