Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

ZCML trying to load package zcml from the proper location

 

 

Zope dev RSS feed   Index | Next | Previous | View Threaded


lists at zopyx

Sep 6, 2009, 7:03 AM

Post #1 of 2 (209 views)
Permalink
ZCML trying to load package zcml from the proper location

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
Attachments: lists.vcf (0.31 KB)


lists at zopyx

Sep 6, 2009, 7:22 AM

Post #2 of 2 (190 views)
Permalink
Re: ZCML trying to load package zcml from the proper location [In reply to]

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
Attachments: lists.vcf (0.31 KB)

Zope dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.