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

Re: python-fcgi?



Bingo.  I did have python2-base, but that was it.  Everything else pointed at
version 1.52.  I'm upgrading that now and will remove the 1.52.  This is the
only tool I've got using python so we'll see how it behaves.

Thanks alot,
  Robert


Thus spake Erdmut Pfeifer (e.pfeifer@science-computing.de):

> On Mon, Aug 27, 2001 at 12:07:49PM -0600, Robert L. Harris wrote:
> > 
> > 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']))
> 
> my guess would be that you're running a python version <2.0 (probably
> 1.5.x). There were some changes in string handling, which is what seems
> to break the script (the join method it's complaining about)...
> 
> If you're interested in the details, check this page:
> 
> http://www.python.org/2.0/new-python.html#SECTION000800000000000000000
> 
> I just had a look at http://www.web2ldap.de/install.html, where it says:
> 
> "For running web2ldap 0.9.4+ you need at least: 
> 
>     Python 2.0 or later (currently Python 2.1.1 is recommended).
>     ..."
> 
> so, I assume you won't get around getting a new python package ;)
> 
> (Or, if you've already installed version v2.x, maybe you're just
> invoking the old 1.5 interpreter in the #!-line at the start of the
> script -- in which case v1.5 obviously still seems to be present, too)
> 
> And, once you've completed the upgrade, don't forget to change the
> #!-lines of the *.py scripts involved to reflect the change
> (i.e. #!/usr/local/bin/python1.5 or similar will no longer work then)
> 
> Good luck,
> 
> -- 
> 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: