Error running the grok server

Asked by Sylvie Perdriel

I installed on Windows under python 2.6 the grok system and create the sample project without trouble but when I run the grok server with the command : bin/paster serve parts/etc/deploy.ini I've got the following error message :

Traceback (most recent call last):
  File "E:\TECHNIQUE\DEVCAIRN\PYTHON\GROK\Sample\bin\paster-script.py", line 20, in <module>
    paste.script.command.run()
  File "c:\python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\command.py", line 84, in run
    invoke(command, command_name, options, args[1:])
  File "c:\python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\command.py", line 123, in invoke
    exit_code = runner.run(args)
  File "c:\python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\command.py", line 218, in run
    result = self.command()
  File "c:\python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\serve.py", line 276, in command
    relative_to=base, global_conf=vars)
  File "c:\python26\lib\site-packages\pastescript-1.7.3-py2.6.egg\paste\script\serve.py", line 313, in loadapp
    **kw)
  File "c:\python26\lib\site-packages\pastedeploy-1.3.4-py2.6.egg\paste\deploy\loadwsgi.py", line 203, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "c:\python26\lib\site-packages\pastedeploy-1.3.4-py2.6.egg\paste\deploy\loadwsgi.py", line 224, in loadobj
    return context.create()
  File "c:\python26\lib\site-packages\pastedeploy-1.3.4-py2.6.egg\paste\deploy\loadwsgi.py", line 617, in create
    return self.object_type.invoke(self)
  File "c:\python26\lib\site-packages\pastedeploy-1.3.4-py2.6.egg\paste\deploy\loadwsgi.py", line 163, in invoke
    app = context.app_context.create()
  File "c:\python26\lib\site-packages\pastedeploy-1.3.4-py2.6.egg\paste\deploy\loadwsgi.py", line 617, in create
    return self.object_type.invoke(self)
  File "c:\python26\lib\site-packages\pastedeploy-1.3.4-py2.6.egg\paste\deploy\loadwsgi.py", line 109, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "c:\python26\lib\site-packages\pastedeploy-1.3.4-py2.6.egg\paste\deploy\util\fixtypeerror.py", line 57, in fix_call
    val = callable(*args, **kw)
  File "c:\cygwin\home\sylvie\.buildout\eggs\grokcore.startup-1.1-py2.6.egg\grokcore\startup\startup.py", line 14, in application_factory
    return zope.app.wsgi.getWSGIApplication(zope_conf)
  File "c:\cygwin\home\sylvie\.buildout\eggs\zope.app.wsgi-3.10.0-py2.6.egg\zope\app\wsgi\__init__.py", line 162, in getWSGIApplication
    db = config(configfile, schemafile, features)
  File "c:\cygwin\home\sylvie\.buildout\eggs\zope.app.wsgi-3.10.0-py2.6.egg\zope\app\wsgi\__init__.py", line 150, in config
    appsetup.config(options.site_definition, features=features)
  File "c:\cygwin\home\sylvie\.buildout\eggs\zope.app.appsetup-3.15.0-py2.6.egg\zope\app\appsetup\appsetup.py", line 111, in config
    context = xmlconfig.file(file, context=context, execute=execute)
  File "c:\cygwin\home\sylvie\.buildout\eggs\zope.configuration-3.7.2-py2.6.egg\zope\configuration\xmlconfig.py", line 651, in file
    include(context, name, package)
  File "c:\cygwin\home\sylvie\.buildout\eggs\zope.configuration-3.7.2-py2.6.egg\zope\configuration\xmlconfig.py", line 550, in include
    processxmlfile(f, context)
  File "c:\cygwin\home\sylvie\.buildout\eggs\zope.configuration-3.7.2-py2.6.egg\zope\configuration\xmlconfig.py", line 382, in processxmlfile
    parser.parse(src)
  File "C:\Python26\lib\xml\sax\expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "C:\Python26\lib\xml\sax\xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "C:\Python26\lib\xml\sax\expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "C:\Python26\lib\xml\sax\expatreader.py", line 349, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "c:\cygwin\home\sylvie\.buildout\eggs\zope.configuration-3.7.2-py2.6.egg\zope\configuration\xmlconfig.py", line 361, in endElementNS
    self.context.end()
  File "c:\cygwin\home\sylvie\.buildout\eggs\zope.configuration-3.7.2-py2.6.egg\zope\configuration\config.py", line 538, in end
    self.stack.pop().finish()
  File "c:\cygwin\home\sylvie\.buildout\eggs\zope.configuration-3.7.2-py2.6.egg\zope\configuration\config.py", line 686, in finish
    actions = self.handler(context, **args)
  File "c:\cygwin\home\sylvie\.buildout\eggs\zope.configuration-3.7.2-py2.6.egg\zope\configuration\xmlconfig.py", line 550, in include
    processxmlfile(f, context)
  File "c:\cygwin\home\sylvie\.buildout\eggs\zope.configuration-3.7.2-py2.6.egg\zope\configuration\xmlconfig.py", line 382, in processxmlfile
    parser.parse(src)
  File "C:\Python26\lib\xml\sax\expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "C:\Python26\lib\xml\sax\xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "C:\Python26\lib\xml\sax\expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "C:\Python26\lib\xml\sax\expatreader.py", line 349, in end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File "c:\cygwin\home\sylvie\.buildout\eggs\zope.configuration-3.7.2-py2.6.egg\zope\configuration\xmlconfig.py", line 361, in endElementNS
    self.context.end()
  File "c:\cygwin\home\sylvie\.buildout\eggs\zope.configuration-3.7.2-py2.6.egg\zope\configuration\config.py", line 538, in end
    self.stack.pop().finish()
  File "c:\cygwin\home\sylvie\.buildout\eggs\zope.configuration-3.7.2-py2.6.egg\zope\configuration\config.py", line 686, in finish
    actions = self.handler(context, **args)
  File "c:\cygwin\home\sylvie\.buildout\eggs\z3c.autoinclude-0.3.3-py2.6.egg\z3c\autoinclude\zcml.py", line 51, in includeDependenciesDirective
    info = DependencyFinder(dist).includableInfo(['configure.zcml', 'meta.zcml'])
  File "c:\cygwin\home\sylvie\.buildout\eggs\z3c.autoinclude-0.3.3-py2.6.egg\z3c\autoinclude\dependency.py", line 24, in includableInfo
    module = resolve(dotted_name)
  File "c:\cygwin\home\sylvie\.buildout\eggs\zope.dottedname-3.4.6-py2.6.egg\zope\dottedname\resolve.py", line 32, in resolve
    found = __import__(used)
  File "c:\python26\lib\site-packages\adodbapi\__init__.py", line 1, in <module>
    from adodbapi import *
  File "c:\python26\lib\site-packages\adodbapi\adodbapi.py", line 57, in <module>
    from System import Activator, Type, DBNull, DateTime, Array, Byte
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "E:\TECHNIQUE\DEVCAIRN\PYTHON\GROK\Sample\parts\etc\site.zcml", line 4.2-4.30
    ZopeXMLConfigurationError: File "e:\technique\devcairn\python\grok\sample\src\sample\configure.zcml", line 4.2-4.37
    ImportError: No module named System

has someone any idea. Thank's a lot!

Question information

Language:
English Edit question
Status:
Solved
For:
grok Edit question
Assignee:
No assignee Edit question
Solved by:
Jan-Jaap Driessen
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan-Jaap Driessen (janjaapdriessen) said :
#1

This looks like a z3c.autoinclude issue.

How did you install grok? Using the latest grokproject? The latest grokproject uses zc.buildout 1.5.2 and should mask your system packages from being accessible.

If you are not using the most grokproject version 2.4 or later, could you install this version and try again? Otherwise, create a virtualenv with the option --no-site-packages and install grokproject from there.

Revision history for this message
Sylvie Perdriel (sperdriel) said :
#2

Thanks Jan-Jaap Driessen, that solved my question.

Revision history for this message
Sylvie Perdriel (sperdriel) said :
#3

This was solved using virtualenv. Thank's alot for answering!
Sylvie