[Grok-dev] KSS and Grok 1.1

Edu iamedu at gmail.com
Sun Aug 8 22:35:27 EDT 2010


He Grokkers! I'm new to grok and I need a little assistance,

I'm trying to use megrok.kss with grok 1.1 but I get this error

    ImportError: cannot import name PublicPermission

Any idea of what might be happening?

I'll attach the complete trace just in case

bin/paster serve parts/etc/deploy.ini
/home/iamedu/.buildout/eggs/kss.core-1.4.9-py2.6.egg/kss/core/kssview.py:46:
DeprecationWarning: ISite is deprecated. Moved to zope.component.interfaces.
Importing from here will stop working in Zope 3.6
  from zope.app.component.interfaces import ISite
Traceback (most recent call last):
  File "bin/paster", line 147, in <module>
    paste.script.command.run()
  File
"/home/iamedu/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py",
line 84, in run
    invoke(command, command_name, options, args[1:])
  File
"/home/iamedu/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py",
line 123, in invoke
    exit_code = runner.run(args)
  File
"/home/iamedu/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py",
line 218, in run
    result = self.command()
  File
"/home/iamedu/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py",
line 276, in command
    relative_to=base, global_conf=vars)
  File
"/home/iamedu/.buildout/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py",
line 313, in loadapp
    **kw)
  File
"/home/iamedu/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py",
line 204, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File
"/home/iamedu/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py",
line 225, in loadobj
    return context.create()
  File
"/home/iamedu/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py",
line 625, in create
    return self.object_type.invoke(self)
  File
"/home/iamedu/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py",
line 164, in invoke
    app = context.app_context.create()
  File
"/home/iamedu/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py",
line 625, in create
    return self.object_type.invoke(self)
  File
"/home/iamedu/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py",
line 110, in invoke
    return fix_call(context.object, context.global_conf,
**context.local_conf)
  File
"/home/iamedu/.buildout/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/util/fixtypeerror.py",
line 57, in fix_call
    val = callable(*args, **kw)
  File
"/home/iamedu/.buildout/eggs/grokcore.startup-1.0-py2.6.egg/grokcore/startup/startup.py",
line 15, in application_factory
    return zope.app.wsgi.getWSGIApplication(zope_conf)
  File
"/home/iamedu/.buildout/eggs/zope.app.wsgi-3.6.1-py2.6.egg/zope/app/wsgi/__init__.py",
line 158, in getWSGIApplication
    db = config(configfile, schemafile, features)
  File
"/home/iamedu/.buildout/eggs/zope.app.wsgi-3.6.1-py2.6.egg/zope/app/wsgi/__init__.py",
line 147, in config
    appsetup.config(options.site_definition, features=features)
  File
"/home/iamedu/.buildout/eggs/zope.app.appsetup-3.13.0-py2.6.egg/zope/app/appsetup/appsetup.py",
line 111, in config
    context = xmlconfig.file(file, context=context, execute=execute)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 651, in file
    include(context, name, package)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 550, in include
    processxmlfile(f, context)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 382, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in
end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 361, in endElementNS
    self.context.end()
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py",
line 538, in end
    self.stack.pop().finish()
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py",
line 686, in finish
    actions = self.handler(context, **args)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 550, in include
    processxmlfile(f, context)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 382, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in
end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 361, in endElementNS
    self.context.end()
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py",
line 538, in end
    self.stack.pop().finish()
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py",
line 686, in finish
    actions = self.handler(context, **args)
  File
"/home/iamedu/.buildout/eggs/z3c.autoinclude-0.3.2-py2.6.egg/z3c/autoinclude/zcml.py",
line 54, in includeDependenciesDirective
    includeZCMLGroup(_context, info, 'configure.zcml')
  File
"/home/iamedu/.buildout/eggs/z3c.autoinclude-0.3.2-py2.6.egg/z3c/autoinclude/zcml.py",
line 30, in includeZCMLGroup
    include(_context, filename, includable_package)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 550, in include
    processxmlfile(f, context)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 382, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in
end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 361, in endElementNS
    self.context.end()
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py",
line 538, in end
    self.stack.pop().finish()
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py",
line 686, in finish
    actions = self.handler(context, **args)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 550, in include
    processxmlfile(f, context)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 382, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in
end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 361, in endElementNS
    self.context.end()
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py",
line 538, in end
    self.stack.pop().finish()
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py",
line 686, in finish
    actions = self.handler(context, **args)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 550, in include
    processxmlfile(f, context)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 382, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in
end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 361, in endElementNS
    self.context.end()
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py",
line 538, in end
    self.stack.pop().finish()
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py",
line 686, in finish
    actions = self.handler(context, **args)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 550, in include
    processxmlfile(f, context)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 382, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.6/xml/sax/expatreader.py", line 349, in
end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/xmlconfig.py",
line 361, in endElementNS
    self.context.end()
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py",
line 538, in end
    self.stack.pop().finish()
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py",
line 685, in finish
    args = toargs(context, *self.argdata)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py",
line 1377, in toargs
    args[str(name)] = field.fromUnicode(s)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/fields.py",
line 139, in fromUnicode
    value = self.context.resolve(name)
  File
"/home/iamedu/.buildout/eggs/zope.configuration-3.7.1-py2.6.egg/zope/configuration/config.py",
line 181, in resolve
    mod = __import__(mname, *_import_chickens)
  File
"/home/iamedu/.buildout/eggs/kss.core-1.4.9-py2.6.egg/kss/core/pluginregistry/_concatresource/meta.py",
line 6, in <module>
    from zope.app.component.metaconfigure import handler
  File
"/home/iamedu/.buildout/eggs/zope.app.component-3.8.4-py2.6.egg/zope/app/component/metaconfigure.py",
line 15, in <module>
    from zope.component.zcml import PublicPermission, _checker, view,
resource
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
"/home/iamedu/Projects/Shareale/parts/etc/site.zcml", line 4.2-4.32
    ZopeXMLConfigurationError: File
"/home/iamedu/Projects/Shareale/src/shareale/configure.zcml", line 4.2-4.37
    ZopeXMLConfigurationError: File
"/home/iamedu/.buildout/eggs/megrok.kss-0.2.3-py2.6.egg/megrok/kss/configure.zcml",
line 4.2-4.48
    ZopeXMLConfigurationError: File
"/home/iamedu/.buildout/eggs/kss.core-1.4.9-py2.6.egg/kss/core/meta.zcml",
line 6.3-6.56
    ZopeXMLConfigurationError: File
"/home/iamedu/.buildout/eggs/kss.core-1.4.9-py2.6.egg/kss/core/pluginregistry/meta.zcml",
line 5.3-5.57
    ZopeXMLConfigurationError: File
"/home/iamedu/.buildout/eggs/kss.core-1.4.9-py2.6.egg/kss/core/pluginregistry/_concatresource/meta.zcml",
line 7.1-11.10
    ImportError: cannot import name PublicPermission

Thanks a lot!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20100808/00eda290/attachment-0001.html 


More information about the Grok-dev mailing list