[Grok-dev] problems installing megrok.jinja2 extension

Christian Klinger cklinger at novareto.de
Sun Dec 25 08:20:01 UTC 2011


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



More information about the Grok-dev mailing list