[Grok-dev] Grok 0.12 released!

Ethan Jucovy ejucovy at openplans.org
Tue Apr 22 14:00:26 EDT 2008


Hey,

My apologies; this is a bug in z3c.autoinclude which seems to have been
introduced in the 0.2.1 version I released yesterday.  I'm looking into it
today and should hopefully have a fix out shortly.

In the meantime, the easiest way to get your application to start would be
to delete the following line from your package's generated configure.zcml:

"<includeDependencies package='.' />"

That will disable z3c.autoinclude and circumvent this bug.  Alternatively,
you can probably downgrade z3c.autoinclude to version 0.2 without any
downsides, since the bugs fixed in 0.2.1 are unlikely to affect most users
of Grok.

Sorry for the buggy release and in particular for my very bad timing.  I
assumed Grok would peg its dependency to the 0.2 release but I should have
mentioned it on-list.

-Ethan

On Tue, Apr 22, 2008 at 1:49 PM, Joachim Schmitz <js at aixtraware.de> wrote:

> I updated grokproject and created a new project Campus
>
> in Campus I did
> :~/WAeUP_ng/Campus$ bin/buildout
> Develop: '/home/perry/WAeUP_ng/Campus/.'
> Updating app.
> Updating data.
> Updating zopectl.
> Updating i18n.
> The recipe for i18n doesn't define an update method. Using its install
> method.
> i18n: setting up i18n tools
> Updating test.
> perry at leise:~/WAeUP_ng/Campus$ bin/buildout
> Develop: '/home/perry/WAeUP_ng/Campus/.'
> Updating app.
> Updating data.
> Updating zopectl.
> Updating i18n.
> The recipe for i18n doesn't define an update method. Using its install
> method.
> i18n: setting up i18n tools
> Updating test.
>
> then:
>
> ~/WAeUP_ng/Campus/bin/zopectl fg
> /home/perry/WAeUP_ng/Campus/parts/app/runzope -C
> /home/perry/WAeUP_ng/Campus/parts/zopectl/zope.conf
> Traceback (most recent call last):
>  File "/home/perry/WAeUP_ng/Campus/parts/app/runzope", line 129, in ?
>    zope.app.twisted.main.main()
>  File
> "/home/perry/buildout-eggs/tmprJeL5P/zope.app.twisted-3.4.0a1-py2.4.egg/zope/app/twisted/main.py",
> line 74, in main
>  File
> "/home/perry/buildout-eggs/tmprJeL5P/zope.app.twisted-3.4.0a1-py2.4.egg/zope/app/twisted/main.py",
> line 145, in setup
>  File
> "/home/perry/buildout-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
> "/home/perry/buildout-eggs/tmplQxZ2z/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",
> line 610, in file
>  File
> "/home/perry/buildout-eggs/tmplQxZ2z/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",
> line 546, in include
>  File
> "/home/perry/buildout-eggs/tmplQxZ2z/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",
> line 378, in processxmlfile
>  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line
> 109, in parse
>    xmlreader.IncrementalParser.parse(self, source)
>  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py", line
> 123, in parse
>    self.feed(buffer)
>  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line
> 216, in feed
>    self._parser.Parse(data, isFinal)
>  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line
> 364, in end_element_ns
>    self._cont_handler.endElementNS(pair, None)
>  File
> "/home/perry/buildout-eggs/tmplQxZ2z/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",
> line 357, in endElementNS
>  File
> "/home/perry/buildout-eggs/tmplQxZ2z/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py",
> line 542, in end
>  File
> "/home/perry/buildout-eggs/tmplQxZ2z/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py",
> line 690, in finish
>  File
> "/home/perry/buildout-eggs/tmplQxZ2z/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",
> line 546, in include
>  File
> "/home/perry/buildout-eggs/tmplQxZ2z/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",
> line 378, in processxmlfile
>  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line
> 109, in parse
>    xmlreader.IncrementalParser.parse(self, source)
>  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/xmlreader.py", line
> 123, in parse
>    self.feed(buffer)
>  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line
> 216, in feed
>    self._parser.Parse(data, isFinal)
>  File "/usr/lib/python2.4/site-packages/_xmlplus/sax/expatreader.py", line
> 364, in end_element_ns
>    self._cont_handler.endElementNS(pair, None)
>  File
> "/home/perry/buildout-eggs/tmplQxZ2z/zope.configuration-3.4.0-py2.4.egg/zope/configuration/xmlconfig.py",
> line 357, in endElementNS
>  File
> "/home/perry/buildout-eggs/tmplQxZ2z/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py",
> line 542, in end
>  File
> "/home/perry/buildout-eggs/tmplQxZ2z/zope.configuration-3.4.0-py2.4.egg/zope/configuration/config.py",
> line 690, in finish
>  File
> "/home/perry/buildout-eggs/tmpRPpdtj/z3c.autoinclude-0.2.1-py2.4.egg/z3c/autoinclude/zcml.py",
> line 38, in autoIncludeDirective
>  File
> "/home/perry/buildout-eggs/tmpRPpdtj/z3c.autoinclude-0.2.1-py2.4.egg/z3c/autoinclude/utils.py",
> line 65, in distributionForPackage
>  File
> "/home/perry/buildout-eggs/tmpRPpdtj/z3c.autoinclude-0.2.1-py2.4.egg/z3c/autoinclude/utils.py",
> line 75, in distributionForDottedName
>  File
> "/home/perry/buildout-eggs/tmpRPpdtj/z3c.autoinclude-0.2.1-py2.4.egg/z3c/autoinclude/utils.py",
> line 90, in namespaceDottedNames
>  File
> "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
> line 1460, in get_metadata_lines
>    return yield_lines(self.get_metadata(name))
>  File
> "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py",
> line 1457, in get_metadata
>    raise KeyError("No metadata except PKG-INFO is available")
> zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
> "/home/perry/WAeUP_ng/Campus/parts/app/site.zcml", line 4.0-4.28
>    ZopeXMLConfigurationError: File
> "/home/perry/WAeUP_ng/Campus/src/campus/configure.zcml", line 4.2-4.37
>    KeyError: 'No metadata except PKG-INFO is available'
> perry at leise:~/WAeUP_ng/Academics$
>
>
>
> --
> Gruß Joachim
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20080422/6f34cc8e/attachment-0001.htm


More information about the Grok-dev mailing list