Mercurial error *** failed to import extension hggit: No module named hggit

Stofke picture Stofke · Feb 27, 2011 · Viewed 20.2k times · Source

I installed Mercurial on my Mac, and it's wonderful. For me it's easier to grasp than Git so I wanted to use it to manage git-repositories. Therefore I installed hg-git with the following instructions:

http://hg-git.github.com/

But each time I issue a hg command it returns this error message:

  Mercurial error *** failed to import extension hggit: No module named hggit 

I'd might be important to note that I'm on a Mac not a Windows PC.

Does any know how to resolve this

Answer

pmc picture pmc · Oct 5, 2012

Note for ubuntu users who install the "mercurial-git" package to get the hggit module on 12.04 some bright spark randomly renamed the module to just "git" so you need to change your ~/.hgrc to look something like

[extensions]
hgext.bookmarks =
git =