[Pkg-zope-developers] Zope2.7 and ZEO

Igor Stroh igor@rulim.de
Fri, 30 Jul 2004 09:29:59 +0200


Igor Stroh wrote:

 > has anyone managed to create and run a ZEO instance using
 > the new zope2.7 package? I used /usr/share/zope2.7/bin/mkzeoinstance.py
 > to create a new ZEO instance, when I tried to run
 > /var/lib/zope2.7/instance/zeo/bin/zeoctl start
 > I got an exception from ZConfig.SchemaError:
 > "could not load package ZODB: No module named cPersistence"
 > The cPersistence.so is in /usr/lib/zope2.7/lib/python/ZODB/ though, so
 > what's going wrong here? Any ideas?

Ah, got it, bin/zeoctl needs to be patched:

INSTANCE_PATH=/var/lib/zeo # or whatever
PYTHON="/usr/bin/python2.3"
ZOPE_HOME="/usr/lib/zope2.7"
CONFIG_FILE="$INSTANCE_PATH/etc/zeo.conf"
SOFTWARE_HOME="/usr/lib/zope2.7/lib/python"
PYTHONPATH="$SOFTWARE_HOME"
export PYTHONPATH SOFTWARE_HOME
ZEOCTL="$SOFTWARE_HOME/ZEO/zeoctl.py"
exec "$PYTHON" "$ZEOCTL" -C "$CONFIG_FILE" ${1+"$@"}

Regards,
Igor