[Grok-dev] How you can help improving Windows support

Behrang Dadsetan bdadsetan at gmail.com
Tue Apr 14 13:59:11 EDT 2009


Hi,

  Yes I meant the import error for that apidoc thing.
Did you rerun buildout? I did forget to mention that.

Regards,
Ben.

2009/4/15 Milind Khadilkar <zedobject at gmail.com>:
> Thanks Ben,
> Is it with regard to the Import error for Module?
> I tried with both changing (to 0.3.2) and removing the second entry.
> I still get the same error in both cases.
> Probably I am missing something elementary?
>
> --Milind
>
>
> On Tue, Apr 14, 2009 at 9:44 PM, Behrang Dadsetan <bdadsetan at gmail.com>
> wrote:
>>
>> Hi!
>>
>>  This is a known bug that has been fixed on trunk. The next release
>> of grokproject will fix this.
>>
>>  For now, as described by Uli and others in other emails, you will
>> need to adjust your versions.cfg. There are currently two entries for
>> grokui.admin. The proper version is 0.3.2. So either remove the second
>> entry or change 0.3 into 0.3.2.
>>
>> Regards,
>> Ben.
>>
>> 2009/4/14 Milind Khadilkar <zedobject at gmail.com>:
>> > Thanks, Roger,
>> >
>> > I did as you suggested, and yes, the server did start..... but before I
>> > could switch to the browser to test, it bombed! Here is the message
>> > (with
>> > one line added by me)
>> >
>> > E:\vgrok1\grok10a3>bin\paster.exe serve parts\etc\deploy.ini
>> > 2009-04-14 20:02:38,750 WARNING [root] Developer mode is enabled: this
>> > is a
>> > secu
>> > rity risk and should NOT be enabled on production servers. Developer
>> > mode
>> > can be
>> >  turned off in etc/zope.conf
>> > (* Comment added by me: the following text appeared after around one
>> > minute:
>> > *)
>> > Traceback (most recent call last):
>> >   File "E:\vgrok1\grok10a3\bin\paster-script.py", line 124, in ?
>> >     paste.script.command.run()
>> >   File
>> >
>> > "C:\DOCUME~1\MK\BUILDO~1\eggs\pastescript-1.7.3-py2.4.egg\paste\script\command.py",
>> > line 84, in run
>> >     invoke(command, command_name, options, args[1:])
>> >   File
>> >
>> > "C:\DOCUME~1\MK\BUILDO~1\eggs\pastescript-1.7.3-py2.4.egg\paste\script\command.py",
>> > line 123, in invoke
>> >     exit_code = runner.run(args)
>> >   File
>> >
>> > "C:\DOCUME~1\MK\BUILDO~1\eggs\pastescript-1.7.3-py2.4.egg\paste\script\co
>> > mmand.py", line 218, in run
>> >     result = self.command()
>> >   File
>> >
>> > "C:\DOCUME~1\MK\BUILDO~1\eggs\pastescript-1.7.3-py2.4.egg\paste\script\se
>> > rve.py", line 276, in command
>> >     relative_to=base, global_conf=vars)
>> >   File
>> >
>> > "C:\DOCUME~1\MK\BUILDO~1\eggs\pastescript-1.7.3-py2.4.egg\paste\script\se
>> > rve.py", line 311, in loadapp
>> >     return loadapp(
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\pastedeploy-1.3.2-py2.4.egg\paste\deploy\lo
>> > adwsgi.py", line 204, in loadapp
>> >     return loadobj(APP, uri, name=name, **kw)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\pastedeploy-1.3.2-py2.4.egg\paste\deploy\lo
>> > adwsgi.py", line 225, in loadobj
>> >     return context.create()
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\pastedeploy-1.3.2-py2.4.egg\paste\deploy\lo
>> > adwsgi.py", line 625, in create
>> >     return self.object_type.invoke(self)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\pastedeploy-1.3.2-py2.4.egg\paste\deploy\lo
>> > adwsgi.py", line 188, in invoke
>> >     filtered = context.next_context.create()
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\pastedeploy-1.3.2-py2.4.egg\paste\deploy\lo
>> > adwsgi.py", line 625, in create
>> >     return self.object_type.invoke(self)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\pastedeploy-1.3.2-py2.4.egg\paste\deploy\lo
>> > adwsgi.py", line 110, in invoke
>> >     return fix_call(context.object, context.global_conf,
>> > **context.local_conf)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\pastedeploy-1.3.2-py2.4.egg\paste\deploy\ut
>> > il\fixtypeerror.py", line 57, in fix_call
>> >     val = callable(*args, **kw)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\grokcore.startup-0.2-py2.4.egg\grokcore\sta
>> > rtup\startup.py", line 11, in application_factory
>> >     return zope.app.wsgi.getWSGIApplication(zope_conf)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.app.wsgi-3.4.1-py2.4.egg\zope\app\wsgi
>> > \__init__.py", line 134, in getWSGIApplication
>> >     db = config(configfile, schemafile, features)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.app.wsgi-3.4.1-py2.4.egg\zope\app\wsgi
>> > \__init__.py", line 124, in config
>> >     appsetup.config(options.site_definition, features=features)
>> >   File
>> >
>> > "C:\DOCUME~1\MK\BUILDO~1\eggs\zope.app.appsetup-3.4.1-py2.4.egg\zope\app\
>> > appsetup\appsetup.py", line 111, in config
>> >     context = xmlconfig.file(file, context=context, execute=execute)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.configuration-3.4.0-py2.4.egg\zope\con
>> > figuration\xmlconfig.py", line 610, in file
>> >     include(context, name, package)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.configuration-3.4.0-py2.4.egg\zope\con
>> > figuration\xmlconfig.py", line 546, in include
>> >     processxmlfile(f, context)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.configuration-3.4.0-py2.4.egg\zope\con
>> > figuration\xmlconfig.py", line 378, in processxmlfile
>> >     parser.parse(src)
>> >   File "C:\Python24\Lib\xml\sax\expatreader.py", line 107, in parse
>> >     xmlreader.IncrementalParser.parse(self, source)
>> >   File "C:\Python24\Lib\xml\sax\xmlreader.py", line 123, in parse
>> >     self.feed(buffer)
>> >   File "C:\Python24\Lib\xml\sax\expatreader.py", line 207, in feed
>> >     self._parser.Parse(data, isFinal)
>> >   File "C:\Python24\Lib\xml\sax\expatreader.py", line 348, in
>> > end_element_ns
>> >     self._cont_handler.endElementNS(pair, None)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.configuration-3.4.0-py2.4.egg\zope\con
>> > figuration\xmlconfig.py", line 357, in endElementNS
>> >     self.context.end()
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.configuration-3.4.0-py2.4.egg\zope\con
>> > figuration\config.py", line 542, in end
>> >     self.stack.pop().finish()
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.configuration-3.4.0-py2.4.egg\zope\con
>> > figuration\config.py", line 690, in finish
>> >     actions = self.handler(context, **args)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.configuration-3.4.0-py2.4.egg\zope\con
>> > figuration\xmlconfig.py", line 546, in include
>> >     processxmlfile(f, context)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.configuration-3.4.0-py2.4.egg\zope\con
>> > figuration\xmlconfig.py", line 378, in processxmlfile
>> >     parser.parse(src)
>> >   File "C:\Python24\Lib\xml\sax\expatreader.py", line 107, in parse
>> >     xmlreader.IncrementalParser.parse(self, source)
>> >   File "C:\Python24\Lib\xml\sax\xmlreader.py", line 123, in parse
>> >     self.feed(buffer)
>> >   File "C:\Python24\Lib\xml\sax\expatreader.py", line 207, in feed
>> >     self._parser.Parse(data, isFinal)
>> >   File "C:\Python24\Lib\xml\sax\expatreader.py", line 348, in
>> > end_element_ns
>> >     self._cont_handler.endElementNS(pair, None)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.configuration-3.4.0-py2.4.egg\zope\con
>> > figuration\xmlconfig.py", line 357, in endElementNS
>> >     self.context.end()
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.configuration-3.4.0-py2.4.egg\zope\con
>> > figuration\config.py", line 542, in end
>> >     self.stack.pop().finish()
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.configuration-3.4.0-py2.4.egg\zope\con
>> > figuration\config.py", line 690, in finish
>> >     actions = self.handler(context, **args)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\z3c.autoinclude-0.2.2-py2.4.egg\z3c\autoinc
>> > lude\zcml.py", line 42, in autoIncludeDirective
>> >     includeZCMLGroup(_context, dist, info, 'configure.zcml')
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\z3c.autoinclude-0.2.2-py2.4.egg\z3c\autoinc
>> > lude\zcml.py", line 30, in includeZCMLGroup
>> >     include(_context, zcmlgroup, includable_package)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.configuration-3.4.0-py2.4.egg\zope\con
>> > figuration\xmlconfig.py", line 546, in include
>> >     processxmlfile(f, context)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.configuration-3.4.0-py2.4.egg\zope\con
>> > figuration\xmlconfig.py", line 378, in processxmlfile
>> >     parser.parse(src)
>> >   File "C:\Python24\Lib\xml\sax\expatreader.py", line 107, in parse
>> >     xmlreader.IncrementalParser.parse(self, source)
>> >   File "C:\Python24\Lib\xml\sax\xmlreader.py", line 123, in parse
>> >     self.feed(buffer)
>> >   File "C:\Python24\Lib\xml\sax\expatreader.py", line 207, in feed
>> >     self._parser.Parse(data, isFinal)
>> >   File "C:\Python24\Lib\xml\sax\expatreader.py", line 348, in
>> > end_element_ns
>> >     self._cont_handler.endElementNS(pair, None)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.configuration-3.4.0-py2.4.egg\zope\con
>> > figuration\xmlconfig.py", line 357, in endElementNS
>> >     self.context.end()
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.configuration-3.4.0-py2.4.egg\zope\con
>> > figuration\config.py", line 542, in end
>> >     self.stack.pop().finish()
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\zope.configuration-3.4.0-py2.4.egg\zope\con
>> > figuration\config.py", line 690, in finish
>> >     actions = self.handler(context, **args)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\grokcore.component-1.6-py2.4.egg\grokcore\c
>> > omponent\zcml.py", line 48, in grokDirective
>> >     do_grok(package.__name__, _context)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\grokcore.component-1.6-py2.4.egg\grokcore\c
>> > omponent\zcml.py", line 53, in do_grok
>> >     config=config
>> >   File
>> > "c:\docume~1\mk\buildo~1\eggs\martian-0.11-py2.4.egg\martian\core.py",
>> > li
>> > ne 201, in grok_dotted_name
>> >     grok_package(module_info, grokker, **kw)
>> >   File
>> > "c:\docume~1\mk\buildo~1\eggs\martian-0.11-py2.4.egg\martian\core.py",
>> > li
>> > ne 206, in grok_package
>> >     grok_package(sub_module_info, grokker, **kw)
>> >   File
>> > "c:\docume~1\mk\buildo~1\eggs\martian-0.11-py2.4.egg\martian\core.py",
>> > li
>> > ne 204, in grok_package
>> >     grok_module(module_info, grokker, **kw)
>> >   File
>> > "c:\docume~1\mk\buildo~1\eggs\martian-0.11-py2.4.egg\martian\core.py",
>> > li
>> > ne 209, in grok_module
>> >     grokker.grok(module_info.dotted_name, module_info.getModule(),
>> >   File
>> > "c:\docume~1\mk\buildo~1\eggs\martian-0.11-py2.4.egg\martian\scan.py",
>> > li
>> > ne 118, in getModule
>> >     self._module = resolve(self.dotted_name)
>> >   File
>> > "c:\docume~1\mk\buildo~1\eggs\martian-0.11-py2.4.egg\martian\scan.py",
>> > li
>> > ne 191, in resolve
>> >     __import__(used)
>> >   File
>> >
>> > "c:\docume~1\mk\buildo~1\eggs\grokui.admin-0.3-py2.4.egg\grokui\admin\doc
>> > grok.py", line 39, in ?
>> >     from zope.app.apidoc.codemodule.module import Module
>> > zope.configuration.xmlconfig.ZopeXMLConfigurationError: File
>> > "E:\vgrok1\grok10a3
>> > \etc\site.zcml.in", line 4.2-4.32
>> >     ZopeXMLConfigurationError: File
>> > "e:\vgrok1\grok10a3\src\grok10a3\configure.z
>> > cml", line 4.2-4.37
>> >     ZopeXMLConfigurationError: File
>> > "c:\docume~1\mk\buildo~1\eggs\grokui.admin-0
>> > .3-py2.4.egg\grokui\admin\configure.zcml", line 5.2-5.27
>> >     ImportError: No module named apidoc.codemodule.module
>> >
>> > -------------------------------------------------------
>> > Any suggestions?
>> >
>> > Thanks
>> > Milind
>> >
>> > On Tue, Apr 14, 2009 at 4:11 PM, Roger Erens <roger.erens at e-s-c.biz>
>> > wrote:
>> >>
>> >> on 14-4-2009 2:44 Milind Khadilkar wrote:
>> >>>
>> >>> Hi,
>> >>> Thanks for your efforts. Despite your efforts, I have so far not been
>> >>> able to get grok10a3 working!
>> >>>
>> >> ...
>> >>>
>> >>> 2. After recreating the virtual environment with the
>> >>> --no-site-packages
>> >>> switch, I manage to create the project, but when I try to run the
>> >>> server, I
>> >>> get the following error:
>> >>> ----
>> >>> (vgrok1) E:\vgrok1\grok10a3>bin\paster.exe serve parts\etc\debug.ini
>> >>> Traceback (most recent call last):
>> >>
>> >> ...
>> >>
>> >>> IOError: [Errno 2] No such file or directory:
>> >>> 'E:\x0bgrok1\\grok10a3/parts/log/access.log'
>> >>> ------
>> >>
>> >> Hi Milind,
>> >>
>> >> This issue bit me too. To continue
>> >>
>> >> edit in E:\vgrok1\grok10a3\parts\etc\deploy.ini (and/or debug.ini)
>> >> the line in the section [handler_accesslog]
>> >> that defines the 'args' variable:
>> >>
>> >> substitute the backslashes by forward slashes
>> >>
>> >> After this, my Zope server was able to start up.
>> >>
>> >> HTH,
>> >>
>> >> Roger
>> >>
>> >
>> >
>> > _______________________________________________
>> > Grok-dev mailing list
>> > Grok-dev at zope.org
>> > http://mail.zope.org/mailman/listinfo/grok-dev
>> >
>> >
>
>


More information about the Grok-dev mailing list