I have greatly struggled to have PIL library support in isolated Python environments like virtualenv –no-site-packages.
For example, when installing Satchmo shop under virtualenv:
../bin/clonesatchmo.pyhe Python Imaging Library is not installed. Install from your distribution binaries.../bin/clonesatchmo.py The Python Imaging Library is not installed. Install from your distribution binaries.
Though it clearly is there, installed by easy_install PIL command:
ls ../lib/python2.5/site-packages/PIL-1.1.7-py2.5-linux-x86_64.egg ArgImagePlugin.py ExifTags.py GimpGradientFile.pyc...
Does anyone know if this problem is with PIL itself, eggified PIL or something else?
In any case, there is an easy workaround: use system-wide PIL (sudo apt-get install python-imaging) and symlink PIL from your site-wide installation under the isolated Python environment:
(satchmo-py25)mulli% pwd /srv/plone/mmaspecial/satchmo-py25/lib/python2.5/site-packages (satchmo-py25)mulli% ln -s /usr/lib/python2.4/PIL .

