python

Build PIL on Snow Leopard

I have had a right game trying to get the Python imaging library working on my machine. I kept getting Symbol not found: _jpeg_resync_to_restart when trying to import _imaging and in django I got the lovely error saying that the Imaging C library was not installed. It all pointed at libjpeg and seemed to be an architecture thing so I needed a universal version.

I tried the dmg file from http://ethan.tira-thompson.org/Mac_OS_X_Ports.html and this too http://jetfar.com/libjpeg-and-python-imaging-pil-on-snow-leopard/

Python is odd

I have a couple of jobs using the django framework on the go which is written in python; a language I haven't really used before. After a good bit of sifting through code and finding my feet I can't help but feel that it doesn't know what it really is.

Firstly it has some OOP but not fully; no static vars or access levels for vars or methods. Even php has this. Then there is fact that it compiles, sort of, but you can't just deploy the compiled files. It needs the source there too.