[Grok-dev] five.grok failure - 'Invalid value for', 'handler', 'ImportError: Module zope.app.component.metaconfigure has no global defaultLayer'

Andreas Jung lists at zopyx.com
Tue Nov 4 12:20:37 EST 2008


Hi there,

I created a Plone 3.1.6 buildout (Zope 2.10.6) and added five.grok to 
the eggs and zcml options. Starting the instance fails with:



/home/develop/sandboxes/five.grok/parts/instance/bin/runzope -X 
debug-mode=on
2008-11-04 18:12:27 INFO ZServer HTTP server started at Tue Nov  4 
18:12:27 2008
	Hostname: 0.0.0.0
	Port: 8080
2008-11-04 18:12:29 INFO Marshall libxml2-python not available. Unable 
to register libxml2 based marshallers.
2008-11-04 18:12:35 ERROR Application Couldn't install Five
Traceback (most recent call last):
   File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/OFS/Application.py", 
line 786, in install_product
     initmethod(context)
   File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/Products/Five/__init__.py", 
line 28, in initialize
     zcml.load_site()
   File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/Products/Five/zcml.py", 
line 53, in load_site
     _context = xmlconfig.file(file)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 610, in file
     include(context, name, package)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 546, in include
     processxmlfile(f, context)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 378, in processxmlfile
     parser.parse(src)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
107, in parse
     xmlreader.IncrementalParser.parse(self, source)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/xmlreader.py", line 
123, in parse
     self.feed(buffer)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
207, in feed
     self._parser.Parse(data, isFinal)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
348, in end_element_ns
     self._cont_handler.endElementNS(pair, None)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 357, in endElementNS
     self.context.end()
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", 
line 542, in end
     self.stack.pop().finish()
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", 
line 690, in finish
     actions = self.handler(context, **args)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 546, in include
     processxmlfile(f, context)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 378, in processxmlfile
     parser.parse(src)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
107, in parse
     xmlreader.IncrementalParser.parse(self, source)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/xmlreader.py", line 
123, in parse
     self.feed(buffer)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
207, in feed
     self._parser.Parse(data, isFinal)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
348, in end_element_ns
     self._cont_handler.endElementNS(pair, None)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 357, in endElementNS
     self.context.end()
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", 
line 542, in end
     self.stack.pop().finish()
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", 
line 690, in finish
     actions = self.handler(context, **args)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 546, in include
     processxmlfile(f, context)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 378, in processxmlfile
     parser.parse(src)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
107, in parse
     xmlreader.IncrementalParser.parse(self, source)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/xmlreader.py", line 
123, in parse
     self.feed(buffer)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
207, in feed
     self._parser.Parse(data, isFinal)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
348, in end_element_ns
     self._cont_handler.endElementNS(pair, None)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 357, in endElementNS
     self.context.end()
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", 
line 542, in end
     self.stack.pop().finish()
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", 
line 689, in finish
     args = toargs(context, *self.argdata)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", 
line 1381, in toargs
     args[str(name)] = field.fromUnicode(s)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/fields.py", 
line 141, in fromUnicode
     raise schema.ValidationError(v)
ZopeXMLConfigurationError: File 
"/home/develop/sandboxes/five.grok/parts/instance/etc/site.zcml", line 
5.2-5.37
     ZopeXMLConfigurationError: File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/Products/Five/configure.zcml", 
line 4.2-4.30
     ZopeXMLConfigurationError: File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/Products/Five/meta.zcml", 
line 86.4-90.10
     ConfigurationError: ('Invalid value for', 'handler', 'ImportError: 
Module zope.app.component.metaconfigure has no global defaultLayer')
Traceback (most recent call last):
   File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/Zope2/Startup/run.py", 
line 56, in ?
     run()
   File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/Zope2/Startup/run.py", 
line 21, in run
     starter.prepare()
   File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/Zope2/Startup/__init__.py", 
line 102, in prepare
     self.startZope()
   File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/Zope2/Startup/__init__.py", 
line 278, in startZope
     Zope2.startup()
   File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/Zope2/__init__.py", 
line 47, in startup
     _startup()
   File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/Zope2/App/startup.py", 
line 102, in startup
     OFS.Application.initialize(application)
   File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/OFS/Application.py", 
line 309, in initialize
     initializer.initialize()
   File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/OFS/Application.py", 
line 338, in initialize
     self.install_products()
   File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/OFS/Application.py", 
line 603, in install_products
     return install_products(app)
   File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/OFS/Application.py", 
line 634, in install_products
     folder_permissions, raise_exc=debug_mode)
   File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/OFS/Application.py", 
line 786, in install_product
     initmethod(context)
   File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/Products/Five/__init__.py", 
line 28, in initialize
     zcml.load_site()
   File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/Products/Five/zcml.py", 
line 53, in load_site
     _context = xmlconfig.file(file)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 610, in file
     include(context, name, package)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 546, in include
     processxmlfile(f, context)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 378, in processxmlfile
     parser.parse(src)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
107, in parse
     xmlreader.IncrementalParser.parse(self, source)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/xmlreader.py", line 
123, in parse
     self.feed(buffer)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
207, in feed
     self._parser.Parse(data, isFinal)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
348, in end_element_ns
     self._cont_handler.endElementNS(pair, None)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 357, in endElementNS
     self.context.end()
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", 
line 542, in end
     self.stack.pop().finish()
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", 
line 690, in finish
     actions = self.handler(context, **args)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 546, in include
     processxmlfile(f, context)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 378, in processxmlfile
     parser.parse(src)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
107, in parse
     xmlreader.IncrementalParser.parse(self, source)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/xmlreader.py", line 
123, in parse
     self.feed(buffer)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
207, in feed
     self._parser.Parse(data, isFinal)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
348, in end_element_ns
     self._cont_handler.endElementNS(pair, None)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 357, in endElementNS
     self.context.end()
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", 
line 542, in end
     self.stack.pop().finish()
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", 
line 690, in finish
     actions = self.handler(context, **args)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 546, in include
     processxmlfile(f, context)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 378, in processxmlfile
     parser.parse(src)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
107, in parse
     xmlreader.IncrementalParser.parse(self, source)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/xmlreader.py", line 
123, in parse
     self.feed(buffer)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
207, in feed
     self._parser.Parse(data, isFinal)
   File "/opt/python-2.4.4/lib/python2.4/xml/sax/expatreader.py", line 
348, in end_element_ns
     self._cont_handler.endElementNS(pair, None)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py", 
line 357, in endElementNS
     self.context.end()
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", 
line 542, in end
     self.stack.pop().finish()
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", 
line 689, in finish
     args = toargs(context, *self.argdata)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", 
line 1381, in toargs
     args[str(name)] = field.fromUnicode(s)
   File 
"/home/ajung/.buildout/eggs/zope.configuration-3.4.0-py2.4.egg/zope/configuration/fields.py", 
line 141, in fromUnicode
     raise schema.ValidationError(v)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File 
"/home/develop/sandboxes/five.grok/parts/instance/etc/site.zcml", line 
5.2-5.37
     ZopeXMLConfigurationError: File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/Products/Five/configure.zcml", 
line 4.2-4.30
     ZopeXMLConfigurationError: File 
"/home/develop/sandboxes/five.grok/parts/zope2/lib/python/Products/Five/meta.zcml", 
line 86.4-90.10
     ConfigurationError: ('Invalid value for', 'handler', 'ImportError: 
Module zope.app.component.metaconfigure has no global defaultLayer')

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20081104/7579569b/attachment.vcf 


More information about the Grok-dev mailing list