[Zope-dev] ZCML trying to load package zcml from the proper location
Andreas Jung
lists at zopyx.com
Sun Sep 6 10:03:54 EDT 2009
Zope 2.11, my buildout configuration contains:
eggs = haufe.monitoring
develop = src/haufe.monitoring
..
zcml = haufe.monitoring
The generated ZCML slug looks like this:
<include package="haufe.monitoring" file="configure.zcml" />
Starting my sandbox fails badly:
File
"/HRS2/local/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py",
line 216, in feed
self._parser.Parse(data, isFinal)
File
"/HRS2/local/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py",
line 364, in end_element_ns
self._cont_handler.endElementNS(pair, None)
File
"/local/HRS2/Devel/junga/z211/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
line 357, in endElementNS
self.context.end()
File
"/local/HRS2/Devel/junga/z211/parts/zope2/lib/python/zope/configuration/config.py",
line 542, in end
self.stack.pop().finish()
File
"/local/HRS2/Devel/junga/z211/parts/zope2/lib/python/zope/configuration/config.py",
line 690, in finish
actions = self.handler(context, **args)
File
"/local/HRS2/Devel/junga/z211/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
line 539, in include
f = openInOrPlain(path)
File
"/local/HRS2/Devel/junga/z211/parts/zope2/lib/python/zope/configuration/xmlconfig.py",
line 427, in openInOrPlain
fp = open(filename)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
"/local/HRS2/Devel/junga/z211/parts/instance/etc/site.zcml", line 15.2-15.55
ZopeXMLConfigurationError: File
"/local/HRS2/Devel/junga/z211/parts/instance/etc/package-includes/002-haufe.monitoring-configure.zcml",
line 1.0-1.60
IOError: [Errno 2] No such file or directory:
'/local/HRS2/Devel/junga/z211/src/haufe.monitoring/haufe/configure.zcml'
zope.configuration is trying to read the configuration from
'../haufe.monitoring/haufe/configure.zcml'
instead of
'.../haufe.monitoring/haufe/monitoring/configure.zcml'
Am I missing something?
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 316 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20090906/3b687aa6/attachment.vcf
More information about the Zope-Dev
mailing list