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

Ritesh Nadhani riteshn at gmail.com
Tue Jul 24 09:48:55 CEST 2007


Indeed that was the case. Change the two files and now they work.

Thanks. Maybe I had got it working in the first step itself but due to
my ignorance about PIL and PIL.pth thought that it was not installed
correctly.

Thanks for helping me out.

On 7/24/07, Bob Ippolito <bob at redivi.com> wrote:
> 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
>


-- 
Ritesh
http://www.riteshn.com


More information about the Pythonmac-SIG mailing list