Python with PIL and Libjpeg on Leopard

Posted by thescreamingdrills on Stack Overflow See other posts from Stack Overflow or by thescreamingdrills
Published on 2008-10-30T06:00:14Z Indexed on 2010/12/26 13:54 UTC
Read the original article Hit count: 333

Filed under:
|
|
|

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)

"* Download PIL 1.1.6 source package and have the Developer Tools already installed * Patch setup.py with this patch so it can find the Freetype you already have. (patch -p0 < leopard_freetype2.diff) * sudo apt-get install libjpeg if you have fink (otherwise, build by hand and adjust paths)"

But I'm still getting the same error.

I'm on Leopard PPC.

© Stack Overflow or respective owner

Related posts about python

Related posts about pil