How do I correctly install dulwich to get hg-git working on Cygwin?
- by Erik Vold
I have a similar issue as in this issue, but in my case I am trying to use cygwin.
First I followed the instructions here, and I ran:
$ easy_install hg-git
The I created ~/.hgrc, with:
[extensions]
hgext.bookmarks =
hggit =
Then when I typed 'hg' at a command prompt, I'd see: "* failed to import extension hggit: No module named hggit"
So I did a search for "hggit" and found /cygdrive/c/Python26/Lib/site-packages/hg_git-0.2.1-py2.6.egg/hggit, so I updated .hgrc:
[extensions]
hgext.bookmarks =
hggit = /cygdrive/c/Python26/Lib/site-packages/hg_git-0.2.1-py2.6.egg/hggit
Then when I type 'hg' I get "No module named dulwich.errors"
If you read this question, it's the same problem. In python shell I cannot import dulwich:
>>> import dulwich
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named dulwich
I checked out my easy-install.pth and it does contain the dulwich egg:
import sys; sys.__plen = len(sys.path)
./hg_git-0.2.1-py2.6.egg
./dulwich-0.5.0-py2.6-win32.egg
import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
So how can I fix this so that import dulwich works, which should fix my problem using hg-git I assume..