[Image-SIG] Natty: Python Imaging Library in a virtualenv - no JPEG or PNG support

George V. Reilly george at reilly.org
Wed May 18 01:35:27 CEST 2011


On Thu, May 12, 2011 at 3:17 AM, Charlie Clark
<charlie.clark at clark-consulting.eu> wrote:
>
> Am 09.05.2011, 18:34 Uhr, schrieb George V. Reilly <george at reilly.org>:
>
>> I'm unable to build PIL with JPEG and PNG support in Ubuntu 11.04. I
>> posted this to http://ubuntuforums.org/showthread.php?t=1751455 on
>> Friday but have received no responses.
>> We build our Python webservices in a virtualenv with all external
>> packages stored locally. This gives us reproducible results on a
>> variety of Linux distros, Mac, and Windows, both for developer
>> machines and production boxes.
>
> PIL isn't safe for use with easy_install. I hope that Naoki's post about the x86_64 libraries has helped as this came up recently.
>
> For virtualenv's the best choice, however, is to use the Pillow fork of PIL which runs fine with easy_install or pip. Oh, and try to avoid "activate" unless you're very confident of what you're doing.

Thanks, Charlie et al. Ultimately, what I ended up doing was
symlinking libjpeg.so and libz.so into /usr/lib, as earlier versions
of Ubuntu did:

$ pushd /usr/lib
$ sudo ln -s i386-linux-gnu/libjpeg.so libjpeg.so
$ sudo ln -s i386-linux-gnu/libz.so libz.so

--
/George V. Reilly  george at reilly.org  Twitter: @georgevreilly
http://www.georgevreilly.com/blog  http://blogs.cozi.com/tech


More information about the Image-SIG mailing list