pythonmacosmercurialhg-git

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/

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

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

It might be important to note that I'm on a Mac not Gnu/Linux or MS-Windows.

Does any one know how to resolve this?


Solution

  • 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"