"hg-git" and "hgsubversion" extensions

Dr Rainer Woitok rainer.woitok at gmail.com
Thu Dec 19 10:55:39 UTC 2019


Arne,

On Wednesday, 2019-12-18 20:55:34 +0100, you wrote:

> ...
> > Do I have to set "PYTHONPATH"?  To which value exactly?
> 
> On Gentoo that should include /usr/lib64/python2.7

And what about "/usr/lib64/python3.6/"?  Should that be added too?  Does
order matter in "PYTHONPATH"?

Apropos Python 3.6:  Rumors on the  Gentoo list  have it that the Python
2.7 package will be kicked out  end of this year due to lack of a maint-
ainer.  Is Mercurial meanwhile Python 3 ready?  Could any of the Mercur-
ial developers comment on that?

> ...
> Can you try this?
> 
>     hggit =   /usr/lib64/python2.7/site-packages/hggit/
> 
> (or a subdirectory if this does not work)

Erm,  the only sub-directory below  "/usr/lib64/python2.7/site-packages/
hggit/" is "help/", which doesn't help either:

   $ grep /lib64/ .hgrc
   hggit        = /usr/lib64/python2.7/site-packages/hggit/
   hgsubversion = /usr/lib64/python2.7/site-packages/hgsubversion
   $ hg st
   *** failed to import extension hggit from /usr/lib64/python2.7/site-packages/hggit/: No module named 'gitrepo'
   *** failed to import extension hgsubversion from /usr/lib64/python2.7/site-packages/hgsubversion: No module named 'svncommands'
   M .hgrc
   $ export PYTHONPATH=/usr/lib64/python2.7
   $ hg st
   Fatal Python error: Py_Initialize: Unable to get the locale encoding
     File "/usr/lib64/python2.7/encodings/__init__.py", line 123
       raise CodecRegistryError,\
                               ^
   SyntaxError: invalid syntax

   Current thread 0x00007f6e23fcc740 (most recent call first):
   Aborted
   $

What's going on here?

Sincerely,
  Rainer



More information about the Mercurial mailing list