Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 809
Stofke Avatar asked Feb 27 '11 14:02

Stofke


2 Answers

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 = 
like image 199
pmc Avatar answered Sep 20 '22 06:09

pmc


After installing hg-git with the following command:

easy_install hg-git 

Does the following work?

python -c "import hggit" 

What does this say for you:

head -n1 `which hg` 

The point of the latter command is to verify that the Python hg runs under has hggit installed. In my case it says '#!/usr/bin/python', which is my standard python command.

What does this say:

/opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.a­pp/Contents/MacOS/Python -c "import hggit" 
like image 42
aknuds1 Avatar answered Sep 23 '22 06:09

aknuds1