#18 new
zjs2k

Path error in DOS/Windows

Reported by zjs2k | December 3rd, 2009 @ 07:09 AM

Under MS Windows (I use Vista x64), the escape of the '' in Windows path is wrong.

To recreate the error:
First, set 'zope2-location' in 'instance' of buildout to 'C:\Zope\2.10.5\Zope'. Run the buildout, then run roadrunner to get the following error:

C:\Zope\release1>bin\roadrunner -s mysite.policy
Traceback (most recent call last):
File "C:\Zope\release1\bin\roadrunner-script.py", line 149, in ?

import roadrunner.runner

File "h:\zope\plonefiles\eggs\roadrunner-0.2.3.1-py2.4.egg\roadrunner\runner.py", line 4, in ?

from roadrunner import testrunner

File "h:\zope\plonefiles\eggs\roadrunner-0.2.3.1-py2.4.egg\roadrunner\testrunner.py", line 2048, in ?

from zope.testing import doctest

ImportError: No module named zope.testing

Add a pdb debugger in testrunner.py before the import and check sys.path. The last entry is 'c:\Zope\x02.10.5\Zope/lib/python' (note the mistake in the path: Zope\x02.10.5...).

Next change the zope2-location of 'instance' in buildout and use forward slash '/' only: c:/Zope/2.10.5/Zope. Now new error comes:

C:\Zope\release1>bin\roadrunner
elease1\parts\roadrunner\etc\zope.conf: [Errno 2] No such file or directory: 'C:\Zope\release1\parts\roadrunner\etc\zope.conf'
For help, use C:\Zope\release1\bin\roadrunner-script.py -h

Note the single back slash in 'C:\Zope\release1\...'. The '\release1' string escapes the 'r', so roadrunner is looking for 'elease1\parts...' instead of 'release1\part...'.

Unless I still miss something, I believe this is a bug in roadrunner for DOS/Windows support.

Comments and changes to this ticket

  • zjs2k

    zjs2k December 3rd, 2009 @ 07:15 AM

    Oops, apparently, this web form takes away backslash too, which makes it hard to understand. Let's try the code format:

    Under MS Windows (I use Vista x64), the escape of the '' in Windows path is wrong.


    To recreate the error: First, set 'zope2-location' in 'instance' of buildout to 'C:\Zope\2.10.5\Zope'. Run the buildout, then run roadrunner to get the following error:


    C:\Zope\release1>bin\roadrunner -s mysite.policy Traceback (most recent call last): File "C:\Zope\release1\bin\roadrunner-script.py", line 149, in ?

    import roadrunner.runner
    
    
    
    
    File "h:\zope\plonefiles\eggs\roadrunner-0.2.3.1-py2.4.egg\roadrunner\runner.py", line 4, in ?
    from roadrunner import testrunner
    
    
    
    
    File "h:\zope\plonefiles\eggs\roadrunner-0.2.3.1-py2.4.egg\roadrunner\testrunner.py", line 2048, in ?
    from zope.testing import doctest
    
    
    
    
    ImportError: No module named zope.testing
    Add a pdb debugger in testrunner.py before the import and check sys.path. The last entry is 'c:\Zope\x02.10.5\Zope/lib/python' (note the mistake in the path: Zope\x02.10.5...).
    Next change the zope2-location of 'instance' in buildout and use forward slash '/' only: c:/Zope/2.10.5/Zope. Now new error comes:
    C:\Zope\release1>bin\roadrunner elease1\parts\roadrunner\etc\zope.conf: [Errno 2] No such file or directory: 'C:\Zope\release1\parts\roadrunner\etc\zope.conf' For help, use C:\Zope\release1\bin\roadrunner-script.py -h
    Note the single back slash in 'C:\Zope\release1\...'. The '\release1' string escapes the 'r', so roadrunner is looking for 'elease1\parts...' instead of 'release1\part...'.
    Unless I still miss something, I believe this is a bug in roadrunner for DOS/Windows support.
  • zjs2k

    zjs2k December 3rd, 2009 @ 07:20 AM

    Dang, it doesn't work. This form seems eating away individual backslash and turning double backslash to a single one. But I hope you may already know what I meant.

  • zjs2k

    zjs2k December 6th, 2009 @ 12:17 PM

    Looks like it is not just about the path. I have the feeling that the roadrunner does not work with Windows at all. I think Windows doesn't support SIGCHLD or fork, which is required by roadrunner. I suppose there is no easy fix here. Too bad.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages