[Grok-dev] problems installing megrok.jinja2 extension

Tamer Higazi th982a at googlemail.com
Tue Dec 27 01:30:23 UTC 2011


Hi Christian!
I allready spoke with the developer, he told me the same thing. After 
commenting out the import, it worked. The developer itself wanted to 
figure out if grok runs in developer or production mode to rerender the 
site if necessary or not (in developer mode).

He offered me to take over the Project. Do you want to maintain the 
package?! I am quit busy right now.... if not I will take it over 
because I am highly interisted to work with jinja on the next customer 
project.


Tamer

Am 25.12.2011 09:26, schrieb Christian Klinger:
> Hi again
>
> Ok i had just a quick look. I guess you can remove that line
> which import RuntimeInfo. This is no more part of new grok.
>
> from zope.app.applicationcontrol.runtimeinfo import RuntimeInfo
>
> This is not used in the code. At least i don't see where it's used...
> You find this in the factory.py module of megrok.jinja.
>
> If it works i can make a new release of megrok.jinja.
>
> HTH
> Christian
>
> Christian Klinger schrieb:
>> Hi Tamer,
>>
>> that means megrok.jinja2 is not compatible with the current version in
>> grok version.
>>
>> Maybe i find time this evening to have a detailed look on it.
>>
>> Christian
>>
>> Tamer Higazi schrieb:
>>> Hi people!
>>> I edited the setup.py and added in install_requires:
>>>
>>> 'megrok.jinja'
>>>
>>> and ran bin/buildout
>>>
>>> if I run now bin/paster serve parts/etc/deploy.ini
>>>
>>> I get a the full errorlist telling me some modules couldn't be
>>> installed. Can somebody of you tell me how to solve this?!
>>>
>>> for any support I would thank you
>>>
>>>
>>> Tamer
>>>
>>>
>>>
>>>
>>> The complete error:
>>>
>>> Traceback (most recent call last):
>>> File "bin/paster", line 20, in<module>
>>> paste.script.command.run()
>>> File
>>> "/home/tamer/.buildout/eggs/PasteScript-1.7.3-py2.7.egg/paste/script/command.py", 
>>>
>>>
>>> line 84, in run
>>> invoke(command, command_name, options, args[1:])
>>> File
>>> "/home/tamer/.buildout/eggs/PasteScript-1.7.3-py2.7.egg/paste/script/command.py", 
>>>
>>>
>>> line 123, in invoke
>>> exit_code = runner.run(args)
>>> File
>>> "/home/tamer/.buildout/eggs/PasteScript-1.7.3-py2.7.egg/paste/script/command.py", 
>>>
>>>
>>> line 218, in run
>>> result = self.command()
>>> File
>>> "/home/tamer/.buildout/eggs/PasteScript-1.7.3-py2.7.egg/paste/script/serve.py", 
>>>
>>>
>>> line 276, in command
>>> relative_to=base, global_conf=vars)
>>> File
>>> "/home/tamer/.buildout/eggs/PasteScript-1.7.3-py2.7.egg/paste/script/serve.py", 
>>>
>>>
>>> line 313, in loadapp
>>> **kw)
>>> File
>>> "/home/tamer/.buildout/eggs/PasteDeploy-1.3.4-py2.7.egg/paste/deploy/loadwsgi.py", 
>>>
>>>
>>> line 203, in loadapp
>>> return loadobj(APP, uri, name=name, **kw)
>>> File
>>> "/home/tamer/.buildout/eggs/PasteDeploy-1.3.4-py2.7.egg/paste/deploy/loadwsgi.py", 
>>>
>>>
>>> line 224, in loadobj
>>> return context.create()
>>> File
>>> "/home/tamer/.buildout/eggs/PasteDeploy-1.3.4-py2.7.egg/paste/deploy/loadwsgi.py", 
>>>
>>>
>>> line 617, in create
>>> return self.object_type.invoke(self)
>>> File
>>> "/home/tamer/.buildout/eggs/PasteDeploy-1.3.4-py2.7.egg/paste/deploy/loadwsgi.py", 
>>>
>>>
>>> line 163, in invoke
>>> app = context.app_context.create()
>>> File
>>> "/home/tamer/.buildout/eggs/PasteDeploy-1.3.4-py2.7.egg/paste/deploy/loadwsgi.py", 
>>>
>>>
>>> line 617, in create
>>> return self.object_type.invoke(self)
>>> File
>>> "/home/tamer/.buildout/eggs/PasteDeploy-1.3.4-py2.7.egg/paste/deploy/loadwsgi.py", 
>>>
>>>
>>> line 109, in invoke
>>> return fix_call(context.object, context.global_conf,
>>> **context.local_conf)
>>> File
>>> "/home/tamer/.buildout/eggs/PasteDeploy-1.3.4-py2.7.egg/paste/deploy/util/fixtypeerror.py", 
>>>
>>>
>>> line 57, in fix_call
>>> val = callable(*args, **kw)
>>> File
>>> "/home/tamer/.buildout/eggs/grokcore.startup-1.1-py2.7.egg/grokcore/startup/startup.py", 
>>>
>>>
>>> line 14, in application_factory
>>> return zope.app.wsgi.getWSGIApplication(zope_conf)
>>> File
>>> "/home/tamer/.buildout/eggs/zope.app.wsgi-3.13.0-py2.7.egg/zope/app/wsgi/__init__.py", 
>>>
>>>
>>> line 162, in getWSGIApplication
>>> db = config(configfile, schemafile, features)
>>> File
>>> "/home/tamer/.buildout/eggs/zope.app.wsgi-3.13.0-py2.7.egg/zope/app/wsgi/__init__.py", 
>>>
>>>
>>> line 150, in config
>>> appsetup.config(options.site_definition, features=features)
>>> File
>>> "/home/tamer/.buildout/eggs/zope.app.appsetup-3.15.0-py2.7.egg/zope/app/appsetup/appsetup.py", 
>>>
>>>
>>> line 111, in config
>>> context = xmlconfig.file(file, context=context, execute=execute)
>>> File
>>> "/home/tamer/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", 
>>>
>>>
>>> line 649, in file
>>> include(context, name, package)
>>> File
>>> "/home/tamer/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", 
>>>
>>>
>>> line 548, in include
>>> processxmlfile(f, context)
>>> File
>>> "/home/tamer/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", 
>>>
>>>
>>> line 380, in processxmlfile
>>> parser.parse(src)
>>> File "/usr/lib64/python2.7/xml/sax/expatreader.py", line 107, in parse
>>> xmlreader.IncrementalParser.parse(self, source)
>>> File "/usr/lib64/python2.7/xml/sax/xmlreader.py", line 123, in parse
>>> self.feed(buffer)
>>> File "/usr/lib64/python2.7/xml/sax/expatreader.py", line 207, in feed
>>> self._parser.Parse(data, isFinal)
>>> File "/usr/lib64/python2.7/xml/sax/expatreader.py", line 349, in
>>> end_element_ns
>>> self._cont_handler.endElementNS(pair, None)
>>> File
>>> "/home/tamer/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", 
>>>
>>>
>>> line 359, in endElementNS
>>> self.context.end()
>>> File
>>> "/home/tamer/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", 
>>>
>>>
>>> line 558, in end
>>> self.stack.pop().finish()
>>> File
>>> "/home/tamer/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", 
>>>
>>>
>>> line 706, in finish
>>> actions = self.handler(context, **args)
>>> File
>>> "/home/tamer/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", 
>>>
>>>
>>> line 548, in include
>>> processxmlfile(f, context)
>>> File
>>> "/home/tamer/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", 
>>>
>>>
>>> line 380, in processxmlfile
>>> parser.parse(src)
>>> File "/usr/lib64/python2.7/xml/sax/expatreader.py", line 107, in parse
>>> xmlreader.IncrementalParser.parse(self, source)
>>> File "/usr/lib64/python2.7/xml/sax/xmlreader.py", line 123, in parse
>>> self.feed(buffer)
>>> File "/usr/lib64/python2.7/xml/sax/expatreader.py", line 207, in feed
>>> self._parser.Parse(data, isFinal)
>>> File "/usr/lib64/python2.7/xml/sax/expatreader.py", line 349, in
>>> end_element_ns
>>> self._cont_handler.endElementNS(pair, None)
>>> File
>>> "/home/tamer/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", 
>>>
>>>
>>> line 359, in endElementNS
>>> self.context.end()
>>> File
>>> "/home/tamer/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", 
>>>
>>>
>>> line 558, in end
>>> self.stack.pop().finish()
>>> File
>>> "/home/tamer/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", 
>>>
>>>
>>> line 706, in finish
>>> actions = self.handler(context, **args)
>>> File
>>> "/home/tamer/.buildout/eggs/z3c.autoinclude-0.3.3-py2.7.egg/z3c/autoinclude/zcml.py", 
>>>
>>>
>>> line 54, in includeDependenciesDirective
>>> includeZCMLGroup(_context, info, 'configure.zcml')
>>> File
>>> "/home/tamer/.buildout/eggs/z3c.autoinclude-0.3.3-py2.7.egg/z3c/autoinclude/zcml.py", 
>>>
>>>
>>> line 30, in includeZCMLGroup
>>> include(_context, filename, includable_package)
>>> File
>>> "/home/tamer/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", 
>>>
>>>
>>> line 548, in include
>>> processxmlfile(f, context)
>>> File
>>> "/home/tamer/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", 
>>>
>>>
>>> line 380, in processxmlfile
>>> parser.parse(src)
>>> File "/usr/lib64/python2.7/xml/sax/expatreader.py", line 107, in parse
>>> xmlreader.IncrementalParser.parse(self, source)
>>> File "/usr/lib64/python2.7/xml/sax/xmlreader.py", line 123, in parse
>>> self.feed(buffer)
>>> File "/usr/lib64/python2.7/xml/sax/expatreader.py", line 207, in feed
>>> self._parser.Parse(data, isFinal)
>>> File "/usr/lib64/python2.7/xml/sax/expatreader.py", line 349, in
>>> end_element_ns
>>> self._cont_handler.endElementNS(pair, None)
>>> File
>>> "/home/tamer/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/xmlconfig.py", 
>>>
>>>
>>> line 359, in endElementNS
>>> self.context.end()
>>> File
>>> "/home/tamer/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", 
>>>
>>>
>>> line 558, in end
>>> self.stack.pop().finish()
>>> File
>>> "/home/tamer/.buildout/eggs/zope.configuration-3.7.4-py2.7.egg/zope/configuration/config.py", 
>>>
>>>
>>> line 706, in finish
>>> actions = self.handler(context, **args)
>>> File
>>> "/home/tamer/.buildout/eggs/grokcore.component-2.3-py2.7.egg/grokcore/component/zcml.py", 
>>>
>>>
>>> line 57, in grokDirective
>>> do_grok(package.__name__, _context, extra_exclude=exclude)
>>> File
>>> "/home/tamer/.buildout/eggs/grokcore.component-2.3-py2.7.egg/grokcore/component/zcml.py", 
>>>
>>>
>>> line 71, in do_grok
>>> config=config)
>>> File
>>> "/home/tamer/.buildout/eggs/martian-0.14-py2.7.egg/martian/core.py",
>>> line 203, in grok_dotted_name
>>> grok_package(module_info, grokker, **kw)
>>> File
>>> "/home/tamer/.buildout/eggs/martian-0.14-py2.7.egg/martian/core.py",
>>> line 208, in grok_package
>>> grok_package(sub_module_info, grokker, **kw)
>>> File
>>> "/home/tamer/.buildout/eggs/martian-0.14-py2.7.egg/martian/core.py",
>>> line 206, in grok_package
>>> grok_module(module_info, grokker, **kw)
>>> File
>>> "/home/tamer/.buildout/eggs/martian-0.14-py2.7.egg/martian/core.py",
>>> line 211, in grok_module
>>> grokker.grok(module_info.dotted_name, module_info.getModule(),
>>> File
>>> "/home/tamer/.buildout/eggs/martian-0.14-py2.7.egg/martian/scan.py",
>>> line 141, in getModule
>>> self._module = resolve(self.dotted_name)
>>> File
>>> "/home/tamer/.buildout/eggs/martian-0.14-py2.7.egg/martian/scan.py",
>>> line 217, in resolve
>>> __import__(used)
>>> File
>>> "/home/tamer/.buildout/eggs/megrok.jinja-0.1-py2.7.egg/megrok/jinja/factory.py", 
>>>
>>>
>>> line 25, in<module>
>>> from zope.app.applicationcontrol.runtimeinfo import RuntimeInfo
>>> zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
>>> "/storage/helloworld/parts/etc/site.zcml", line 4.2-4.34
>>> ZopeXMLConfigurationError: File
>>> "/storage/helloworld/src/helloworld/configure.zcml", line 4.2-4.37
>>> ZopeXMLConfigurationError: File
>>> "/home/tamer/.buildout/eggs/megrok.jinja-0.1-py2.7.egg/megrok/jinja/configure.zcml", 
>>>
>>>
>>> line 9.2-9.27
>>> ImportError: No module named applicationcontrol.runtimeinfo
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> https://mail.zope.org/mailman/listinfo/grok-dev



More information about the Grok-dev mailing list