[Grok-dev] ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/i18n', u'registerTranslations')
Sebastian Ware
sebastian at urbantalk.se
Thu Mar 26 14:59:56 EDT 2009
** src/myproject/configure.zcml **
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:grok="http://namespaces.zope.org/grok"
xmlns:i18n="http://namespaces.zope.org/i18n">
<i18n:registerTranslations directory="locales" />
<include package="grok" />
<includeDependencies package="." />
<grok:grok package="." />
</configure>
Traceback (most recent call last):
File "/Users/jhsware/groksandbox/GuldFimpen/parts/app/runzope",
line 126, in ?
zope.app.twisted.main.main()
File "/Users/jhsware/groksandbox/eggs/zope.app.twisted-3.4.1-
py2.4.egg/zope/app/twisted/main.py", line 74, in main
service = setup(load_options(args))
File "/Users/jhsware/groksandbox/eggs/zope.app.twisted-3.4.1-
py2.4.egg/zope/app/twisted/main.py", line 145, in setup
zope.app.appsetup.config(options.site_definition,
features=features)
File "/Users/jhsware/groksandbox/eggs/zope.app.appsetup-3.4.1-
py2.4.egg/zope/app/appsetup/appsetup.py", line 111, in config
context = xmlconfig.file(file, context=context, execute=execute)
File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/
zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",
line 610, in file
File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/
zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",
line 546, in include
File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/
zope.configuration-3.4.0-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/jhsware/groksandbox/eggs/tmp0uWzV7/
zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",
line 357, in endElementNS
File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/
zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", line
542, in end
File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/
zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", line
690, in finish
File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/
zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",
line 546, in include
File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/
zope.configuration-3.4.0-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 337,
in start_element_ns
AttributesNSImpl(newattrs, qnames))
File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/
zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",
line 230, in startElementNS
File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/
zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", line
539, in begin
File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/
zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", line
840, in contained
File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/
zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", line
708, in contained
File "/Users/jhsware/groksandbox/eggs/tmp0uWzV7/
zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py", line
485, in factory
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "/Users/
jhsware/groksandbox/GuldFimpen/parts/app/site.zcml", line 4.0-4.32
ZopeXMLConfigurationError: File "/Users/jhsware/groksandbox/
GuldFimpen/src/guldfimpen/configure.zcml", line 5.2
ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/i18n'
, u'registerTranslations')
Mvh Sebastian
More information about the Grok-dev
mailing list