Running into sub-process error doing subverison conversion from cvs on windows xp pro

Posted on 2006-05-03
Last Modified: 2010-04-16
I'm in the process of converting CVS to Subverison and when I run the cvs2svn program I get the following python error. Any thoughts? Do I actually need go into my code and change the pipe_cmd subprocess?

Begin Python error:

----- pass 8 -----
Starting Subversion Repository.
Starting Subversion r1 / 16
  New Directory trunk
  New Directory branches
  New Directory tags
Starting Subversion r2 / 16
Committing 212 CVSRevisions
  New Directory trunk/FMS
  New Directory trunk/FMS/server
  New Directory trunk/FMS/server/server_gui
Traceback (most recent call last):
  File "C:\cvs2svn-1.3.0\build\scripts-2.4\cvs2svn", line 4980, in ?
  File "C:\cvs2svn-1.3.0\build\scripts-2.4\cvs2svn", line 4974, in main
    convert(start_pass, end_pass)
  File "C:\cvs2svn-1.3.0\build\scripts-2.4\cvs2svn", line 4606, in convert
  File "C:\cvs2svn-1.3.0\build\scripts-2.4\cvs2svn", line 4492, in pass8
  File "C:\cvs2svn-1.3.0\build\scripts-2.4\cvs2svn", line 3401, in commit
  File "C:\cvs2svn-1.3.0\build\scripts-2.4\cvs2svn", line 3155, in _add_path
    self._invoke_delegates('add_path', SVNCommitItem(cvs_rev, 1))
  File "C:\cvs2svn-1.3.0\build\scripts-2.4\cvs2svn", line 3450, in _invoke_dele
    getattr(delegate, method)(*args)
  File "C:\cvs2svn-1.3.0\build\scripts-2.4\cvs2svn", line 3876, in add_path
    self._add_or_change_path(s_item, OP_ADD)
  File "C:\cvs2svn-1.3.0\build\scripts-2.4\cvs2svn", line 3808, in _add_or_chan
    pipe_cmd, pipe = get_co_pipe(c_rev)
  File "C:\cvs2svn-1.3.0\build\scripts-2.4\cvs2svn", line 384, in get_co_pipe
    pipe = SimplePopen(pipe_cmd, True)
  File "C:\cvs2svn-1.3.0\build\scripts-2.4\cvs2svn", line 83, in __init__
    stdout=subprocess.PIPE, stderr=stderr)
  File "C:\Python24\lib\", line 542, in __init__
    errread, errwrite)
  File "C:\Python24\lib\", line 706, in _execute_child
WindowsError: [Errno 2] The system cannot find the file specified

END python error


Question by:Barton_Day
    LVL 14

    Expert Comment

    It looks like cvs2svn depends on an external program that you don't have.  Could you add the line:

        print "**** '" + pipe_cmd +"' ****"

    in C:\cvs2svn-1.3.0\build\scripts-2.4\cvs2svn at line 384, before the line:

        pipe = SimplePopen(pipe_cmd, True)

    and run it again?  That should tell us the command that it's trying to run.

    Author Comment

    I spoke to a developer more experienced with this code that I am and we're going to look into your idea tomorrow. In the meantime, I'm pasting in the code that I initially compiled using python. Let me know if you see any problems. one thing I do notice is that the first line is based on a *nix machine....could this be a problem? Should we modify the code to reflect the correct paths in a Windows OS?

    Begin code:
    #! \usr\local\wbin\env python

    import os
    import sys
    from distutils.core import setup

    assert sys.version >= '2', "Install Python 2.0 or greater"

    def get_version():
      "Return the version number listed in, or None if can't find one."
      f = open('')
      while 1:
        line = f.readline().strip()
        if line is None:
        if line.find("VERSION=") == 0:
          return line[8:]
      return None

        # Metadata.
        name = "cvs2svn",
        version = get_version(),
        description = "CVS-to-Subversion repository converter",
        author = "The cvs2svn Team",
        author_email = "<>",
        url = "",
        license = "Apache-style",
        # Data.
        packages = ["cvs2svn_rcsparse"],
        scripts = ["cvs2svn"]

    End code

    Thanks again,

    Author Comment

    Sorry...the above code is from the .py file I a test...which did not work. The actual first line of code is as follows: #!/usr/bin/env python

    Sorry for the confusion.

    LVL 14

    Accepted Solution

    I don't think there's anything wrong with  The #! line is ignored on Windows.

    Author Comment

    Sorry for not getting back to this sooner....we opted for another route....thanks for the help RichieHindle!


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    The really strange introduction Once upon a time there were individuals who intentionally put the grass seeds to the soil with anticipation of solving their nutrition problems. Or they maybe only played with seeds and noticed what happened... Som…
    Introduction On September 29, 2012, the Python 3.3.0 was released; nothing extremely unexpected,  yet another, better version of Python. But, if you work in Microsoft Windows, you should notice that the Python Launcher for Windows was introduced wi…
    Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
    Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now