[Grok-dev] Building grok on windows with Python 2.6?
Alec Munro
alecmunro at gmail.com
Sun Jan 25 11:21:25 EST 2009
Given the dating on those versions, I removed them from
versions.cfg_tmpl, deleted Sample, and ran "grokproject Sample" again.
This time it completed successfully, with no errors whatsoever.
Of course, it couldn't be that simple. :)
Trying to start it:
bin/paster serve etc/deploy.ini
Ends with:
SyntaxError: invalid syntax (site.py, line 241)
I don't have a site.py locally, and investigation seems to indicate
this is from a file belonging to zope.app.component.3.4.1, which has
line 241 as:
(registration.required, ) + registration.with,
And I suppose the syntax error would be "with" as a keyword in 2.6?
Adding the version information back into versions.cfg_tmpl, deleting
and grokprojecting again doesn't have any errors, and I can start it.
I think I will leave my investigation at that for now.
I really hope all windows users don't have this type of trouble trying
to start using Grok. But just in case, where would be the best place
to document my experience? I'll happily file bugs and even try to
debug and patch where I can. I'm in the process of pushing to get Grok
adopted at work, so getting this process stable is pretty valuable to
me.
Thanks for reading,
Alec
On Sun, Jan 25, 2009 at 11:51 AM, Alec Munro <alecmunro at gmail.com> wrote:
> Ok, well I am making progress. Installing Visual C++ 2008 Express (the
> "free" one), seems to allow me to build zope.security.
>
> So far I've seen a couple instances of syntax error complaints, and
> quite a few syntax warnings. I assume this is because of Python 2.6?
> It failed to build, as far as I can tell, ending with "WindowsError:
> [Error 32]", complaining about being unable to access one of the temp
> files used to install, because it was being used by some other
> process. Seems to be the same as the second error here:
> http://www.nabble.com/problem-with-zope.app.testing-during-installation-Grok-on-Windows-XP-td20502104.html
>
> Running bin\buildout.exe seems to have produced a usable installation.
> But I didn't figure that out at first, so I tried the suggestions
> here:
> http://mail.zope.org/pipermail/grok-dev/2008-October/006546.html
>
> That is, I added:
>
> mechanize = 0.1.9
> zope.app.appsetup = 3.8.0
> zope.app.component = 3.5.0
> zope.app.container = 3.6.1
> zope.app.form = 3.6.3
> zope.app.publisher = 3.5.1
> zope.app.testing = 3.5.6
> zope.testbrowser = 3.5.1
>
> to:
>
> file:///C:/Python26/Lib/site-packages/grokproject-1.0a2-py2.6.egg/grokproject/template_paste/versions.cfg_tmpl
>
> Then "ran grokproject Sample" again. Same WindowsError.
>
> Uli, where should I file that bugreport?
>
> Thanks,
> Alec
>
> On Sat, Jan 24, 2009 at 10:02 AM, Uli Fouquet <uli at gnufix.de> wrote:
>> Hi there,
>>
>> Alec Munro wrote:
>>> Running it a few times caused it to move on to a new error:
>>>
>>> Invoking zc.buildout...
>>> Develop: 'C:\\Temp\\Sample\\.'
>>> Installing eggbasket.
>>> Getting distribution for 'zope.app.securitypolicy==3.4.6'.
>>> eggbasket: Distributions are not installed. A tarball will be downloaded.
>>> eggbasket: Distributions are not installed. A tarball will be downloaded.
>>> eggbasket: Downloading http://grok.zope.org/releaseinfo/grok-eggs-1.0a1.tgz ...
>>> eggbasket: Downloading http://grok.zope.org/releaseinfo/grok-eggs-1.0a1.tgz ...
>>> eggbasket: Finished downloading.
>>> eggbasket: Finished downloading.
>>> eggbasket: Extracting tarball contents...
>>> eggbasket: Extracting tarball contents...
>>> eggbasket: No correct tarball found at http://grok.zope.org/releaseinfo/grok-egg
>>> s-1.0a1.tgz.
>>> eggbasket: No correct tarball found at http://grok.zope.org/releaseinfo/grok-egg
>>> s-1.0a1.tgz.
>>> eggbasket: The error was: bad checksum
>>> eggbasket: The error was: bad checksum
>>>
>>> Any idea why I'm getting the duplicate printout?
>>
>> Yep, this is a problem with the zc.buildout loggers (and an annoyance,
>> though). Could you file a bugreport for this?
>>
>> Best regards,
>>
>> --
>> Uli
>>
>>
>
More information about the Grok-dev
mailing list