PIL (Python Image Library)

Rich Somerfield rich_somerfield at tertio.com
Tue Feb 20 06:18:17 EST 2001


Sounds like a problem with the PYTHONPATH, maybe this is not used in CGI
scripts?  I dont know but u might have to specify the full path of the
modules that u r attempting to import.  Or maybe a cheat would be to copy
all of the python scripts that u want to import into the CGI-BIN directory
(or the Python Interpreter directory).

Regards
Rich

Mix <mix77 at usa.net> wrote in message news:3A910D3A.74602C0 at usa.net...
> I am trying to manipulate (rotate) an image using PIL(Python
> Image Library). My problem is that I cannot get PIL to work
> form a browser, i.e. in my cgi script I have
>
>      import Image
>
> and this gives the error :
>
>         Traceback (innermost last):
>               File "/home/mixo/faxserv/cgi-bin/t1.py", line 3, in ?
>                   import Image
>          ImportError: No module named Image
>
> What is causing the error? If I run the script "t1.py" as any
> valid user on the machine from the command line , I get disried
> result.I  know PIL has been installed as is if I run the Python i
> nterpreter I can manipulate images using PIL.
> I
>
>





More information about the Python-list mailing list