[Grok-dev] Install Error on megrok.quarry

Kevin Smith kevin at mcweekly.com
Thu May 24 14:43:55 EDT 2007


Hi Christain,

Thanks for checking out the package ( and discovering the bug). I've 
removed the stray render function causing the error, and corrected a 
zc.catalog version issue in setup.py. That should do the trick. Nowadays 
I use buildout for everything, so it's not tested on a pre-install 
environment. It is assumed you have a reasonably updated version of 
Grok, if not the latest.

I've update the readme. FWIW this is *experimental software*. It is 
hoped that some good can be mined out of  these proofs of concepts and 
replace the functionality it provides. I'm using it in production 
because I need it now. ... maybe should have called it grok.hurrry. 
:)... but YMMV.

Happy grokking.

Kevin Smith



Christian Klinger wrote:
> Hi Kevin, hi grok Developers,
>
> i try to use the megrok.quarry package from the zope svn repository.
> I installed this package with /usr/local/bin/python2.4 setup.py install.
> After this i add two configure.zcmls to the package-includes dir.
>
> megrok.quarry-configure.zcml
> <include package="megrok.quarry"/>
>
> megrok.quarry-meta.zcml
> <include package="megrok.quarry" file="meta.zcml"/>
>
> When i try to start the server i got these errors.
>
> Any Ideas?
>
> Thx Christian
>
>
>
>
> ---------------------------
> Traceback (most recent call last):
>   File "./runzope", line 48, in ?
>     run()
>   File "./runzope", line 44, in run
>     main(["-C", CONFIG_FILE] + sys.argv[1:])
>   File "/opt/Zope-3.3.1/lib/python/zope/app/twisted/main.py", line 73, 
> in main
>     service = setup(load_options(args))
>   File "/opt/Zope-3.3.1/lib/python/zope/app/twisted/main.py", line 
> 140, in setup
>     zope.app.appsetup.config(options.site_definition, features=features)
>   File "/opt/Zope-3.3.1/lib/python/zope/app/appsetup/appsetup.py", 
> line 110, in config
>     context = xmlconfig.file(file, context=context, execute=execute)
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/xmlconfig.py", 
> line 579, in file
>     include(context, name, package)
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/xmlconfig.py", 
> line 515, in include
>     processxmlfile(f, context)
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/xmlconfig.py", 
> line 370, in processxmlfile
>     parser.parse(src)
>   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 "/opt/Zope-3.3.1/lib/python/zope/configuration/xmlconfig.py", 
> line 349, in endElementNS
>     self.context.end()
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/config.py", line 
> 544, in end
>     self.stack.pop().finish()
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/config.py", line 
> 692, in finish
>     actions = self.handler(context, **args)
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/xmlconfig.py", 
> line 515, in include
>     processxmlfile(f, context)
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/xmlconfig.py", 
> line 370, in processxmlfile
>     parser.parse(src)
>   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 "/opt/Zope-3.3.1/lib/python/zope/configuration/xmlconfig.py", 
> line 349, in endElementNS
>     self.context.end()
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/config.py", line 
> 544, in end
>     self.stack.pop().finish()
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/config.py", line 
> 692, in finish
>     actions = self.handler(context, **args)
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/xmlconfig.py", 
> line 515, in include
>     processxmlfile(f, context)
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/xmlconfig.py", 
> line 370, in processxmlfile
>     parser.parse(src)
>   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 "/opt/Zope-3.3.1/lib/python/zope/configuration/xmlconfig.py", 
> line 349, in endElementNS
>     self.context.end()
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/config.py", line 
> 544, in end
>     self.stack.pop().finish()
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/config.py", line 
> 692, in finish
>     actions = self.handler(context, **args)
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/xmlconfig.py", 
> line 515, in include
>     processxmlfile(f, context)
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/xmlconfig.py", 
> line 370, in processxmlfile
>     parser.parse(src)
>   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 "/opt/Zope-3.3.1/lib/python/zope/configuration/xmlconfig.py", 
> line 349, in endElementNS
>     self.context.end()
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/config.py", line 
> 544, in end
>     self.stack.pop().finish()
>   File "/opt/Zope-3.3.1/lib/python/zope/configuration/config.py", line 
> 692, in finish
>     actions = self.handler(context, **args)
>   File "/opt/grok/sources/grok/src/grok/zcml.py", line 31, in 
> grokDirective
>     grok.grok(package.__name__)
>   File "/opt/grok/sources/grok/src/grok/_grok.py", line 79, in do_grok
>     grok_tree(module_info)
>   File "/opt/grok/sources/grok/src/grok/_grok.py", line 86, in grok_tree
>     grok_tree(sub_module_info)
>   File "/opt/grok/sources/grok/src/grok/_grok.py", line 83, in grok_tree
>     grokker.grokkerRegistry.grok(module_info)
>   File "/opt/grok/sources/grok/src/grok/grokker.py", line 93, in grok
>     module_info, templates)
>   File "/opt/grok/sources/megrok.quarry/src/megrok/quarry/meta.py", 
> line 113, in register
>     "an associated template." % factory, factory)
> zope.configuration.xmlconfig.ZopeXMLConfigurationError: File 
> "/opt/grok/etc/site.zcml", line 7.2-7.55
>     ZopeXMLConfigurationError: File 
> "/opt/grok/etc/package-includes/megrok.quarry-configure.zcml", line 
> 1.0-1.34
>     ZopeXMLConfigurationError: File 
> "/opt/grok/sources/megrok.quarry/src/megrok/quarry/configure.zcml", 
> line 3.1-3.28
>     ZopeXMLConfigurationError: File 
> "/opt/grok/sources/megrok.quarry/src/megrok/quarry/demo/configure.zcml", 
> line 1.0-1.60
>     GrokError: Multiple possible ways to render view <class 
> 'megrok.quarry.demo.app.Menu'>. It has both a 'render' method as well 
> as an associated template.
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev
>


More information about the Grok-dev mailing list