[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: python-fcgi?



On Mon, Aug 27, 2001 at 11:02:19AM -0600, Robert L. Harris wrote:
> 
> This is what I get in my apache error.log:
> 
> [Mon Aug 27 08:57:39 2001] [warn] FastCGI: server "/var/www/web2ldap/fcgi/web2ldap.py" restarted (pid 6110)
> Traceback (innermost last):
>   File "/var/www/web2ldap/fcgi/web2ldap.py", line 14, in ?
>     import sys,os,time,fcgi,threading
> ImportError: No module named fcgi
> [Mon Aug 27 08:57:39 2001] [warn] FastCGI: server "/var/www/web2ldap/fcgi/web2ldap.py" (pid 6110) terminated by calling exit with status '1'

I think it's just missing the fcgi.py, which is the python-side module
to establish the persistent CGI process together with the FastCGI
apache module mod_fastcgi. Just download that file (fcgi.py) from the
address below and put it in the directory where the web2ldap.py script
is located. It should normally be found there -- at least for testing
purposes that should do. If not, you might try fiddling with the env
var PYTHONPATH (module search path) or with sys.path from within the
web2ldap.py script. (Check the documentation to see if there's a more
appropriate place to install fcgi.py... If you can't find anything, and
things work, I wouldn't bother too much, though :)

> > 
> > http://alldunn.com/python/fcgi.py

Cheers,

-- 
Erdmut Pfeifer
science+computing ag

-- Bugs come in through open windows. Keep Windows shut! --



Reply to: