Re: python-fcgi?
Ok, that fixed that. now I'm getting this:
[Mon Aug 27 11:05:04 2001] [warn] FastCGI: server "/var/www/web2ldap/fcgi/web2ldap.py" restarted (pid 7869)
Traceback (innermost last):
File "/var/www/web2ldap/fcgi/web2ldap.py", line 18, in ?
sys.path.insert(0,os.sep.join([exec_startdir,'etc','web2ldap']))
AttributeError: 'string' object has no attribute 'join'
[Mon Aug 27 11:05:04 2001] [warn] FastCGI: server "/var/www/web2ldap/fcgi/web2ldap.py" (pid 7869) terminated by calling exit with status '1'
Here's lines 17-19:
exec_startdir = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0])))
sys.path.insert(0,os.sep.join([exec_startdir,'etc','web2ldap']))
sys.path.insert(0,os.sep.join([exec_startdir,'pylib']))
Any thoughts or do I need to find the author and poke/prod him/her?
Thanks alot,
Robert
Thus spake Erdmut Pfeifer (e.pfeifer@science-computing.de):
> 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! --
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
:wq!
---------------------------------------------------------------------------
Robert L. Harris | Micros~1 :
Senior System Engineer | For when quality, reliability
at RnD Consulting | and security just aren't
\_ that important!
DISCLAIMER:
These are MY OPINIONS ALONE. I speak for no-one else.
FYI:
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
Reply to: