zgauthier8286 / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 0 forks source link

Exec format error on main.py #88

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Affected Version: Latest (1.0?)
Environment: Win7-64

What steps will reproduce the problem?
1. Open msysgit Bash
2. Execute curl http://android.git.kernel.org/repo > ./bin/repo
3. Execute ./bin/repo init -u git://github.com/alljoyn/manifest.git

What is the expected output? What do you see instead?

I expect that this would init the manifest repo from that location so I can 
sync based on it, but instead I get the following error:

$ ../bin/repo init -u git://github.com/alljoyn/manifest.git
fatal: unable to start c:\dev\git_poc\.repo\repo/main.py
fatal: [Errno 8] Exec format error

Please provide any additional information below.

I've read that Python must be in your path prior to running this.  I have 
Python27 installed and confirmed that it is in my PATH.  I added it to my path 
as normal under advanced settings in Win7's env variables.

Original issue reported on code.google.com by occ...@gmail.com on 29 Aug 2011 at 6:24

GoogleCodeExporter commented 8 years ago
I am experincing the same error. Win7 64bit, GIT started under Administrator 
account.

Original comment by aredins...@burstly.com on 3 Nov 2011 at 4:53

GoogleCodeExporter commented 8 years ago
I've had some success modifying the repo script's wrapper path around line 556 
to 'c:\apps\Python27\python.exe ' + os.path.abspath(__file__) and changing the 
REPO_MAIN var to REPO_MAIN = "/c/apps/Python27/python.exe " + S_repo + 
'/main.py' around line 85.

This way you specify right in the script where Python.exe is located.

Original comment by occ...@gmail.com on 3 Nov 2011 at 10:59

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
But forall.py script requires fcntl that is available for Unix only:
http://docs.python.org/2.7/library/fcntl.html?highlight=fcntl#fcntl

One solution is to use Cygwin python and Cygwin git.
Drawback: on Windows GUIs on top of git are compliant with the MSysGit, not 
fully compliant with Cygwin simlinks and Cygwin git...

see this post:
http://stackoverflow.com/a/18639953/938111

Original comment by oliver.h...@gmail.com on 5 Sep 2013 at 5:23

GoogleCodeExporter commented 8 years ago
This issue is fixed using Cygwin (1.7) and its own python and git tools.
   => repo script is compliant with Windows

In order to be compliant with MSysGit (and compliant with GUI using MSysGit), 
the environment variable *CYGWIN=winsymlinks:native* can be use to tell Cygwin 
to create native NTFS symlinks (user with Admin privileges).

source: http://stackoverflow.com/a/18652851/938111

Original comment by oliver.h...@gmail.com on 6 Sep 2013 at 2:31