[Zope-dev] ZCML trying to load package zcml from the proper location

Andreas Jung lists at zopyx.com
Sun Sep 6 10:22:53 EDT 2009


Mea culpa. The initialize() method within haufe/monitoring/__init__.py
contained a syntax error...obviously there is some code swallowing this
exception :->

Andreas

On 06.09.09 16:03, Andreas Jung wrote:
> 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
>   
>
>
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev at zope.org
> https://mail.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  https://mail.zope.org/mailman/listinfo/zope-announce
>  https://mail.zope.org/mailman/listinfo/zope )
>   


-- 
ZOPYX Ltd. & Co KG          \  ZOPYX & Friends
Charlottenstr. 37/1          \  The experts for your Python, Zope and
D-72070 Tübingen              \  Plone projects
www.zopyx.com, info at zopyx.com  \  www.zopyx.de/friends, friends at zopyx.de
------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting


-------------- 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/4de4eda8/attachment.vcf 


More information about the Zope-Dev mailing list