[Grok-dev] ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/i18n', u'registerTranslations')
Vincent Fretin
vincent.fretin at gmail.com
Fri Mar 27 04:42:51 EDT 2009
I think zope/i18n/meta.zcml was not included. Try to specify in your buildout:
zcml = zope.i18n-meta
or add zope.i18n to setup.py and use Z3c.autoinclude.
On Thu, Mar 26, 2009 at 7:59 PM, Sebastian Ware <sebastian at urbantalk.se> wrote:
> ** 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
>
>
>
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
>
--
Vincent Fretin
More information about the Grok-dev
mailing list