Getting Nuxeo 5.5 source code
I used the instructions to get Nuxeo 5.5 source code from Github (http://doc.nuxeo.com/display/CORG/Getting+the+Nuxeo+source+code) :
I installed Git client
I ran the following commands :
git clone git://github.com/nuxeo/nuxeo.git
git checkout master
Till now it worked But when I try to retrieve the release 5.5 with the following python command it fails : python clone.py release-5.5
It return the following exception :
**File "clone.py", line 65 except ExitException, e: ^ SyntaxError: invalid syntax**
I made the test under Windows (7 64 Bits) and Linux (CentOS 5.8 64 Bits) and the result is the same. Any idea?
Which Python version did you install? We recommend to install Python 2.7.x.
Traceback (most recent call last): File "clone.py", line 74, in <module> main() File "clone.py", line 56, in main repo = Repository(os.getcwd(), options.remote_alias) File "c:\LDT\Projects\Nuxeo\sources\nuxeo\scripts\nxutils.py", line 45, in __init__ assert_git_config() File "c:\LDT\Projects\Nuxeo\sources\nuxeo\scripts\nxutils.py", line 356, in assert_git_config t = check_output(["git", "config", "--get", "color.branch"]) File "c:\LDT\Projects\Nuxeo\sources\nuxeo\scripts\nxutils.py", line 346, in check_output p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE) File "C:\LDT\Softs\Python-2.7.3\lib\subprocess.py", line 679, in __init__errread, errwrite) File "C:\LDT\Softs\Python-2.7.3\lib\subprocess.py", line 896, in _execute_child startupinfo) WindowsError: [Error 2] Le fichier spÚcifiÚ est introuvable`
Ok. This one is a very different issue, Windows specific. It may happen for various reasons, the most common one being a PATH issue with a conflict between multiple Git versions.
Check you don't have Cygwin in your PATH or at least, it is at the end of the PATH. The Git client you installed separately must be the one used by the script clone.py.<br/> If that doesn't fix the issue, then please fill another dedicated question but first look at the following existing answers found by Google search "Nuxeo python subprocess.Popen":
If you work on Windows with MSysGit, you will also encounter a message saying that .git can't be found while trying to run clone.py. In that case, go for version 5.7 that provides a workaround with option –no_drive_mapping. See the documentation update in Getting the Nuxeo source code