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

Sebastian Ware sebastian at urbantalk.se
Fri Oct 26 12:41:32 EDT 2007


It's the grokproject generated configure.zcml...

<configure xmlns="http://namespaces.zope.org/zope"
            xmlns:grok="http://namespaces.zope.org/grok">
   <include package="grok" />
   <grok:grok package="." />
</configure>

Nothing changed. I am guessing that something gets muddled up when I  
delete the .pyc files remotely, but I just can't figure out why it  
complains the next time I try to start. I am just wondering if this  
could be a problem under other circumstances.

Mvh Sebastian

26 okt 2007 kl. 17.35 skrev Christian Theune:

>
> Am Freitag, den 26.10.2007, 16:31 +0200 schrieb Sebastian Ware:
>> 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
>> &#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;& 
>> #0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&# 
>> 0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0 
>> ;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0; 
>> &#0;&#0;&#0;
>> &#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;& 
>> #0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;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&#0;&#0;&#0;&#0;&#0;&#0 
>> ;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0;&#0; 
>> &#0;&#0;&#0;
>> &#0;&#0;&#0;&#0;&#0;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
>
> Can you check for details that might be wrong with the module  
> specified
> on line 4 of that configure.zcml?
>
> -- 
> gocept gmbh & co. kg - forsterstrasse 29 - 06112 halle/saale - germany
> www.gocept.com - ct at gocept.com - phone +49 345 122 9889 7 -
> fax +49 345 122 9889 1 - zope and plone consulting and development
>



More information about the Grok-dev mailing list