Feb-27-2021, 10:30 AM
'm using Windows 10 and have Cygwin and MobaXterm installed. I need to use Mercurial. It works fine from Cygwin but I want to run it from MobaXterm. I just installed Mercurial plugin for MobaXterm and it claimed that it should run with Python 2.7 In my case I have both Python 3 and Python 2. MobaXterm does not see Python 2. Here's my environment:
MobaXterm:
~/Desktop @ BOS-LTIRM181511
| => which hg
hg is aliased to `/bin/hg'
hg is /bin/hg
hg is /drives/c/MobaXterm/slash/bin/hg
✔
________________________________________________________________________________
| ~/Desktop @ BOS-LTIRM181511
| => which python
python is aliased to `ToolNotIncluded python'
✔
________________________________________________________________________________
| ~/Desktop @ BOS-LTIRM181511
| => which python3
python3 is /bin/python3
python3 is /drives/c/MobaXterm/slash/bin/python3
✔
________________________________________________________________________________
| ~/Desktop @ BOS-LTIRM181511
| => /cygdrive/c/Python27/python --version
Python 2.7.15
✔
________________________________________________________________________________
| ~/Desktop @ BOS-LTIRM181511
| =>
----
Cygwin:
$ hg --version
Mercurial Distributed SCM (version 5.0.2)
(see https://mercurial-scm.org for more information)
Copyright © 2005-2019 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
user@BOS-LTIRM181511 /usr/bin
$ which hg
hg is /usr/bin/hg
hg is /usr/bin/hg
user@BOS-LTIRM181511 /usr/bin
$ which python
python is /usr/bin/python
python is /cygdrive/c/Python27/python
python is /usr/bin/python
user@BOS-LTIRM181511 /usr/bin
$ which python3
-bash: type: python3: not found
user@BOS-LTIRM181511 /usr/bin
$ /cygdrive/c/Python27/python --version
Python 2.7.15
How could I fix it and make Mercurial run from MobaXterm?
P.S.
I created an alias to python and now from MobaXterm I could run: => python --version Python 2.7.15 But still I have the same error: => hg --version bash: /bin/hg: /bin/python: bad interpreter: No such file or directory Any help?
Thanks
MobaXterm:
~/Desktop @ BOS-LTIRM181511
| => which hg
hg is aliased to `/bin/hg'
hg is /bin/hg
hg is /drives/c/MobaXterm/slash/bin/hg
✔
________________________________________________________________________________
| ~/Desktop @ BOS-LTIRM181511
| => which python
python is aliased to `ToolNotIncluded python'
✔
________________________________________________________________________________
| ~/Desktop @ BOS-LTIRM181511
| => which python3
python3 is /bin/python3
python3 is /drives/c/MobaXterm/slash/bin/python3
✔
________________________________________________________________________________
| ~/Desktop @ BOS-LTIRM181511
| => /cygdrive/c/Python27/python --version
Python 2.7.15
✔
________________________________________________________________________________
| ~/Desktop @ BOS-LTIRM181511
| =>
----
Cygwin:
$ hg --version
Mercurial Distributed SCM (version 5.0.2)
(see https://mercurial-scm.org for more information)
Copyright © 2005-2019 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
user@BOS-LTIRM181511 /usr/bin
$ which hg
hg is /usr/bin/hg
hg is /usr/bin/hg
user@BOS-LTIRM181511 /usr/bin
$ which python
python is /usr/bin/python
python is /cygdrive/c/Python27/python
python is /usr/bin/python
user@BOS-LTIRM181511 /usr/bin
$ which python3
-bash: type: python3: not found
user@BOS-LTIRM181511 /usr/bin
$ /cygdrive/c/Python27/python --version
Python 2.7.15
How could I fix it and make Mercurial run from MobaXterm?
P.S.
I created an alias to python and now from MobaXterm I could run: => python --version Python 2.7.15 But still I have the same error: => hg --version bash: /bin/hg: /bin/python: bad interpreter: No such file or directory Any help?
Thanks