Start up failing with ZopeCtlOptions instance has no attribute 'transcript'
Hello all, 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 c.onecmd(" ".join(options.args)) File "/opt/python/2.7.9/lib/python2.7/cmd.py", line 221, in onecmd return func(arg) File "/opt/python/zope2/lib/python2.7/site-packages/Zope2/Startup/zopectl.py", line 241, in do_start ZDCmd.do_start(self, arg) 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? Best Sebastian - tänzermedien GmbH - Agentur für Online-Medien Kekuléstr. 39 | 53115 Bonn, Germany E-Mail: st@taenzer.me | Web: http://www.taenzer.me Tel.: 0228-304134-0 | Fax.: 0228-304134-99
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/01/2015 06:37 AM, Sebastian Tänzer wrote:
Zope2 was installed using a simple pip install Zope2
If you didn't install it with the Zope2 index, you probably have incompatible versions. E.g.: $ pip install Zope2 will be borked, but: $ pip install \ --index-url=http://download.zope.org/Zope2/index/2.13.22/ Zope2 will work. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJVHIn8AAoJEPKpaDSJE9HY730QAIQlAjcrujZP/XnfR9O6Taez a2xC6ytUhbDyge853WxezFO4kk9e+Ufoupa5/l/AFYAwWFwZ5Iqv5R10JOlSHN1o kSl0jbfJCZ8DtP4KSppeccghm3WHiASrHFOEr9QPWkMO7AHe387e3nR6foERUg9m 6Mn+2TKDPPbJHz5S8tdfiIsUBCP4rwIrtNv5iw68oL2/D4SlfMZSfKJqCjAZvOXG UAjXZRKsmvVWzjCeUFIXkMQ8rN+aVA6V0upcBNZChtbbLfmEk0vCCVenT9aFrRkD aP5s6XgwAJQPkIaSc/fOMUhhHf/eMGBrEk24KOr4Oc4at0uF8MC4xyIfwwtOzcB+ NYkKv5sV5mkiP0NyGkBl/Yb9ysvd3EEFgXCckQHintkQm+Dlo0YQJh83KHHGTa2w XE9IcsFaJKdFxx2KQaB5FKyMEZnUSIHTxjnF2sq0WckyjmIdXWM/Wq+a9VqSHoYo bZptb2uMbtt9AnCLqy0Scnz2dfWeFi1HXqI1XUcKbIg5IsrGi2Jl0kpEWx6GUHv8 H8ZmlVYX5S9idd1snn7IdSVNqhxzJQNTGRFs6aE5kmIB7KIT3f7JiFGj+T3KSQ7n k3id2yhMS3gB9IoiHeH4WR3WPJMuEJZ86ZUwjBdqJOPrxL3PIYKznK7KV1OkKnmM yoJOYCSN74k4Ot3bwLn5 =0kRb -----END PGP SIGNATURE-----
participants (2)
-
Sebastian Tänzer -
Tres Seaver