On 27/6/01 6:37 pm, "Evan Simpson" <evan@4-am.com> wrote:
From: "Tony McDonald" <tony.mcdonald@ncl.ac.uk>
PYTHONHOME=/home/zope/Zope-2.3.3-src export PYTHONHOME exec /usr/local/bin/python2.1 $PYTHONHOME/z2.py "$@"
Gives an import error 243 % ./start 'import site' failed; use -v for traceback
The environment variable PYTHONHOME is meaningful to Python 2.0 and above, and causes this error. That's why "start" scripts generated under these versions use "INST_HOME" instead. The name is an unfortunate coincidence, and has nothing to do with "INSTANCE_HOME", so just edit your scripts to use a different name in place of "PYTHONHOME".
Cheers,
Evan @ digicool & 4-am
Sorry for the late reply Evan, That is *excellent* - the 'start' file here works... #! /bin/sh reldir=`dirname $0` INSTANCE_HOME=`cd $reldir; pwd` export INSTANCE_HOME WHERE_ZOPE_LIVES=/home/zope/Zope-2.3.3-src export WHERE_ZOPE_LIVES LD_LIBRARY_PATH='/usr/local/lib/:/usr/lib:/usr/local/ssl/lib:/usr/local/lib/ mysql' export LD_LIBRARY_PATH exec /usr/local/bin/python2.1 $WHERE_ZOPE_LIVES/z2.py "$@" I wouldn't have found that for a bl**dy long time ;) Cheers again Tone. -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope