[ZCM] [ZC] 857/ 2 Comment "ZopeUndo not in setup.py"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin@zope.org
Wed, 16 Jul 2003 12:06:47 -0400


Issue #857 Update (Comment) "ZopeUndo not in setup.py"
 Status Pending, Zope/bug+solution medium
To followup, visit:
  http://collector.zope.org/Zope/857

==============================================================
= Comment - Entry #2 by argentum on Jul 16, 2003 12:06 pm

Same story on RH9 with Zope-2.6.1.src.tgz
The solution seems to be simply to copy the ZopeUndo directory into whatever distribution lib/python directory you chose.

D.
________________________________________
= Request - Entry #1 by Anonymous User on Mar 17, 2003 12:57 pm

I installed zope using setup.py and make_instance, which worked fine with 2.6.0:
cd Zope-2.6.1-src
DEST=/usr/local/zope/Zope-2.6.1
python setup.py install --home=$DEST \
  --install-platlib=$DEST --install-purelib=$DEST
su - zope-user
python inst/make_instance.py
 (using /zopedir as instance home)

Starting Zope without -D didn't work, with -D it yields an error:
ZOPE_HOME=/usr/local/zope/Zope-2.6.1
SOFTWARE_HOME=$ZOPE_HOME
INSTANCE_HOME=/zopedir
PYTHONPATH=$INSTANCE_HOME
export ZOPE_HOME SOFTWARE_HOME INSTANCE_HOME PYTHONPATH
python $ZOPE_HOME/z2.py -X -w5550 -w5551 -w5552 -D

2003-03-17T18:54:00 PANIC(300) z2 Startup exception
Traceback (innermost last):
  File /usr/local/zope/Zope-2.6.1/z2.py, line 582, in ?
  File /usr/local/zope/Zope-2.6.1/Zope/__init__.py, line 45, in startup
  File /usr/local/zope/Zope-2.6.1/Zope/App/startup.py, line 28, in ?
  File /usr/local/zope/Zope-2.6.1/OFS/Application.py, line 18, in ?
  File /usr/local/zope/Zope-2.6.1/OFS/Folder.py, line 22, in ?
  File /usr/local/zope/Zope-2.6.1/OFS/SimpleItem.py, line 23, in ?
  File /usr/local/zope/Zope-2.6.1/App/Undo.py, line 22, in ?
ImportError: No module named ZopeUndo.Prefix


Looking at CVS of setup.py I noticed that it branched to Zope-2_6-branch at 1.11, but ZopeUndo was added in 1.12.
Zope 2.6.0 didn't need ZopeUndo, therefore there is no problem with it.
==============================================================