plone/plone.app.debugtoolbar — Issue #6: prevents Zope from starting
Author: muellert
Created: 2012-01-11 14:54:40+00:00
State: open

Adding plone.app.debugtoolbar to my eggs in my buildout renders the site unusable. The Zope server would not start anymore:

2012-01-11 15:37:20 ERROR Application Couldn't install Five
Traceback (most recent call last):
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/OFS/Application.py", line 671, in install_product
initmethod(context)
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/Products/Five/__init__.py", line 31, in initialize
zcml.load_site()
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/Products/Five/zcml.py", line 51, in load_site
_context = xmlconfig.file(file)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 647, in file
include(context, name, package)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 546, in include
processxmlfile(f, context)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 378, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 357, in endElementNS
self.context.end()
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 537, in end
self.stack.pop().finish()
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 685, in finish
actions = self.handler(context, **args)
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/Products/Five/fiveconfigure.py", line 74, in loadProducts
handleBrokenProduct(product)
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/Products/Five/fiveconfigure.py", line 72, in loadProducts
xmlconfig.include(_context, zcml, package=product)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 546, in include
processxmlfile(f, context)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 378, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 357, in endElementNS
self.context.end()
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 537, in end
self.stack.pop().finish()
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 685, in finish
actions = self.handler(context, **args)
File "/mounts/5/zope/eggs.debug/z3c.autoinclude-0.3.4-py2.6.egg/z3c/autoinclude/zcml.py", line 104, in includePluginsDirective
includeZCMLGroup(_context, info, filename)
File "/mounts/5/zope/eggs.debug/z3c.autoinclude-0.3.4-py2.6.egg/z3c/autoinclude/zcml.py", line 30, in includeZCMLGroup
include(_context, filename, includable_package)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 546, in include
processxmlfile(f, context)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 378, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 357, in endElementNS
self.context.end()
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 537, in end
self.stack.pop().finish()
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 685, in finish
actions = self.handler(context, **args)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 546, in include
processxmlfile(f, context)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 378, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 338, in start_element_ns
AttributesNSImpl(newattrs, qnames))
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 230, in startElementNS
self.context.begin(name, data, info)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 534, in begin
self.stack.append(self.stack[-1].contained(__name, __data, __info))
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 835, in contained
return RootStackItem.contained(self, name, data, info)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 706, in contained
adapter = factory(self.context, data, info)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 1203, in factory
return ComplexStackItem(self, context, data, info)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 950, in __init__
self.handler = self.meta.handler(newcontext, **args)
ZopeXMLConfigurationError: File "/home/zope/plone/gasandoil-t/parts/secondary/etc/site.zcml", line 16.2-16.23
ZopeXMLConfigurationError: File "/mounts/5/zope/eggs.debug/Plone-4.0.9-py2.6.egg/Products/CMFPlone/configure.zcml", line 94.4-98.10
ZopeXMLConfigurationError: File "/mounts/5/zope/eggs.debug/plone.app.debugtoolbar-1.0a2-py2.6.egg/plone/app/debugtoolbar/configure.zcml", line 10.2-10.32
ZopeXMLConfigurationError: File "/mounts/5/zope/eggs.debug/plone.app.debugtoolbar-1.0a2-py2.6.egg/plone/app/debugtoolbar/browser/configure.zcml", line 122.4
TypeError: __init__() takes at least 4 non-keyword arguments (2 given)
Traceback (most recent call last):
File "", line 1, in
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/Zope2/__init__.py", line 51, in app
startup()
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/Zope2/__init__.py", line 47, in startup
_startup()
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/Zope2/App/startup.py", line 116, in startup
OFS.Application.initialize(application)
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/OFS/Application.py", line 251, in initialize
initializer.initialize()
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/OFS/Application.py", line 279, in initialize
self.install_products()
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/OFS/Application.py", line 492, in install_products
return install_products(app)
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/OFS/Application.py", line 523, in install_products
folder_permissions, raise_exc=debug_mode)
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/OFS/Application.py", line 671, in install_product
initmethod(context)
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/Products/Five/__init__.py", line 31, in initialize
zcml.load_site()
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/Products/Five/zcml.py", line 51, in load_site
_context = xmlconfig.file(file)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 647, in file
include(context, name, package)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 546, in include
processxmlfile(f, context)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 378, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 357, in endElementNS
self.context.end()
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 537, in end
self.stack.pop().finish()
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 685, in finish
actions = self.handler(context, **args)
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/Products/Five/fiveconfigure.py", line 74, in loadProducts
handleBrokenProduct(product)
File "/mounts/5/zope/eggs.debug/Zope2-2.12.20-py2.6-linux-i686.egg/Products/Five/fiveconfigure.py", line 72, in loadProducts
xmlconfig.include(_context, zcml, package=product)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 546, in include
processxmlfile(f, context)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 378, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 357, in endElementNS
self.context.end()
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 537, in end
self.stack.pop().finish()
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 685, in finish
actions = self.handler(context, **args)
File "/mounts/5/zope/eggs.debug/z3c.autoinclude-0.3.4-py2.6.egg/z3c/autoinclude/zcml.py", line 104, in includePluginsDirective
includeZCMLGroup(_context, info, filename)
File "/mounts/5/zope/eggs.debug/z3c.autoinclude-0.3.4-py2.6.egg/z3c/autoinclude/zcml.py", line 30, in includeZCMLGroup
include(_context, filename, includable_package)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 546, in include
processxmlfile(f, context)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 378, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 357, in endElementNS
self.context.end()
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 537, in end
self.stack.pop().finish()
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 685, in finish
actions = self.handler(context, **args)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 546, in include
processxmlfile(f, context)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 378, in processxmlfile
parser.parse(src)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.6/xml/sax/expatreader.py", line 338, in start_element_ns
AttributesNSImpl(newattrs, qnames))
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/xmlconfig.py", line 230, in startElementNS
self.context.begin(name, data, info)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 534, in begin
self.stack.append(self.stack[-1].contained(__name, __data, __info))
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 835, in contained
return RootStackItem.contained(self, name, data, info)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 706, in contained
adapter = factory(self.context, data, info)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 1203, in factory
return ComplexStackItem(self, context, data, info)
File "/mounts/5/zope/eggs.debug/zope.configuration-3.6.0-py2.6.egg/zope/configuration/config.py", line 950, in __init__
self.handler = self.meta.handler(newcontext, **args)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/home/zope/plone/gasandoil-t/parts/secondary/etc/site.zcml", line 16.2-16.23
ZopeXMLConfigurationError: File "/mounts/5/zope/eggs.debug/Plone-4.0.9-py2.6.egg/Products/CMFPlone/configure.zcml", line 94.4-98.10
ZopeXMLConfigurationError: File "/mounts/5/zope/eggs.debug/plone.app.debugtoolbar-1.0a2-py2.6.egg/plone/app/debugtoolbar/configure.zcml", line 10.2-10.32
ZopeXMLConfigurationError: File "/mounts/5/zope/eggs.debug/plone.app.debugtoolbar-1.0a2-py2.6.egg/plone/app/debugtoolbar/browser/configure.zcml", line 122.4
TypeError: __init__() takes at least 4 non-keyword arguments (2 given)

Removing the product from the buildout.cfg and re-running buildout fixes it.