With Mercurial 2.5, error "abort: No module named repo!"
Created originally on Bitbucket by khirasaki
After upgrading to Mercurial 2.5, my hg operations started failing with the error:
abort: No module named repo!
It seems like there's an import issue with hg-git (hg_git-0.3.2-py2.7.egg). I used "easy_install hg-git", my apologies if this is drawing from a fork/repository different than this one.
#!python
$ hg st --debugger
entering debugger - type c to continue starting hg or h for help
> /Library/Python/2.7/site-packages/mercurial/dispatch.py(87)_runcatch()
-> try:
(Pdb) c
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 87, in _runcatch
try:
File "/Library/Python/2.7/site-packages/mercurial/dispatch.py", line 710, in _dispatch
repo = hg.repository(ui, path=path)
File "/Library/Python/2.7/site-packages/mercurial/hg.py", line 111, in repository
peer = _peerorrepo(ui, path, create)
File "/Library/Python/2.7/site-packages/mercurial/hg.py", line 106, in _peerorrepo
hook(ui, obj)
File "build/bdist.macosx-10.7-intel/egg/hggit/__init__.py", line 91, in reposetup
if not isinstance(repo, gitrepo.gitrepo):
File "/Library/Python/2.7/site-packages/mercurial/demandimport.py", line 86, in __getattribute__
self._load()
File "/Library/Python/2.7/site-packages/mercurial/demandimport.py", line 58, in _load
mod = _origimport(head, globals, locals)
File "build/bdist.macosx-10.7-intel/egg/hggit/gitrepo.py", line 9, in <module>
File "/Library/Python/2.7/site-packages/mercurial/demandimport.py", line 86, in __getattribute__
self._load()
File "/Library/Python/2.7/site-packages/mercurial/demandimport.py", line 58, in _load
mod = _origimport(head, globals, locals)
ImportError: No module named repo
> /Library/Python/2.7/site-packages/mercurial/demandimport.py(58)_load()
-> mod = _origimport(head, globals, locals)
(Pdb) q
abort: No module named repo!