[Pythonmac-SIG] Trouble installing Python Imaging Library on Mac OS X

Bob Ippolito bob at redivi.com
Tue Jul 24 09:21:53 CEST 2007


On 7/23/07, Ritesh Nadhani <riteshn at gmail.com> wrote:
> Now this gets interesting, Believing that selftest.py is doing
> something wrong, I did:
>
> >>> import Image
> >>> im = Image.open("Images/lena.jpg")
> >>> print im.format, im.mode, im.size
> JPEG RGB (128, 128)
>
> but selftest.py fails with:

Running selftest.py tries to load the PIL package in-place, not the
copy you have installed. Unless you have a correctly built it in that
source directory you should expect it to fail. If you move PIL and
PIL.pth out of the way then it will use the version you have installed
and will probably pass all of the tests.

-bob


More information about the Pythonmac-SIG mailing list