[Grok-dev] Grok 1.0a3 released!

Tim Cook timothywayne.cook at gmail.com
Mon Apr 13 00:48:19 EDT 2009


On Fri, 2009-04-10 at 22:35 +0200, Jan-Wijbrand Kolman wrote:
> The third step on the way to Grok 1.0!

Hmmmm, a step backwards for me.  :-)

To test 1.0a3 before upgrading anything else:
I created a new virtualenv --no-site-packages grok1a3
$ cd grok1a3
$ source bin/activate

$ easy_install grokproject 
$ grokproject test
$ cd test
$ buildout
$ bin/test-ctl fg

I got this traceback:
"/home/tim/grok1a3/test/src/test/configure.zcml", line 4.2-4.37
    AssertionError: Multiple distributions found for package test;
z3c.autoinclude refuses to guess.


So I thought.....I've a lot of extra versions of eggs anyway.  So I
deleted all the eggs and started over.

After getting all new eggs and trying to start the server again:
 
The traceback are below:
(grok1a3)tim at oship:~/grok1a3/test$ buildout
Develop: '/home/tim/grok1a3/test/.'
Unused options for buildout: 'download-directory'.
Updating eggbasket.
Installing app.

(after filling up the eggs directory again)
 
Generated script '/home/tim/grok1a3/test/bin/test-ctl'.
Generated script '/home/tim/grok1a3/test/bin/test-debug'.
Generated script '/home/tim/grok1a3/test/bin/paster'.
Generated interpreter '/home/tim/grok1a3/test/bin/python-console'.
Updating i18n.
The recipe for i18n doesn't define an update method. Using its install
method.
i18n: setting up i18n tools
Generated script '/home/tim/grok1a3/test/bin/i18nextract'.
Generated script '/home/tim/grok1a3/test/bin/i18nmergeall'.
Generated script '/home/tim/grok1a3/test/bin/i18nstats'.
Updating test.
Generated script '/home/tim/grok1a3/test/bin/test'.
Updating data.
Updating log.
Updating zpasswd.
Generated script '/home/tim/grok1a3/test/bin/zpasswd'.
Updating zope_conf.
Updating site_zcml.
Updating zdaemon_conf.
Updating deploy_ini.
Updating debug_ini.

(grok1a3)tim at oship:~/grok1a3/test$ bin/test-ctl fg
bin/paster serve /home/tim/grok1a3/test/parts/etc/deploy.ini
2009-04-13 01:17:34,606 WARNING [root] Developer mode is enabled: this
is a security risk and should NOT be enabled on production servers.
Developer mode can be turned off in etc/zope.conf
Traceback (most recent call last):
  File "bin/paster", line 124, in <module>
    paste.script.command.run()
  File
"/home/tim/.buildout/eggs/PasteScript-1.7.3-py2.5.egg/paste/script/command.py", line 84, in run
    invoke(command, command_name, options, args[1:])
  File
"/home/tim/.buildout/eggs/PasteScript-1.7.3-py2.5.egg/paste/script/command.py", line 123, in invoke
    exit_code = runner.run(args)
  File
"/home/tim/.buildout/eggs/PasteScript-1.7.3-py2.5.egg/paste/script/command.py", line 218, in run
    result = self.command()
  File
"/home/tim/.buildout/eggs/PasteScript-1.7.3-py2.5.egg/paste/script/serve.py", line 276, in command
    relative_to=base, global_conf=vars)
  File
"/home/tim/.buildout/eggs/PasteScript-1.7.3-py2.5.egg/paste/script/serve.py", line 313, in loadapp
    **kw)
  File
"/home/tim/.buildout/eggs/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 204, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File
"/home/tim/.buildout/eggs/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 225, in loadobj
    return context.create()
  File
"/home/tim/.buildout/eggs/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 625, in create
    return self.object_type.invoke(self)
  File
"/home/tim/.buildout/eggs/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 188, in invoke
    filtered = context.next_context.create()
  File
"/home/tim/.buildout/eggs/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 625, in create
    return self.object_type.invoke(self)
  File
"/home/tim/.buildout/eggs/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 110, in invoke
    return fix_call(context.object, context.global_conf,
**context.local_conf)
  File
"/home/tim/.buildout/eggs/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/util/fixtypeerror.py", line 57, in fix_call
    val = callable(*args, **kw)
  File
"/home/tim/.buildout/eggs/grokcore.startup-0.2-py2.5.egg/grokcore/startup/startup.py", line 11, in application_factory
    return zope.app.wsgi.getWSGIApplication(zope_conf)
  File
"/home/tim/.buildout/eggs/zope.app.wsgi-3.4.1-py2.5.egg/zope/app/wsgi/__init__.py", line 134, in getWSGIApplication
    db = config(configfile, schemafile, features)
  File
"/home/tim/.buildout/eggs/zope.app.wsgi-3.4.1-py2.5.egg/zope/app/wsgi/__init__.py", line 124, in config
    appsetup.config(options.site_definition, features=features)
  File
"/home/tim/.buildout/eggs/zope.app.appsetup-3.4.1-py2.5.egg/zope/app/appsetup/appsetup.py", line 111, in config
    context = xmlconfig.file(file, context=context, execute=execute)
  File
"/home/tim/.buildout/eggs/zope.configuration-3.4.0-py2.5.egg/zope/configuration/xmlconfig.py", line 610, in file
    include(context, name, package)
  File
"/home/tim/.buildout/eggs/zope.configuration-3.4.0-py2.5.egg/zope/configuration/xmlconfig.py", line 546, in include
    processxmlfile(f, context)
  File
"/home/tim/.buildout/eggs/zope.configuration-3.4.0-py2.5.egg/zope/configuration/xmlconfig.py", line 378, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.5/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.5/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.5/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.5/xml/sax/expatreader.py", line 349, in
end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File
"/home/tim/.buildout/eggs/zope.configuration-3.4.0-py2.5.egg/zope/configuration/xmlconfig.py", line 357, in endElementNS
    self.context.end()
  File
"/home/tim/.buildout/eggs/zope.configuration-3.4.0-py2.5.egg/zope/configuration/config.py", line 542, in end
    self.stack.pop().finish()
  File
"/home/tim/.buildout/eggs/zope.configuration-3.4.0-py2.5.egg/zope/configuration/config.py", line 690, in finish
    actions = self.handler(context, **args)
  File
"/home/tim/.buildout/eggs/zope.configuration-3.4.0-py2.5.egg/zope/configuration/xmlconfig.py", line 546, in include
    processxmlfile(f, context)
  File
"/home/tim/.buildout/eggs/zope.configuration-3.4.0-py2.5.egg/zope/configuration/xmlconfig.py", line 378, in processxmlfile
    parser.parse(src)
  File "/usr/lib/python2.5/xml/sax/expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.5/xml/sax/xmlreader.py", line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.5/xml/sax/expatreader.py", line 207, in feed
    self._parser.Parse(data, isFinal)
  File "/usr/lib/python2.5/xml/sax/expatreader.py", line 349, in
end_element_ns
    self._cont_handler.endElementNS(pair, None)
  File
"/home/tim/.buildout/eggs/zope.configuration-3.4.0-py2.5.egg/zope/configuration/xmlconfig.py", line 357, in endElementNS
    self.context.end()
  File
"/home/tim/.buildout/eggs/zope.configuration-3.4.0-py2.5.egg/zope/configuration/config.py", line 542, in end
    self.stack.pop().finish()
  File
"/home/tim/.buildout/eggs/zope.configuration-3.4.0-py2.5.egg/zope/configuration/config.py", line 690, in finish
    actions = self.handler(context, **args)
  File
"/home/tim/.buildout/eggs/z3c.autoinclude-0.2.2-py2.5.egg/z3c/autoinclude/zcml.py", line 38, in autoIncludeDirective
    dist = distributionForPackage(package)
  File
"/home/tim/.buildout/eggs/z3c.autoinclude-0.2.2-py2.5.egg/z3c/autoinclude/utils.py", line 65, in distributionForPackage
    return distributionForDottedName(package_dottedname)
  File
"/home/tim/.buildout/eggs/z3c.autoinclude-0.2.2-py2.5.egg/z3c/autoinclude/utils.py", line 82, in distributionForDottedName
    assert len(valid_dists_for_package) == 1, "Multiple distributions
found for package %s; z3c.autoinclude refuses to guess." %
package_dottedname
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
"/home/tim/grok1a3/test/etc/site.zcml.in", line 4.2-4.28
    ZopeXMLConfigurationError: File
"/home/tim/grok1a3/test/src/test/configure.zcml", line 4.2-4.37
    AssertionError: Multiple distributions found for package test;
z3c.autoinclude refuses to guess.
(grok1a3)tim at oship:~/grok1a3/test$ 

*********************************************
Same error.

bin/test-debug == same error

bin/test ==

    ZopeXMLConfigurationError: File
"/home/tim/grok1a3/test/src/test/configure.zcml", line 4.2-4.37
    AssertionError: Multiple distributions found for package test;
z3c.autoinclude refuses to guess.


Tests with errors:
   runTest (zope.testing.testrunner.runner.SetUpLayerFailure)
==================================================================

Then I thought; well maybe using the word 'test' as an app wasn't a good
idea so I deleted it and created 'myapp'.

bin/myapp-ctl fg gave me this traceback:

  File
"/home/tim/.buildout/eggs/grokui.admin-0.3-py2.5.egg/grokui/admin/docgrok.py", line 39, in <module>
    from zope.app.apidoc.codemodule.module import Module
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
"/home/tim/grok1a3/myapp/etc/site.zcml.in", line 4.2-4.29
    ZopeXMLConfigurationError: File
"/home/tim/grok1a3/myapp/src/myapp/configure.zcml", line 4.2-4.37
    ZopeXMLConfigurationError: File
"/home/tim/.buildout/eggs/grokui.admin-0.3-py2.5.egg/grokui/admin/configure.zcml", line 5.2-5.27
    ImportError: No module named apidoc.codemodule.module
(grok1a3)tim at oship:~/grok1a3/myapp$ 


So, no Grok 1.0a3 for me. Any ideas?

Thanks,
Tim


-- 
Timothy Cook, MSc
Health Informatics Research & Development Services
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook 
Skype ID == timothy.cook 
**************************************************************
*You may get my Public GPG key from  popular keyservers or   *
*from this link http://timothywayne.cook.googlepages.com/home*
**************************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/grok-dev/attachments/20090413/c442225f/attachment.bin 


More information about the Grok-dev mailing list