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

Re: python-fcgi?



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! --



Reply to: