[Zope] Start up failing with ZopeCtlOptions instance has no attribute 'transcript'
st at taenzer.me
Wed Apr 1 12:37:06 CEST 2015
latest Zope2 releases (2.13.23.dev0) seem top have a bug in Zope2/Startup/zopectl.py and zdaemon/zdctl.py leading to this error on zopectl start (zopectl fg works fine):
Traceback (most recent call last):
File "/opt/python/zope2/bin/zopectl", line 9, in <module>
load_entry_point('Zope2==2.13.23.dev0', 'console_scripts', 'zopectl')()
File "/opt/python/zope2/lib/python2.7/site-packages/Zope2/Startup/zopectl.py", line 488, in run
exitstatus = main()
File "/opt/python/zope2/lib/python2.7/site-packages/Zope2/Startup/zopectl.py", line 447, in main
File "/opt/python/2.7.9/lib/python2.7/cmd.py", line 221, in onecmd
File "/opt/python/zope2/lib/python2.7/site-packages/Zope2/Startup/zopectl.py", line 241, in do_start
File "/opt/python/zope2/lib/python2.7/site-packages/zdaemon/zdctl.py", line 305, in do_start
args += self._get_override("-t", "transcript")
File "/opt/python/zope2/lib/python2.7/site-packages/Zope2/Startup/zopectl.py", line 223, in _get_override
value = getattr(self.options, name)
AttributeError: ZopeCtlOptions instance has no attribute 'transcript'
I repeated my setup multiple times and was able to reproduce this every time with every setup, so I don't think this is a configuration error on my side (yet if it is please tell me what might be wrong). Zope2 was installed using a simple pip install Zope2. Imho this bug comes up as in Startup/zopectl.py" the ZopeCtlOptions class is beeing emulated but so. missed the transcript attribute (as before this happend with the startup-time attribute, too).
I created a patch that's attached to this mail and should be run inside the virtualenv python dir (i.e. where bin, include, lib etc. reside):
patch -p0 < patch-zope2-startup.diff
Maybe someone could confirm that this bug exists and this fixes it?
tänzermedien GmbH - Agentur für Online-Medien
Kekuléstr. 39 | 53115 Bonn, Germany
E-Mail: st at taenzer.me | Web: http://www.taenzer.me
Tel.: 0228-304134-0 | Fax.: 0228-304134-99
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1431 bytes
Desc: not available
More information about the Zope