• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 548
  • Last Modified:

Newby question on running Python on a Windows XP Pro machine

Okay…first off forgive me for my ignorance before I ask this question as I’m brand new to Python. I’m attempting to run a program called cvs2svn on a windows XP Pro box. The instructions call for installing Python, which I did, and then running a MAKE INSTALL on the downloaded Setup.py file. Well, I realize that being a Windows machine I’m not going to use MAKE INSTALL, maybe that’s where I’ve gone wrong. Instead, I used the “python setup.py install” option, which ran without error. Well, the compile ran and inside the scripts directory exists the name of a file that I think I now need: cvs2svn. However, it does not appear with a file extension, especially not an executable file extension, as I thought it should.  There does exist a new file that has the same time stamp as when I ran the initial “python setup.py install” option. The extension to this file is a .pyc file…..I have no idea how to run this file.

Any help would be greatly appreciated……

Bart

0
Barton_Day
Asked:
Barton_Day
  • 2
  • 2
1 Solution
 
efnCommented:
I suspect cvs2svn is a script written for UNIX.  Does it look like a text file?  If it's short enough, can you post its contents?
0
 
RichieHindleCommented:
Python files don't need to have a .py extension, so if it's a Python file you can just run it using:

c:\path\to\python c:\path\to\cvs2svn

It probably is a Python script (because cvs2svn is written in Python) but efn is right - if you post the file (or the first few tens of lines if it's big) and that will tell us what kind of file it is.
0
 
Barton_DayAuthor Commented:
Well the c:\path\to\python c:\path\to\cvs2svn syntax worked like a charm...and I really dont know why cause I could have sworn I tried that yesterday....but nonetheless it is working now. However, after the cvs2svn file executes, at the very end I get an error when the program tries to envoke Sort -T. I've downloaded then win32 based programs that *nix machines use, i.e. env, sort, etc. and my PATH is set to C:\usr\local\wbin.....so dont know why Sort -T fails to run. But, that is beyond the scope of this particular forum.....however....if anyone has a quick suggestion here is the error I recieve after cvs2svn runs the first part of its code:

-----------------------------------------------------------------------------------------
Checking for blocked exclusions...
Checking for forced tags with commits...
Checking for tag/branch mismatches...
Re-synchronizing CVS revision timestamps...
Done
----- pass 3 -----
Sorting CVS revisions...
Input file specified two times.

Command failed: "sort -T . .\cvs2svn-data.c-revs > .\cvs2svn-data.s-revs"

---------------------------------------------------------------------------------------------

Thansk again for all of your help....

Bart


0
 
RichieHindleCommented:
What happens if you type "sort" at the Command Prompt - does it actually find your sort program?  ("sort --help" or "sort --version" might be useful as well.)

Does the input file "cvs2svn-data.c-revs" exist?

"Input file specified two times." sounds like an error - maybe Google can help?
0
 
Barton_DayAuthor Commented:
Got this running as well.....ran the python program directly out of my GNU sort.exe directory.....

Thanks,

Bart
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now