[Zope] ImportError on Zope startup

Jens Vagelpohl jens@zope.com
Mon, 22 Oct 2001 08:20:23 -0400


the PYTHONHOME bit in your start script collides with python 2.x, where it 
turned into a "special name" for python. simply commenting it out should 
help.

jens


On Saturday, October 20, 2001, at 03:18 , Timothy Wilson wrote:

> Hi everyone,
>
> I'm trying to get Zope 2.4.1 running with ActivePython 2.1.1. I compiled
> Zope with no trouble and was able to run it initially. The problem came 
> when
> I tried to set it up with an INSTANCE_HOME. (Which is how 2.3.3 was 
> running
> on this box.) I'm using Linux, BTW.
>
> Here's the start script:
>
> beethoven:/var/zope# cat start
> #! /bin/sh
> reldir=`dirname $0`
> INSTANCE_HOME=`cd $reldir; pwd`
> export INSTANCE_HOME
> PYTHONHOME=/var/zope_soft
> export PYTHONHOME
> exec /usr/local/bin/python2.1 \
>      $PYTHONHOME/z2.py \
>      -X -w 8080 "$@"
>
> When I try to run the start script I get:
>
> beethoven:/var/zope# ./start
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
>   File "/var/zope_soft/z2.py", line 296, in ?
>     import os, sys, getopt, string
> ImportError: No module named os
>
> It's a little strange that 2.4.1 would run OK without the INSTANCE_HOME
> start script, the INSTANCE_HOME start script worked fine w/ Zope 2.3.3 
> (and
> Python 1.5.2), and my ActivePython (/usr/local/bin/python2.1) is certainly
> capable of importing 'os'.
>
> Any ideas?
>
> -Tim
>