Bullseye,
Code: Select all
5.7.0-2-amd64 #1 SMP Debian 5.7.10-1 (2020-07-26) x86_64 GNU/Linux
https://www.mercurial-scm.org/
error message when running thg:
Code: Select all
Traceback (most recent call last):
File "./thg", line 52, in <module>
from setup import build_ui
File "~/DATA0/Software_Dev/TortoiseHg/thg new/setup.py", line 30, in <module>
from i18n.msgfmt import Msgfmt
File "~/DATA0/Software_Dev/TortoiseHg/thg new/i18n/msgfmt.py", line 39, in <module>
from mercurial import (
ImportError: No module named mercurial
Code: Select all
which python
/usr/bin/python
hg --version gives
Mercurial Distributed SCM (version 5.4.1)
python --version gives
Python 2.7.18
usr/bin/python points to python2, which points to python2.7
usr/bin/python3 points to python3.8
pyversions -i gives
python2.7
Directories present / not present:
/usr/lib/python3/dist-packages/mercurial
/usr/lib/python2.7/dist-packages/ : no mercurial folder!
/usr/lib/python3.8/ : no dist-packages folder!
So I added this to my .bashrc:
Code: Select all
alias python='/usr/bin/python3'
Python 3.8.5
and the python 3.8 libs also don't have mercurial in them, and I get the same error.
How do I fix this?