[Grok-dev] (ZopeXMLConfigurationError) I wish Grok could assist
with a more helpful error message...
Sebastian Ware
sebastian at urbantalk.se
Wed Oct 10 09:52:47 EDT 2007
I am not sure if my analysis is correct, but with the removal of lots
of zcml, the cause of ZopeXMLConfigurationError (which I have
stumbled upon a couple of times) becomes close to impossible to track
down (for a me = seminewbie).
I can see that martian is involved, maybe there is useful information
about what is being grokked that could somehow be of assistance to a
discombobulated debugger... see frustrating stack trace bellow.
How about a mobem (month of better error messages), that would be
great... :)
mvh Sebastian
/Users/jhsware/buildout-eggs/martian-0.8.1-py2.4.egg/martian/scan.py:
154: DeprecationWarning: Non-ASCII character '\x8c' in file /Users/
jhsware/GrokProjects/Dynasales/src/dynasales/app.py on line 99, but
no encoding declared; see http://www.python.org/peps/pep-0263.html
for details
__import__(used)
Traceback (most recent call last):
File "/Users/jhsware/GrokProjects/Dynasales/parts/app/runzope",
line 109, in ?
zope.app.twisted.main.main()
File "/Users/jhsware/buildout-eggs/tmp0jKJeV/
zope.app.twisted-3.4.0b1_r76119-py2.4.egg/zope/app/twisted/main.py",
line 74, in main
File "/Users/jhsware/buildout-eggs/tmp0jKJeV/
zope.app.twisted-3.4.0b1_r76119-py2.4.egg/zope/app/twisted/main.py",
line 145, in setup
File "/Users/jhsware/buildout-eggs/tmpZK493N/
zope.app.appsetup-3.4.0a1-py2.4.egg/zope/app/appsetup/appsetup.py",
line 110, in config
File "/Users/jhsware/buildout-eggs/tmpKSQ4aq/
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/
xmlconfig.py", line 610, in file
File "/Users/jhsware/buildout-eggs/tmpKSQ4aq/
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/
xmlconfig.py", line 546, in include
File "/Users/jhsware/buildout-eggs/tmpKSQ4aq/
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/
xmlconfig.py", line 378, in processxmlfile
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107,
in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in
parse
self.feed(buffer)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207,
in feed
self._parser.Parse(data, isFinal)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 348,
in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/Users/jhsware/buildout-eggs/tmpKSQ4aq/
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/
xmlconfig.py", line 357, in endElementNS
File "/Users/jhsware/buildout-eggs/tmpKSQ4aq/
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/config.py",
line 542, in end
File "/Users/jhsware/buildout-eggs/tmpKSQ4aq/
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/config.py",
line 690, in finish
File "/Users/jhsware/buildout-eggs/tmpKSQ4aq/
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/
xmlconfig.py", line 546, in include
File "/Users/jhsware/buildout-eggs/tmpKSQ4aq/
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/
xmlconfig.py", line 378, in processxmlfile
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 107,
in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/local/lib/python2.4/xml/sax/xmlreader.py", line 123, in
parse
self.feed(buffer)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 207,
in feed
self._parser.Parse(data, isFinal)
File "/usr/local/lib/python2.4/xml/sax/expatreader.py", line 348,
in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "/Users/jhsware/buildout-eggs/tmpKSQ4aq/
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/
xmlconfig.py", line 357, in endElementNS
File "/Users/jhsware/buildout-eggs/tmpKSQ4aq/
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/config.py",
line 542, in end
File "/Users/jhsware/buildout-eggs/tmpKSQ4aq/
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/config.py",
line 690, in finish
File "/Users/jhsware/buildout-eggs/grok-0.10-py2.4.egg/grok/
zcml.py", line 33, in grokDirective
grok.grok(package.__name__)
File "/Users/jhsware/buildout-eggs/grok-0.10-py2.4.egg/grok/
_grok.py", line 81, in do_grok
martian.grok_dotted_name(dotted_name, the_module_grokker)
File "/Users/jhsware/buildout-eggs/martian-0.8.1-py2.4.egg/martian/
core.py", line 193, in grok_dotted_name
grok_package(module_info, grokker, **kw)
File "/Users/jhsware/buildout-eggs/martian-0.8.1-py2.4.egg/martian/
core.py", line 198, in grok_package
grok_package(sub_module_info, grokker, **kw)
File "/Users/jhsware/buildout-eggs/martian-0.8.1-py2.4.egg/martian/
core.py", line 196, in grok_package
grok_module(module_info, grokker, **kw)
File "/Users/jhsware/buildout-eggs/martian-0.8.1-py2.4.egg/martian/
core.py", line 201, in grok_module
grokker.grok(module_info.dotted_name, module_info.getModule(),
**kw)
File "/Users/jhsware/buildout-eggs/martian-0.8.1-py2.4.egg/martian/
core.py", line 65, in grok
grokked = g.grok(name, obj, **kw)
File "/Users/jhsware/buildout-eggs/grok-0.10-py2.4.egg/grok/
meta.py", line 150, in grok
factory.form_fields = formlib.get_auto_fields(view_context)
File "/Users/jhsware/buildout-eggs/grok-0.10-py2.4.egg/grok/
formlib.py", line 61, in get_auto_fields
fields += form.Fields(*most_specialized_interfaces(context))
File "/Users/jhsware/buildout-eggs/tmpuWvQE0/zope.formlib-3.4.0a1-
py2.4.egg/zope/formlib/form.py", line 132, in __init__
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/Users/
jhsware/GrokProjects/Dynasales/parts/app/site.zcml", line 4.0-4.31
ZopeXMLConfigurationError: File "/Users/jhsware/GrokProjects/
Dynasales/src/dynasales/configure.zcml", line 4.2-4.27
ValueError: ('Duplicate name', 'object_type')
Mvh Sebastian
More information about the Grok-dev
mailing list