PIL, Python and CGI

Kragen Sitaker kragen at pobox.com
Wed Jun 26 16:26:38 EDT 2002


Sascha Ferley <Sascha.Ferley at infineon.net> writes:
> Basically if i run the python program in shell mode, it works fine. But
> when i run it via cgi mode it screws up horobly.
> Looking at the error-log i see just following:
> 
> Traceback (most recent call last):
> ...
>   File "/usr/local/lib/python2.2/site-packages/PIL/Image.py", line 39,
> in __geta
> ttr__
>     raise ImportError, "The _imaging C module is not installed"
> ImportError: The _imaging C module is not installed
> 
> Anyone have any ideas?

Perhaps your CGI Python is not your shell Python, and one of them has
PIL properly installed, while the other one doesn't.



More information about the Python-list mailing list