Skip to content

Instantly share code, notes, and snippets.

@alexreg
Created September 13, 2013 00:32
Show Gist options
  • Save alexreg/6545582 to your computer and use it in GitHub Desktop.
Save alexreg/6545582 to your computer and use it in GitHub Desktop.
return func(*args, **kwargs)
File "/usr/local/Cellar/mercurial/2.7.1/lib/python2.7/site-packages/mercurial/commands.py", line 4694, in push
newbranch=opts.get('new_branch'))
File "/Users/alex/Projects/hg-git/hggit/hgrepo.py", line 22, in push
return git.push(remote.path, revs, force)
File "/Users/alex/Projects/hg-git/hggit/git_handler.py", line 277, in push
old_refs, new_refs = self.upload_pack(remote, revs, force)
File "/Users/alex/Projects/hg-git/hggit/git_handler.py", line 891, in upload_pack
new_refs = client.send_pack(path, changed, genpack)
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dulwich-0.9.1-py2.7-macosx-10.8-x86_64.egg/dulwich/client.py", line 445, in send_pack
proto, unused_can_read = self._connect('receive-pack', path)
File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dulwich-0.9.1-py2.7-macosx-10.8-x86_64.egg/dulwich/client.py", line 801, in _connect
con = get_ssh_vendor().run_command(
AttributeError: '_Vendor' object has no attribute 'run_command'
Copy link

ghost commented Sep 25, 2013

Just had this problem with hg-git.
The solution for me was to downgrade dulwich to 0.9.0:

sudo easy_install -m dulwich
sudo easy_install dulwich==0.9.0

@rail44
Copy link

rail44 commented Sep 30, 2013

Nice tip.
Thank you!

@eblot
Copy link

eblot commented Nov 7, 2013

Thanks!

@viacoban
Copy link

worked, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment