cancel
Showing results for 
Search instead for 
Did you mean: 

Getting source for 5.5 (python troubles)

jana01_
Champ on-the-rise
Champ on-the-rise

Hi!

I am trying to get source for 5.5. I have Python 2.7 under Windows 7 and git version 1.7.9

When trying to execute the clone.py script I am getting:

D:\nuxeo_src_>"C:\Python27\python" clone.py release-5.5
Traceback (most recent call last):
  File "clone.py", line 71, in <module>
    main()
  File "clone.py", line 53, in main
    repo = Repository(os.getcwd(), options.remote_alias)
  File "D:\nuxeo_src_\scripts\nxutils.py", line 45, in __init__
    assert_git_config()
  File "D:\nuxeo_src_\scripts\nxutils.py", line 345, in assert_git_config
    t = check_output(["git", "config", "--get", "color.branch"])
  File "D:\nuxeo_src_\scripts\nxutils.py", line 335, in check_output
    p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
  File "C:\Python27\lib\subprocess.py", line 672, in __init__
    errread, errwrite)
  File "C:\Python27\lib\subprocess.py", line 882, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

I think the problem comes from the scripts not being able to find the git executable at this line:

t = check_output(["git", "config", "--get", "color.branch"])

Still, if I run:

git config --get color.branch

I am getting a result ("auto") fine.

I am completely ignorant when it comes to python scripts and I am out of ideas how to approach this.

Thanks for any help.

1 ACCEPTED ANSWER

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

Just copy/pasting your stack trace in a search engine, found a thread describing a similar issue with similar symptoms there. Last post suggests this might be related to your PATH variable configuration.

View answer in original post

5 REPLIES 5

Anahide_Tchertc
Elite Collaborator
Elite Collaborator

Just copy/pasting your stack trace in a search engine, found a thread describing a similar issue with similar symptoms there. Last post suggests this might be related to your PATH variable configuration.

Thanks, I've just paid attention that git/cmd was on my PATH but git/bin wasn't.

Lregnault_
Champ in-the-making
Champ in-the-making

Hi everyone, I actualy got the same problem, and I can't find the way to fix it. Coul you be more specific on how you fix your problem?

Regards, LR

Vladimir_Pasqui
Star Collaborator
Star Collaborator

Hi,

Can you try to download Python through Cygwin and use it?

I've got Python 2.6 downloaded by Cygwin and everything works.

Thanks

Lregnault_
Champ in-the-making
Champ in-the-making

Hi,

thanks for your respons. I actualy solve this, with running :

>python clone.py release-5.5

instead of:

>pythong clone.py

and it's actually working,but I get another problem for Build the sources. i'am already doing this with python (2.7) throught cigwin (with git env)

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.