Importing custome modules from command line works but fails in a CGI under Apache

Adrian Eyre a.eyre at optichrome.com
Wed Mar 15 11:30:33 EST 2000


> On the interactive environment when I do a
> 
> import maxvu.message
> 
> it works but when I try this under a cgi script, it fails with an
> ImportError.

The usual problem with cgi Python scripts is that the uid used when
running the script does not have permission to access certain files
which 'your' uid does.

Check the permissions of the /usr/local/lib/python1.5/maxvu dir, and
any files inside it.





More information about the Python-list mailing list