[Python-apps-team] Bug#842503: mercurial-git: Type error when cloning https

Christophe Troestler Christophe.Troestler at umons.ac.be
Sat Oct 29 19:08:50 UTC 2016


Package: mercurial-git
Version: 0.8.5-4
Severity: important

Dear Maintainer,

The command

    hg clone https://github.com/Chris00/mesh.git

fails with the error message below.  The same happens with mercurial 
3.9.2-1.

** Unknown exception encountered with possibly-broken third-party 
   extension git
** which supports versions 3.7 of Mercurial.
** Please disable git and try your action again.
** If that fixes the bug please report it to 
   https://bitbucket.org/durin42/hg-git/issues
** Python 2.7.12+ (default, Sep  1 2016, 20:27:38) [GCC 6.2.0 20160927]
** Mercurial Distributed SCM (version 3.9.1)
** Extensions loaded: color, hgk, shelve, git
Traceback (most recent call last):
  File "/usr/bin/hg", line 45, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 
  59, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 
  125, in dispatch
    ret = _runcatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 
  204, in _runcatch
    return _dispatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 
  880, in _dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 
  637, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 
  210, in closure
    return func(*(args + a), **kw)
  File "/usr/lib/python2.7/dist-packages/hgext/color.py", line 503, in 
  colorcmd
    return orig(ui_, opts, cmd, cmdfunc)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 
  1010, in _runcommand
    return checkargs()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 
  971, in checkargs
    return cmdfunc()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 
  877, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 1038, 
  in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 
  1608, in clone
    shareopts=opts.get('shareopts'))
  File "/usr/lib/python2.7/dist-packages/mercurial/hg.py", line 602, in 
  clone
    streamclonerequested=stream)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 
  210, in closure
    return func(*(args + a), **kw)
  File "/usr/lib/python2.7/dist-packages/hgext/git/util.py", line 52, in 
  inner
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/git/__init__.py", line 
  331, in exchangepull
    pullop.cgresult = repo.githandler.fetch(remote.path, heads)
  File "/usr/lib/python2.7/dist-packages/hgext/git/git_handler.py", line 
  260, in fetch
    refs = self.fetch_pack(remote, heads)
  File "/usr/lib/python2.7/dist-packages/hgext/git/git_handler.py", line 
  1118, in fetch_pack
    localclient, path = self.get_transport_and_path(remote_name)
  File "/usr/lib/python2.7/dist-packages/hgext/git/git_handler.py", line 
  1617, in get_transport_and_path
    auth = urllib2.HTTPBasicAuthHandler(url.passwordmgr(self.ui))
TypeError: __init__() takes exactly 3 arguments (2 given)



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (900, 'testing'), (400, 'unstable'), (300, 'stable'), 
  (100, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.1 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mercurial-git depends on:
ii  mercurial       3.9.1-1
ii  python-dulwich  0.15.0-1
pn  python:any      <none>

mercurial-git recommends no packages.

mercurial-git suggests no packages.

-- no debconf information



More information about the Python-apps-team mailing list