Monday, July 20, 2009

Python Imaging Library Macbook

Well, I'm thinking of installing a new framework called Pinax, which is a souped up version of django. I'm hoping to create a test case by rolling my own blog.

Anyway, one of the features of Pinax is that it comes with everything including the kitchen sink. Including the dreaded Imaging module. Now I say it's dreaded, because in order to get it running you need to be using PIL (Python Imaging Library), which in itself depends on libjpeg, which is a massive headache to install.

Why? Because libjpeg will only build to either i386 or PPC architecture (sound familiar?), and NOT to a fat client.

Normally, this isn't a problem, except that the build phase for PIL does build to a fat client. Which means the damn thing won't work.

After a lot of hunting, I found someone else who had the exact same problem.

To cut to the chase, the solution can be found here.

Incidentally, you can install libjpeg7 no problem.