[Grok-dev] Debugging a ZopeXMLConfigurationError (ValueError: Empty module name)

Sebastian Ware sebastian at urbantalk.se
Sun Sep 30 05:33:05 EDT 2007


I have been developing an application on my laptop and when I try to  
deploy it I get a cryptic error (ValueError: Empty module name)  
during startup. Any ideas on how to debug this? It runs fine on my  
laptop. I first assumed that it had to do with new parts of the code  
requiring Reportlab, but the error persisted even after I had removed  
the reportlab specific code.

Any ideas on how to debug this?
How do I know what the error is refering to?

Mvh Sebastian

Traceback (most recent call last):
   File "/Users/grandvinumserver/Grokproject/Prestatics/parts/app/ 
runzope", line 109, in ?
     zope.app.twisted.main.main()
   File "/Users/grandvinumserver/buildout-eggs/tmpMhi6_r/ 
zope.app.twisted-3.4.0b1_r76119-py2.4.egg/zope/app/twisted/main.py",  
line 74, in main
   File "/Users/grandvinumserver/buildout-eggs/tmpMhi6_r/ 
zope.app.twisted-3.4.0b1_r76119-py2.4.egg/zope/app/twisted/main.py",  
line 145, in setup
   File "/Users/grandvinumserver/buildout-eggs/tmpndnmGk/ 
zope.app.appsetup-3.4.0a1-py2.4.egg/zope/app/appsetup/appsetup.py",  
line 110, in config
   File "/Users/grandvinumserver/buildout-eggs/tmpDTm_nG/ 
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/ 
xmlconfig.py", line 610, in file
   File "/Users/grandvinumserver/buildout-eggs/tmpDTm_nG/ 
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/ 
xmlconfig.py", line 546, in include
   File "/Users/grandvinumserver/buildout-eggs/tmpDTm_nG/ 
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/grandvinumserver/buildout-eggs/tmpDTm_nG/ 
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/ 
xmlconfig.py", line 357, in endElementNS
   File "/Users/grandvinumserver/buildout-eggs/tmpDTm_nG/ 
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/config.py",  
line 542, in end
   File "/Users/grandvinumserver/buildout-eggs/tmpDTm_nG/ 
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/config.py",  
line 690, in finish
   File "/Users/grandvinumserver/buildout-eggs/tmpDTm_nG/ 
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/ 
xmlconfig.py", line 546, in include
   File "/Users/grandvinumserver/buildout-eggs/tmpDTm_nG/ 
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/grandvinumserver/buildout-eggs/tmpDTm_nG/ 
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/ 
xmlconfig.py", line 357, in endElementNS
   File "/Users/grandvinumserver/buildout-eggs/tmpDTm_nG/ 
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/config.py",  
line 542, in end
   File "/Users/grandvinumserver/buildout-eggs/tmpDTm_nG/ 
zope.configuration-3.4.0b1-py2.4.egg/zope/configuration/config.py",  
line 690, in finish
   File "/Users/grandvinumserver/buildout-eggs/grok-0.10-py2.4.egg/ 
grok/zcml.py", line 33, in grokDirective
     grok.grok(package.__name__)
   File "/Users/grandvinumserver/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/grandvinumserver/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/grandvinumserver/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/grandvinumserver/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/grandvinumserver/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/grandvinumserver/buildout-eggs/martian-0.8.1- 
py2.4.egg/martian/scan.py", line 116, in getModule
     self._module = resolve(self.dotted_name)
   File "/Users/grandvinumserver/buildout-eggs/martian-0.8.1- 
py2.4.egg/martian/scan.py", line 154, in resolve
     __import__(used)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/Users/ 
grandvinumserver/Grokproject/Prestatics/parts/app/site.zcml", line  
4.0-4.32
     ZopeXMLConfigurationError: File "/Users/grandvinumserver/ 
Grokproject/Prestatics/src/prestatics/configure.zcml", line 4.2-4.27
     ValueError: Empty module name



More information about the Grok-dev mailing list