I'm having trouble getting pictures supported with PIL - it throws me this:
IOError: decoder jpeg not available
I installed PIL from binary, not realizing I needed libjpeg.
I installed libjpeg and freetype2 through fink.
I tried to reinstall PIL using instructions from http://timhatch.com/ (bottom of the page)
Patch setup.py with this patch so it can find the Freetype you already have.
patch -p0 < leopard_freetype2.diff
But I'm still getting the same error.
I'm on Leopard PPC.
I had the similar 'jpeg decoder problem' recently when deploying a django project on a product RHEL box that required PIL. I downloaded PIL, and ran 'python setup.py install' instantly, and was happy that everything was working, until I bumped into the problem. Solution: libjpeg was already installed on the system, so I installed libjpeg-devel. I went back into the source of PIL and ran 'python setup.py build', at the end of which, in the output where it shows whether PIL configure was able to detect support for jpeg, gif, freetype, etc, it said that jpeg support was ok. After installing PIL, it worked fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With