On Saturday, I setup PIL, the Python Imaging Library. We're using it for thumbnails. Unfortunately, PIL is a real pill to install. I must've spent close to a day on it, Googling for everything I could find and looking through several config files.
In the end, my problems were due to 3 problems:
- PIL requires libjpeg to operate on JPEG files. And the Debian package is not sufficient; it must be downloaded and built from source
- libjpeg must be installed with the "make install-lib" command. The standard make install doesn't cut it.
- PIL's setup.py will tell you that it successfully installed JPEG support even when it didn't.
In my Googling, I found that many other people have had the same problem, and the PIL developers have been very unhelpful in resolving it. So once I make this public and Google indexes it, perhaps it'll prove useful to folks.