[Zope3-dev] Problems with zope3 on windows

João Paulo Fernandes Farias jpaulofarias at gmail.com
Wed Jul 18 18:08:54 EDT 2007


Steps to reproduce:

1. install python24 from python.org
2. run ez_setup.py to get easy_install
3. run c:\python24\scripts\easy_install grokproject (may need a C
compiler, I used mingw)
4. make a grokproject running: c:\python24\scripts\grokproject sample
5. follow grokproject til it finish
6. try to run "zopectl fg" from ur project bin\ folder

Here's the traceback when I run zopectl fg (may get messy cause copied
from windows terminal...):

E:\work\bgweb2>bin\zopectl.exe debug
Traceback (most recent call last):
  File "E:\work\bgweb2\bin\zopectl-script.py", line 14, in ?
    zc.zope3recipes.ctl.main([
  File "c:\documents and
settings\jp\buildout-eggs\zc.zope3recipes-0.5.3-py2.4.egg\zc\zope3recipes\ctl.py",
line 47, in
main
    zdaemon.zdctl.main(args, None, Cmd)
  File "c:\documents and
settings\jp\buildout-eggs\tmpurp5-h\zdaemon-2.0a6-py2.4.egg\zdaemon\zdctl.py",
line 626, in mai
n
  File "c:\documents and
settings\jp\buildout-eggs\tmpurp5-h\zdaemon-2.0a6-py2.4.egg\zdaemon\zdctl.py",
line 125, in __i
nit__
  File "c:\documents and
settings\jp\buildout-eggs\tmpurp5-h\zdaemon-2.0a6-py2.4.egg\zdaemon\zdctl.py",
line 185, in get
_status
  File "c:\documents and
settings\jp\buildout-eggs\tmpurp5-h\zdaemon-2.0a6-py2.4.egg\zdaemon\zdctl.py",
line 165, in sen
d_action
AttributeError: 'module' object has no attribute 'AF_UNIX'

The other errors came after I "fixed" zdctl.py, method
send_action(self, action) starting at line 161 with this:

        try:
            sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
        except AttributeError:
            # this is not unix maybe?
            return None

I replaced os.spawnlp() with subprocess.call() near line 530 and then
I got it working.

--
JP

On 7/18/07, Benji York <benji at zope.com> wrote:
> João Paulo Fernandes Farias wrote:
> > I'm not sure if this is enough info to get stuff fixed, just wanted to
> > tell about my experiences so far.
>
> Reproduction steps would be helpful, as well as full tracebacks of the
> various exceptions.
>
> > I'm a bit surprised nobody noticed those issues so far, is windows so
> > unpopular in zope3 / grok developers? lol
>
> In a word: yes.
> --
> Benji York
> Senior Software Engineer
> Zope Corporation
>


More information about the Zope3-dev mailing list