[Zope3-Users] Re: ZAlchemy demos (z3c.zalchemy) - Unknown
directive: engine
Philipp von Weitershausen
philipp at weitershausen.de
Tue Mar 6 08:10:06 EST 2007
Stefan Krumbiegel (Galileo Press) wrote:
> I installed Zope3
> (http://www.zope.org/Products/Zope3/3.3.1/Zope-3.3.1.tgz) and
> z3c.zalchemy from the repository (http://svn.zope.org/z3c.zalchemy/trunk/).
> I followed the steps in the README.txt to try the ZAlchemy demos...
>
> An error occured while starting the Zope3 instance:
>
> zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
> "/web/zope3_instance_worldcookery/etc/site.zcml", line 7.2-7.55
> ZopeXMLConfigurationError: File
> "/web/zope3_instance_worldcookery/etc/package-includes/z3c.zalchemy.demo-configure.zcml",
> line 2.0-2.46
> ZopeXMLConfigurationError: File
> "/usr/local/lib/python2.4/site-packages/z3c.zalchemy-trunk-py2.4.egg/z3c/zalchemy/demo/demo_1/configure.zcml",
> line 8.2
> ConfigurationError: ('Unknown directive',
> u'http://namespaces.zalchemy.org/alchemy', u'engine')
>
> What could it be?
z3c.zalchemy registers a bunch of new directives. Whenever a package
does that, you need to load it's "meta" configuration. To do that, add a
"z3c.zalchemy-meta.zcml" file to INSTANCE/etc/package-includes with the
following contents:
<include package="z3c.zalchemy-meta.zcml" file="meta.zcml" />
--
http://worldcookery.com -- Professional Zope documentation and training
Next Zope 3 training at Camp5: http://trizpug.org/boot-camp/camp5
More information about the Zope3-users
mailing list