[Distutils] offline mode for Windows buildout -o or -No doesn't work...any alternatives?
Michael NT Milne
michael.milne at gmail.com
Mon Mar 10 21:11:32 CET 2008
Been told to try this post from Plone users on this list....
This is infuriating. Each time we install a new egg we have to run
buildout in online mode as buildout -o or buildout -No just produces
an invalid command error.
buildout –c c:\Plone\'yoursitename'\buildout.cfg
The above works but it re-installs new eggs etc alongside the old eggs
and the site breaks as below. When re-running buildout, Zope uses the
eggs with the higher numbers. Do you need to change anything to make
this work? Also has anyone got Windows buildouts running in offline
mode? It seems the only way to fix this is to delete the new eggs etc
that have been fetched.
2008-03-10T16:45:09 ERROR Application Couldn't install Five
Traceback (most recent call last):
File "D:\Plone3\Zope\lib\python\OFS\Application.py", line 786, in
install_product
initmethod(context)
File "D:\Plone3\Zope\lib\python\Products\Five\__init__.py", line 28,
in initialize
zcml.load_site()
File "D:\Plone3\Zope\lib\python\Products\Five\zcml.py", line 53, in load_site
_context = xmlconfig.file(file)
File "D:\Plone3\Zope\lib\python\zope\configuration\xmlconfig.py",
line 579, in file
include(context, name, package)
File "D:\Plone3\Zope\lib\python\zope\configuration\xmlconfig.py",
line 515, in include
processxmlfile(f, context)
File "D:\Plone3\Zope\lib\python\zope\configuration\xmlconfig.py",
line 370, in processxmlfile
parser.parse(src)
File "D:\Plone3\Python\Lib\site-packages\_xmlplus\sax\expatreader.py",
line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "D:\Plone3\Python\Lib\site-packages\_xmlplus\sax\xmlreader.py",
line 123, in parse
self.feed(buffer)
File "D:\Plone3\Python\Lib\site-packages\_xmlplus\sax\expatreader.py",
line 216, in feed
self._parser.Parse(data, isFinal)
File "D:\Plone3\Python\Lib\site-packages\_xmlplus\sax\expatreader.py",
line 364, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "D:\Plone3\Zope\lib\python\zope\configuration\xmlconfig.py",
line 349, in endElementNS
self.context.end()
File "D:\Plone3\Zope\lib\python\zope\configuration\config.py", line
544, in end
self.stack.pop().finish()
File "D:\Plone3\Zope\lib\python\zope\configuration\config.py", line
692, in finish
actions = self.handler(context, **args)
File "D:\Plone3\Zope\lib\python\Products\Five\fiveconfigure.py",
line 78, in loadProducts
handleBrokenProduct(product)
File "D:\Plone3\Zope\lib\python\Products\Five\fiveconfigure.py",
line 76, in loadProducts
xmlconfig.include(_context, zcml, package=product)
File "D:\Plone3\Zope\lib\python\zope\configuration\xmlconfig.py",
line 515, in include
processxmlfile(f, context)
File "D:\Plone3\Zope\lib\python\zope\configuration\xmlconfig.py",
line 370, in processxmlfile
parser.parse(src)
File "D:\Plone3\Python\Lib\site-packages\_xmlplus\sax\expatreader.py",
line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "D:\Plone3\Python\Lib\site-packages\_xmlplus\sax\xmlreader.py",
line 123, in parse
self.feed(buffer)
File "D:\Plone3\Python\Lib\site-packages\_xmlplus\sax\expatreader.py",
line 216, in feed
self._parser.Parse(data, isFinal)
File "D:\Plone3\Python\Lib\site-packages\_xmlplus\sax\expatreader.py",
line 364, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "D:\Plone3\Zope\lib\python\zope\configuration\xmlconfig.py",
line 349, in endElementNS
self.context.end()
File "D:\Plone3\Zope\lib\python\zope\configuration\config.py", line
544, in end
self.stack.pop().finish()
File "D:\Plone3\Zope\lib\python\zope\configuration\config.py", line
692, in finish
actions = self.handler(context, **args)
File "D:\Plone3\Zope\lib\python\zope\configuration\xmlconfig.py",
line 515, in include
processxmlfile(f, context)
File "D:\Plone3\Zope\lib\python\zope\configuration\xmlconfig.py",
line 370, in processxmlfile
parser.parse(src)
File "D:\Plone3\Python\Lib\site-packages\_xmlplus\sax\expatreader.py",
line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "D:\Plone3\Python\Lib\site-packages\_xmlplus\sax\xmlreader.py",
line 123, in parse
self.feed(buffer)
File "D:\Plone3\Python\Lib\site-packages\_xmlplus\sax\expatreader.py",
line 216, in feed
self._parser.Parse(data, isFinal)
File "D:\Plone3\Python\Lib\site-packages\_xmlplus\sax\expatreader.py",
line 364, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File "D:\Plone3\Zope\lib\python\zope\configuration\xmlconfig.py",
line 349, in endElementNS
self.context.end()
File "D:\Plone3\Zope\lib\python\zope\configuration\config.py", line
544, in end
self.stack.pop().finish()
File "D:\Plone3\Zope\lib\python\zope\configuration\config.py", line
692, in finish
actions = self.handler(context, **args)
File "D:\Plone3\Zope\lib\python\zope\configuration\xmlconfig.py",
line 515, in include
processxmlfile(f, context)
File "D:\Plone3\Zope\lib\python\zope\configuration\xmlconfig.py",
line 370, in processxmlfile
parser.parse(src)
File "D:\Plone3\Python\Lib\site-packages\_xmlplus\sax\expatreader.py",
line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "D:\Plone3\Python\Lib\site-packages\_xmlplus\sax\xmlreader.py",
line 123, in parse
self.feed(buffer)
File "D:\Plone3\Python\Lib\site-packages\_xmlplus\sax\expatreader.py",
line 216, in feed
self._parser.Parse(data, isFinal)
File "D:\Plone3\Python\Lib\site-packages\_xmlplus\sax\expatreader.py",
line 353, in start_element_ns
AttributesNSImpl(newattrs, qnames))
File "D:\Plone3\Zope\lib\python\zope\configuration\xmlconfig.py",
line 222, in startElementNS
self.context.begin(name, data, info)
File "D:\Plone3\Zope\lib\python\zope\configuration\config.py", line
541, in begin
self.stack.append(self.stack[-1].contained(__name, __data, __info))
File "D:\Plone3\Zope\lib\python\zope\configuration\config.py", line
842, in contained
return RootStackItem.contained(self, name, data, info)
File "D:\Plone3\Zope\lib\python\zope\configuration\config.py", line
710, in contained
factory = self.context.factory(self.context, name)
File "D:\Plone3\Zope\lib\python\zope\configuration\config.py", line
487, in factory
raise ConfigurationError("Unknown directive", ns, n)
ZopeXMLConfigurationError: File
"d:\Plone3\Insite2\parts\instance\etc\site.zcml", line 15.2-15.23
ZopeXMLConfigurationError: File
"d:\Plone3\Data\Products\CMFPlone\configure.zcml", line 8.2-8.46
ZopeXMLConfigurationError: File
"d:\plone3\insite2\eggs\plone.app.contentrules-1.1.0a1-
py2.4.egg\plone\app\contentrules\configure.zcml",
line 22.4-22.39
ZopeXMLConfigurationError: File
"d:\plone3\insite2\eggs\plone.app.contentrules-1.1.0a1-
py2.4.egg\plone\app\contentrules\exportimport\configure.zcml",
line 16.4
ConfigurationError: ('Unknown directive',
u'http://namespaces.zope.org/genericsetup', u'importStep')
More information about the Distutils-SIG
mailing list