473,554 Members | 3,202 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2677
by: Gerson Kurz | last post by:
I have problems getting "COM makepy" working in ActivePython 2.3.2. This is what happens when I start "COM makepy" from the Pythonwin Menu: PythonWin 2.3.2 (#49, Nov 6 2003, 10:18:20) on win32. Portions Copyright 1994-2001 Mark Hammond (mhammond@skippinet.com.au) - see 'Help/About PythonWin' for further copyright information. >>> Failed...
3
1654
by: Michael | last post by:
I have broken PythonWin and I don't know how or why. It worked great until recently. I have installed / removed several apps since it worked last. I could have a virus unknown to my antivirus program, I guess. I'm stumped. ---------- The Symptoms --------------------- Here's what happens. I fire up PythonWin without opening a python...
0
1246
by: Tim Roberts | last post by:
It looks to me like the handling of the currency type in an ADODB connecction from Python is broken. Currency data in an Access database is stored as a 64-bit integer, scaled by 10000. In an ADODB recordset, this is returned as a 2-tuple, where the second element is the currency value, but the value is stored as a normal integer, not a lont...
28
2656
by: Grant Edwards | last post by:
I finally figured out why one of my apps sometimes fails under Win32 when it always works fine under Linux: Under Win32, the pickle module only works with a subset of floating point values. In particular the if you try to dump/load an infinity or nan value, the load operation chokes: Under Linux: $ python
42
2347
by: cody | last post by:
public DateTime Value { get { try { return new DateTime(int.Parse(tbYear.Text), int.Parse(tbMonth.Text), int.Parse(tbDay.Text)); } catch (FormatException)
205
10469
by: Jeremy Siek | last post by:
CALL FOR PAPERS/PARTICIPATION C++, Boost, and the Future of C++ Libraries Workshop at OOPSLA October 24-28, 2004 Vancouver, British Columbia, Canada http://tinyurl.com/4n5pf Submissions
12
1485
by: John Gabriel | last post by:
lThe compiler output report is seldom correct: Problems here involve not being able to generate an accurate compile report. There are so many problems and I am not on Microsoft's payroll. Neither do I plan to help them fix such a buggy product. The IDE closes down unexpectedly: For no reason at all, the IDE aborts (shuts down); prompts for...
1
2183
by: mtnBikingMark | last post by:
Hi, I am confused by unicode_escape functionality - it doesn't seem to follow string_escape functionality. I would expect that given the same string (or at least a non-unicode and unicode string appropriately) that they would produce more or less the same output, but: >>> "\t\\t".encode('string_escape')
10
2197
by: Larry Hastings | last post by:
I'm an indie shareware Windows game developer. In indie shareware game development, download size is terribly important; conventional wisdom holds that--even today--your download should be 5MB or less. I'd like to use Python in my games. However, python24.dll is 1.86MB, and zips down to 877k. I can't afford to devote 1/6 of my download...
0
7516
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8029
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7551
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7881
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6131
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5428
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1121
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
831
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.