can't use change set with hg 5.4

9 views
Skip to first unread message

Uwe Brauer

unread,
Dec 26, 2020, 3:14:50 PM12/26/20
to hg-git

Hi

I upgraded to hg version 5.4+1-9210b94b16a8
checked again the README.md file
current change set is 1e55cf771b98

But I obtain the following error
when running any hg command
failed to import extension hggit from /home/oub/ALLES/src/hg-git-heptapod/hggit: No module named 'dulwich'

That is not good, I will return to hg 5.2

Regards

Uwe Brauer

Dan Villiom Podlaski Christiansen

unread,
Dec 26, 2020, 4:27:49 PM12/26/20
to hg-...@googlegroups.com
I'm not sure what OS or package distribution you're using, but presumably upgrading Mercurial somehow changed the Python interpreter or package path so that Dulwich is no longer available. (My best guess is that the upgrade changed Mercurial to use Python 3.) You can check how Mercurial is installed using the `hg debuginstall` command. Then, install Dulwich into the relevant path using either your package manager or Pip.

To clarify, “dulwich” is the sole requirement of hg-git, and has been so for years, if not always.

--

Dan Villiom Podlaski Christiansen
dan...@gmail.com+45 2728 9771

Uwe Brauer

unread,
Dec 27, 2020, 2:48:14 AM12/27/20
to Dan Villiom Podlaski Christiansen, hg-...@googlegroups.com
Oops sorry. I am on Ubuntu 16.04, which might be part of the problem.
Its corresponding python version is 3.5 which is not really supported by
more recent hg version. So I followed the advice of Marcin Kasperski to
compile it with python 2.7 by

Replacing


export PYTHON=python3

By
export PYTHON=python

That might have caused the dulwich problem. On the other hand I use
still some extension that have not been exported to python3 and that is
why I want in principle to stick with hg-5.2 till I am forced to
upgrade.

So in other words, ignore my message for the moment.

regards
Reply all
Reply to author
Forward
0 new messages