schacon / hg-git

mercurial to git bridge, pushed to directly from the hg-git plugin in Hg
GNU General Public License v2.0
621 stars 71 forks source link

2015-09-26 dulwich still has NotImplementedError(self.send_pack) #307

Open wrmbaron opened 9 years ago

wrmbaron commented 9 years ago

I got this error with the current (2015-09-26) modules from the ubuntu vivid package system while trying to pull and clone git repositories using git+https. Then I searched the internet for problems like this and only came up with relatively old discussions. So I uninstalled the dulwich and hg-git packages to try out current packages using pip. That did not work either. I tried out several versions ranging from 0.9.1 upto the current dulwich-0.11.2 and hg_git-0.8.2. I have not found any working combination. This is the output of the current versions, using hg 3.1.5:

$ hg clone git+https://code.qt.io/cgit/qt-creator/qt-creator.git destination directory: qt-creator * Unknown exception encountered with possibly-broken third-party extension git * which supports versions 3.1 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.9 (default, Apr 2 2015, 15:33:21) [GCC 4.9.2] * Mercurial Distributed SCM (version 3.1.2) * Extensions loaded: convert, graphlog, git, purge, strip, mq, rebase Traceback (most recent call last): File "/usr/bin/hg", line 43, in mercurial.dispatch.run() File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 28, in run sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255) File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 69, in dispatch ret = _runcatch(req) File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 138, in _runcatch return _dispatch(req) File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 839, in _dispatch cmdpats, cmdoptions) File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 600, in runcommand ret = _runcommand(ui, options, cmd, d) File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 930, in _runcommand return checkargs() File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 901, in checkargs return cmdfunc() File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 836, in d = lambda: util.checksignature(func)(ui, _args, _cmdoptions) File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 550, in check return func(_args, _kwargs) File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 1331, in clone branch=opts.get('branch')) File "/usr/lib/python2.7/dist-packages/mercurial/hg.py", line 402, in clone destpeer.local().clone(srcpeer, heads=revs, stream=stream) File "/usr/lib/python2.7/dist-packages/mercurial/localrepo.py", line 1730, in clone return self.pull(remote, heads) File "/usr/local/lib/python2.7/dist-packages/hggit/util.py", line 48, in inner return f(_args, _kwargs) File "/usr/local/lib/python2.7/dist-packages/hggit/hgrepo.py", line 16, in pull return self.githandler.fetch(remote.path, heads) File "/usr/local/lib/python2.7/dist-packages/hggit/git_handler.py", line 245, in fetch refs = self.fetch_pack(remote, heads) File "/usr/local/lib/python2.7/dist-packages/hggit/git_handler.py", line 1103, in fetch_pack f.write, progress.progress) File "/usr/local/lib/python2.7/dist-packages/dulwich/client.py", line 1072, in fetch_pack raise NotImplementedError(self.send_pack) NotImplementedError: <bound method HttpGitClient.send_pack of HttpGitClient('https://code.qt.io/cgit/> > qt-creator/qt-creator.git/', dumb=True)>