LookupError: unknown encoding: =
Created originally on Bitbucket by jcea (Jesús Cea)
Trying to clone KODI repository (it takes hours), I get this error at the end. The cloning in canceled and I lose all the progress.
The command I use is:
hg clone git://github.com/xbmc/xbmc.git kodi
I am using Mercurial 4.3.1 and hg-git 0.8.9.
The reference to "doczip" seems spurious, the traceback points to hg-git.
jcea@jcea:~/hg$ hg clone git://github.com/xbmc/xbmc.git kodi
importing git objects into hg
importing [====================> ] 22143/50450 38m44s
importing [========================> ] 26644/50450 38m13s
importing [=============================> ] 31738/50450 33m14s
importing [===================================> ] 38251/50450 23m49s
importing [======================================> ] 41308/50450 18m11s
importing [========================================> ] 43108/50450 14m47s
importing [========================================> ] 43588/50450 13m51s
importing [===============================================> ] 49546/50450 1m52s** Unknown exception encountered with possibly-broken third-party extension zipdoc
** which supports versions unknown of Mercurial.
** Please disable zipdoc and try your action again.
** If that fixes the bug please report it to the extension author.
** Python 2.7.13 (default, Jul 1 2017, 14:48:36) [GCC 5.4.0 20160609]
** Mercurial Distributed SCM (version 4.3.1)
** Extensions loaded: strip, mq, convert, graphlog, record, rebase, largefiles, churn, hggit, shelve, share, relink, zipdoc
Traceback (most recent call last):
File "/usr/local/bin/hg", line 45, in <module>
mercurial.dispatch.run()
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 81, in run
status = (dispatch(req) or 0) & 255
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 162, in dispatch
ret = _runcatch(req)
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 302, in _runcatch
return _callcatch(ui, _runcatchfunc)
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 310, in _callcatch
return scmutil.callcatch(ui, func)
File "/usr/local/lib/python2.7/site-packages/mercurial/scmutil.py", line 150, in callcatch
return func()
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 292, in _runcatchfunc
return _dispatch(req)
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 896, in _dispatch
cmdpats, cmdoptions)
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 658, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 904, in _runcommand
return cmdfunc()
File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 893, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1077, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/mercurial/extensions.py", line 322, in closure
return func(*(args + a), **kw)
File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1077, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/hgext/share.py", line 140, in clone
return orig(ui, source, *args, **opts)
File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1077, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/mercurial/extensions.py", line 322, in closure
return func(*(args + a), **kw)
File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1077, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/hgext/largefiles/overrides.py", line 873, in overrideclone
return orig(ui, source, dest, **opts)
File "/usr/local/lib/python2.7/site-packages/mercurial/util.py", line 1077, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/mercurial/commands.py", line 1410, in clone
shareopts=opts.get('shareopts'))
File "/usr/local/lib/python2.7/site-packages/mercurial/extensions.py", line 322, in closure
return func(*(args + a), **kw)
File "/usr/local/lib/python2.7/site-packages/hgext/largefiles/overrides.py", line 876, in hgclone
result = orig(ui, opts, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/mercurial/hg.py", line 631, in clone
streamclonerequested=stream)
File "/usr/local/lib/python2.7/site-packages/mercurial/extensions.py", line 322, in closure
return func(*(args + a), **kw)
File "/usr/local/lib/python2.7/site-packages/hggit/util.py", line 56, in inner
return f(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/hggit/__init__.py", line 343, in exchangepull
pullop.cgresult = repo.githandler.fetch(remote.path, heads)
File "/usr/local/lib/python2.7/site-packages/hggit/git_handler.py", line 275, in fetch
imported = self.import_git_objects(remote_name, filteredrefs)
File "/usr/local/lib/python2.7/site-packages/hggit/git_handler.py", line 783, in import_git_objects
self.import_git_commit(commit)
File "/usr/local/lib/python2.7/site-packages/hggit/git_handler.py", line 902, in import_git_commit
author = self.decode_guess(author, commit.encoding)
File "/usr/local/lib/python2.7/site-packages/hggit/git_handler.py", line 1634, in decode_guess
return string.decode(encoding).encode('utf-8')
LookupError: unknown encoding: =