felipec / git-remote-hg

Transparent bidirectional bridge between Git and Mercurial for Git
GNU General Public License v2.0
369 stars 87 forks source link

Cannot clone a mercurial repository: "env: python2: No such file or directory" #23

Closed MacDada closed 10 years ago

MacDada commented 10 years ago
macdada$ ls -alh /usr/local/bin/git-remote-hg

lrwxr-xr-x  1 macdada  admin    37B May  7 13:42 /usr/local/bin/git-remote-hg -> ../Cellar/git/1.9.2/bin/git-remote-hg

macdada$ git --version
git version 1.9.2

macdada$ hg --version
Mercurial Distributed SCM (version 3.0)

macdada$ git clone "hg::https://MacDada@bitbucket.org/kwi/urllinker"
Cloning into 'urllinker'...
env: python2: No such file or directory

I also tried to just add it as a remote, same problem.

macdada$ mkdir UrlLinker && cd UrlLinker

macdada$ git init
Initialized empty Git repository in /Users/macdada/Documents/programowanie/forks/UrlLinker/.git/

macdada$ git remote add upstream "hg::https://MacDada@bitbucket.org/kwi/urllinker"

macdada$ git fetch upstream
env: python2: No such file or directory
MacDada commented 10 years ago

NVM: It was my env error – no "python2" binary ;-)

Hacky solution: ln -s /usr/bin/python2.7 /usr/local/bin/python2

MacDada commented 10 years ago

I also had to install python's mercurial module: sudo easy_install -U mercurial