[Pythonmac-SIG] import img

Michael Mell mike@nthwave.net
Tue, 22 Oct 2002 13:52:07 -0700


On Friday, October 18, 2002, at 08:43  PM, Michael Mell wrote:
> I've just upgraded from OS9.2 to 10.2.
> Many of my Python tools have "import img" as a key piece of 
> functionality.
> Now that I'm on 10.2, this causes an Error:
> 	ImportError: No module named img
>
> I can't even find the img module in the documentation for old 
> versions. It doesn't seem to be part of PIL.
>
> What gives? How was I able to run code in OS9 that won't work in X?

To answer my own query:
the img module is written and maintained by Jack Jansen. He is also the 
maintainer of the "Download Python for Mac" page. Since us poor Mac 
people mostly didn't have compilers back in the pre-OSX days, he 
bundled the img module with the Mac distribution.

So img is part of the standard distribution for Mac <OS9.2.
It is not part of the distribution for OSX.
Getting the img library for OSX seems to be problematic.
I'm not enough of a Python pro to suggest a solution, but I hope one 
appears.

Hearty and heartfelt thanks to Jack!

mike