[Zope] z2.py startup problem

Dirk Datzert dirk.datzert@tks-rasselstein.thyssenkrupp.com
Sun, 30 Jun 2002 12:12:57 +0200


Hi,

I installed a fresh zope and want to start it with:

web05:/var/lib/zope # ./z2.py -z /usr/share/zope -Z
/var/run/zwatchdog.pid -w 8080
-D

I get an error:

./z2.py: line 216: syntax error near unexpected token
`sys.path.insert(0,'
./z2.py: line 216: `    sys.path.insert(0, '%s/lib/python' % swhome)'

the lines about 216 are here:

# This is required path hackery for the win32 binary distribution
# that ensures that the bundled python libraries are used. In a
# win32 binary distribution, the installer will have replaced the
# marker string with the actual software home. If that has not
# happened, then the path munging code is skipped.
swhome=r'INSERT_SOFTWARE_HOME'
if swhome != 'INSERT_SOFTWARE_HOME':
    import sys
    sys.path.insert(0, '%s/lib/python' % swhome)
    sys.path.insert(1, '%s/bin/lib' % swhome)
    sys.path.insert(2, '%s/bin/lib/plat-win' % swhome)
    sys.path.insert(3, '%s/bin/lib/win32' % swhome)
    sys.path.insert(4, '%s/bin/lib/win32/lib' % swhome)
    sys.path.insert(5, '%s' % swhome)

I'm on a linux box with python 2.1.3, Zope 2.5.1

What should I do ? The code looks clear to me.
I have installed 3 Zopes before and didn't got this error until now.

Regards,
Dirk