<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi Folks,<br><br>I've just started to try to experiment with Grok, but I think there seems to be an issue with the latest version of grok 11.1 dependency on some of the other modules. Here's my sequence of commands :<br><br><start><br><br>C:\TMP\grok>\engines\Python24\Scripts\grokproject.exe foo<br>Enter module (Name of a demo Python module placed into the package) ['app.py']:<br><br>Enter user (Name of an initial administrator user): sa<br>Enter passwd (Password for the initial administrator user): password<br>Enter eggs_dir (Location where zc.buildout will look for and place packages) ['c:\\zen\\config/buildout-eggs']:<br>Creating directory .\foo<br>Invoking zc.buildout...<br><br>C:\TMP\grok>cd \zen\config<br><br>C:\Zen\config>cd
buildout-eggs<br><br>C:\Zen\config\buildout-eggs>ls<br>grok-0.11.1-py2.4.egg zc.zodbrecipes-0.3.1-py2.4.egg<br>lovely.recipe-0.3.1b1-py2.4.egg zdaemon-2.0.0-py2.4.egg<br>zc.buildout-1.0.0-py2.4.egg zope.app.locales-3.4.0a1-py2.4.egg<br>zc.recipe.filestorage-1.0.0-py2.4.egg<br><br>C:\Zen\config\buildout-eggs>cd ..<br><br>C:\Zen\config>cd \TMP\grok\foo<br><br>C:\TMP\grok\foo>ls<br>bin buildout.cfg develop-eggs parts setup.py src<br><br>C:\TMP\grok\foo>bin\zopectl.exe fg<br>c:\zen\config\buildout-eggs\grok-0.11.1-py2.4.egg\grok\components.py:29: Depreca<br>tionWarning: Role is deprecated. It has moved to zope.securitypolicy.role This<br>reference will be removed somedays<br> from
zope.app.securitypolicy.role import Role<br>c:\zen\config\buildout-eggs\grok-0.11.1-py2.4.egg\grok\meta.py:26: DeprecationWa<br>rning: IRole is deprecated. It has moved to zope.securitypolicy.interfaces This<br> reference will be removed somedays<br> from zope.app.securitypolicy.interfaces import IRole<br>c:\zen\config\buildout-eggs\grok-0.11.1-py2.4.egg\grok\meta.py:27: DeprecationWa<br>rning: rolePermissionManager is deprecated. It has moved to zope.securitypolicy.<br>rolepermission This reference will be removed somedays<br> from zope.app.securitypolicy.rolepermission import rolePermissionManager<br>C:\engines\Python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg\zope\co<br>nfiguration\config.py:197: DeprecationWarning: ZopeSecurityPolicy is deprecated.<br> It has moved to zope.securitypolicy.zopepolicy This reference will be removed<br>somedays<br> obj = getattr(mod, oname)<br>Traceback (most
recent call last):<br> File "C:\TMP\grok\foo\parts\app\runzope-script.py", line 13, in ?<br> zope.app.twisted.main.main()<br> File "c:\engines\python24\lib\site-packages\zope.app.twisted-3.4.1-py2.4.egg\z<br>ope\app\twisted\main.py", line 74, in main<br> service = setup(load_options(args))<br> File "c:\engines\python24\lib\site-packages\zope.app.twisted-3.4.1-py2.4.egg\z<br>ope\app\twisted\main.py", line 145, in setup<br> zope.app.appsetup.config(options.site_definition, features=features)<br> File "c:\engines\python24\lib\site-packages\zope.app.appsetup-3.4.1-py2.4.egg\<br>zope\app\appsetup\appsetup.py", line 111, in config<br> context = xmlconfig.file(file, context=context, execute=execute)<br> File "c:\engines\python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg<br>\zope\configuration\xmlconfig.py", line 610, in file<br>
include(context, name, package)<br> File "c:\engines\python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg<br>\zope\configuration\xmlconfig.py", line 546, in include<br> processxmlfile(f, context)<br> File "c:\engines\python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg<br>\zope\configuration\xmlconfig.py", line 378, in processxmlfile<br> parser.parse(src)<br> File "C:\Engines\Python24\lib\xml\sax\expatreader.py", line 107, in parse<br> xmlreader.IncrementalParser.parse(self, source)<br> File "C:\Engines\Python24\lib\xml\sax\xmlreader.py", line 123, in parse<br> self.feed(buffer)<br> File "C:\Engines\Python24\lib\xml\sax\expatreader.py", line 207, in feed<br> self._parser.Parse(data, isFinal)<br> File "C:\Engines\Python24\lib\xml\sax\expatreader.py", line 348, in end_elemen<br>t_ns<br>
self._cont_handler.endElementNS(pair, None)<br> File "c:\engines\python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg<br>\zope\configuration\xmlconfig.py", line 357, in endElementNS<br> self.context.end()<br> File "c:\engines\python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg<br>\zope\configuration\config.py", line 542, in end<br> self.stack.pop().finish()<br> File "c:\engines\python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg<br>\zope\configuration\config.py", line 690, in finish<br> actions = self.handler(context, **args)<br> File "c:\engines\python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg<br>\zope\configuration\xmlconfig.py", line 546, in include<br> processxmlfile(f, context)<br> File "c:\engines\python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg<br>\zope\configuration\xmlconfig.py", line 378,
in processxmlfile<br> parser.parse(src)<br> File "C:\Engines\Python24\lib\xml\sax\expatreader.py", line 107, in parse<br> xmlreader.IncrementalParser.parse(self, source)<br> File "C:\Engines\Python24\lib\xml\sax\xmlreader.py", line 123, in parse<br> self.feed(buffer)<br> File "C:\Engines\Python24\lib\xml\sax\expatreader.py", line 207, in feed<br> self._parser.Parse(data, isFinal)<br> File "C:\Engines\Python24\lib\xml\sax\expatreader.py", line 348, in end_elemen<br>t_ns<br> self._cont_handler.endElementNS(pair, None)<br> File "c:\engines\python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg<br>\zope\configuration\xmlconfig.py", line 357, in endElementNS<br> self.context.end()<br> File "c:\engines\python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg<br>\zope\configuration\config.py", line 542, in
end<br> self.stack.pop().finish()<br> File "c:\engines\python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg<br>\zope\configuration\config.py", line 690, in finish<br> actions = self.handler(context, **args)<br> File "c:\engines\python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg<br>\zope\configuration\xmlconfig.py", line 546, in include<br> processxmlfile(f, context)<br> File "c:\engines\python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg<br>\zope\configuration\xmlconfig.py", line 378, in processxmlfile<br> parser.parse(src)<br> File "C:\Engines\Python24\lib\xml\sax\expatreader.py", line 107, in parse<br> xmlreader.IncrementalParser.parse(self, source)<br> File "C:\Engines\Python24\lib\xml\sax\xmlreader.py", line 123, in parse<br> self.feed(buffer)<br> File
"C:\Engines\Python24\lib\xml\sax\expatreader.py", line 207, in feed<br> self._parser.Parse(data, isFinal)<br> File "C:\Engines\Python24\lib\xml\sax\expatreader.py", line 348, in end_elemen<br>t_ns<br> self._cont_handler.endElementNS(pair, None)<br> File "c:\engines\python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg<br>\zope\configuration\xmlconfig.py", line 357, in endElementNS<br> self.context.end()<br> File "c:\engines\python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg<br>\zope\configuration\config.py", line 542, in end<br> self.stack.pop().finish()<br> File "c:\engines\python24\lib\site-packages\zope.configuration-3.4.0-py2.4.egg<br>\zope\configuration\config.py", line 690, in finish<br> actions = self.handler(context, **args)<br> File
"c:\zen\config\buildout-eggs\tmpvecujn\grok-0.11.1-py2.4.egg\grok\zcml.py<br>", line 48, in grokDirective<br> File "c:\zen\config\buildout-eggs\tmpvecujn\grok-0.11.1-py2.4.egg\grok\zcml.py<br>", line 53, in do_grok<br> File "c:\engines\python24\lib\site-packages\martian-0.9.3-py2.4.egg\martian\co<br>re.py", line 193, in grok_dotted_name<br> grok_package(module_info, grokker, **kw)<br> File "c:\engines\python24\lib\site-packages\martian-0.9.3-py2.4.egg\martian\co<br>re.py", line 196, in grok_package<br> grok_module(module_info, grokker, **kw)<br> File "c:\engines\python24\lib\site-packages\martian-0.9.3-py2.4.egg\martian\co<br>re.py", line 202, in grok_module<br> module_info=module_info, **kw)<br> File "c:\engines\python24\lib\site-packages\martian-0.9.3-py2.4.egg\martian\co<br>re.py", line 65, in grok<br> grokked = g.grok(name, obj, **kw)<br> File
"c:\zen\config\buildout-eggs\tmpvecujn\grok-0.11.1-py2.4.egg\grok\meta.py<br>", line 61, in grok<br>zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "C:\TMP\grok\foo\pa<br>rts\app\site.zcml", line 4.0-4.25<br> ZopeXMLConfigurationError: File "c:\tmp\grok\foo\src\foo\configure.zcml", li<br>ne 3.2-3.28<br> ZopeXMLConfigurationError: File "c:\zen\config\buildout-eggs\grok-0.11.1-py2<br>.4.egg\grok\configure.zcml", line 82.2-82.31<br> AttributeError: 'module' object has no attribute 'determine_module_context'<br>Zope3 started in forground: C:\TMP\grok\foo\parts\app\runzope -C C:\TMP\grok\fo<br>o\parts\zopectl\zope.conf<br><br></end><br><br>Obviously, in grok 11.1 grok.util has no function 'determine_module_context', I checked out the svn version last night (grok-0.12dev-py2.4.egg) and lo and behold grok.util _does_ have the missing function. However, buildout is hardwired
to the incorrect version and I'm kinda confused at this stage.... Either I find a way to reference grok 0.12 dev or the grok developers should probably make grok 11.1 reference the libraries which do not depend on the missing function given a easy_install -U grok command and/or grokproject <projname> command.<br><br>Incidentally, I think I do have the correct zope eggs as I can run a full version of z3 instance from the libs.<br><br>Cheers.<br><br>AK<br>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br></div></div><br>
<hr size=1>Looking for last minute shopping deals? <a href="http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping">
Find them fast with Yahoo! Search.</a></body></html>