[Zope] Confusion over INST_HOME and INSTANCE_HOME
Norman Khine
khine@btinternet.com
Wed, 27 Jun 2001 18:40:28 +0100
Hi Tony,
I am having the same problem, as you describe, see my original post
http://lists.zope.org/pipermail/zope/2001-June/093347.html
I was told by Evan @ digicool & 4-am that the INST_HOME was a typo and it
should be INSTANCE_HOME, so perhaps the problem is with 2.3.3
I am using FreeBSD, not that I know if it makes a difference, and was also
following the http://www.zope.org/Members/4am/instancehome how-to.
What confuses me ;^) is that to run zope from single tree with INST_HOME in
the start up works fine, but when I create a start script in the
InstanceHome dir that it fails.
Sorry I can't be of help, but hopefully you would not feel alone, heh?
Regards
Norman
-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Tony
McDonald
Sent: 27 June 2001 13:17
To: Zope
Subject: [Zope] Confusion over INST_HOME and INSTANCE_HOME
Hi,
I have this which is from a stock 2.3.3 distribution under Solaris:
219 % more start
#! /bin/sh
reldir=`dirname $0`
INST_HOME=`cd $reldir; pwd`
export INST_HOME
exec /usr/local/bin/python2.1 \
$INST_HOME/z2.py "$@"
When started up, this works fine.
Looking for INST_HOME in the src tree I get:
220 % find . -print | xargs grep INST_HOME
./inst/make_start.py: varname='INST_HOME'
Binary file ./inst/make_start.pyc matches
./start:INST_HOME=`cd $reldir; pwd`
./start:export INST_HOME
./start: $INST_HOME/z2.py "$@"
Doing the same for INSTANCE_HOME brings back 52 lines of matches.
I'm using the How-To at <http://www.zope.org/Members/4am/instancehome> to
have one source installation serve up loads of mini zope sites. It has
always worked well under 2.3.0, and here's a 'start' file that does work.
Thr python used is 1.52
(Zope 2.3.0)
#! /bin/sh
reldir=`dirname $0`
INSTANCE_HOME=`cd $reldir; pwd`
export INSTANCE_HOME
PYTHONHOME=/home/zope/Zope-2.3.0-src
export PYTHONHOME
exec /usr/local/bin/python $PYTHONHOME/z2.py "$@"
Whereas this start file under Zope 2.3.3, (note: I've got both INST_HOME
and INSTANCE_HOME defined). This is also a python2.1 distribution
#! /bin/sh
reldir=`dirname $0`
INSTANCE_HOME=`cd $reldir; pwd`
INST_HOME=`cd $reldir; pwd`
export INSTANCE_HOME
export INST_HOME
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
Traceback (most recent call last):
File "/home/zope/Zope-2.3.3-src/z2.py", line 296, in ?
import os, sys, getopt, string
ImportError: No module named os
Does anyone know what I'm doing wrong here?
--
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
_______________________________________________
Zope maillist - Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )