Tortoisehg shelve failed11/25/2023 ![]() ![]() bat files installed into \Python\Scripts. It is possible to add both Dulwich and HgGit into library.zip that is installed along with hg.exe, but for me the best way is to install everything from source including Mercurial and execute commands using. When you specify path to hggit extension in Mercurial.ini, hg tries to import it using direct path, but dulwich library is not imported explicitly by hg and doesn't bundled with its library, so the import fails. Mercurial binary distributions for Windows are 'frozen' - they use the Python code and interpreter bundled with them and therefore independent of packages installed in system PYTHONPATH. So what does that tell me? Importing dulwich fails, but apparently pkg_resources can find it. Is there an additional step I need to take to make it part of the Python "path"?įrom Python command line (as suggested in one of the answers): import pkg_resources This was created by the steps mentioned above. However, under C:\Python25\Lib\site-packages, I do have a dulwich-0.5.0-py2.5.egg folder which appears to be populated. Yields Import Error: No module named dulwich That makes me think dulwich is not installed correctly, or not in the path. Ok, so that tells me that it is finding hggit now, because I can see in hg-git\hggit\git_handler.py that it calls from dulwich.errors import HangupException Now when I run hg, I see: *** failed to import extension hggit from c:\code\hg-git\hggit: No module named dulwich.errors. I cloned the repo, and changed my extensions file to look like: Since that failed, I attempted the "more involved" instructions from the hg-git page that suggested cloning git:///schacon/hg-git.git and referencing the path in my Mercurial configuration. Is this supposed to be extracted somewhere, or should it work as-is? ![]() Looking under my c:\Python25 folder, the only reference to hggit I see is Lib\site-packages\hg_git-0.2.1-py2.5.egg. "*** failed to import extension hggit: No module named hggit" When I type 'hg' at a command prompt, I see: In my C:\Users\username\Mercurial.ini, I have: Now when I run easy_install hg-git, it succeeds (since the dulwich dependency is satisfied). ![]() c:\Python25\python setup.py -pure install.The initial easy_install failed because it was unable to compile dulwich without Visual Studio 2003. I followed the instructions on to install the extension. I'm trying to use the hg-git Mercurial extension on Windows (Windows 7 64-bit, to be specific). ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |