[Grok-dev] Wierd deployment error... (ValueError: Empty module name)

Sebastian Ware sebastian at urbantalk.se
Fri Oct 26 10:31:28 EDT 2007


Hi!

Sometimes when I update the source files on my deployment server, I  
get a "ValueError: Empty module name". What I have done is:

- The application is running on my deployment server
1 deleted the .pyc files
2 overwritten all files except .zcml with files from my dev server
3 performed a "zopectl restart"

The application doesn't start (trace below). I have solved it  
previously by recreating the project from scratch, but what I would  
like to know is what happened.

Note. This error only occurs randomly, and not very often...

Regards Sebastian

2007-10-26T16:23:19 INFO root pid 19939: exit status 1
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         
     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
------
2007-10-26T16:23:32 INFO root sleep 9 to avoid rapid restarts
------
2007-10-26T16:23:32 INFO root pid 19941: exit status 1



More information about the Grok-dev mailing list