Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

"No module named ignore" #308

Closed
bcmills opened this issue Oct 14, 2015 · 3 comments
Closed

"No module named ignore" #308

bcmills opened this issue Oct 14, 2015 · 3 comments

Comments

@bcmills
Copy link

bcmills commented Oct 14, 2015

After upgrading the local packages on my Debian machine, hg-git no longer works.

I'm using the Debian Python package, but hg-git installed via easy_install:

bryan@brahms:~$ hg pull
*** failed to import extension hggit: No module named ignore
** unknown exception encountered, please report by visiting
** http://mercurial.selenic.com/wiki/BugTracker
** Python 2.7.10 (default, Sep 13 2015, 20:30:50) [GCC 5.2.1 20150911]
** Mercurial Distributed SCM (version 3.5.2)
** Extensions loaded: convert
Traceback (most recent call last):
  File "/usr/bin/hg", line 43, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 30, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 92, in dispatch
    ret = _runcatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 163, in _runcatch
    return _dispatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 862, in _dispatch
    repo = hg.repository(ui, path=path)
  File "/usr/lib/python2.7/dist-packages/mercurial/hg.py", line 136, in repository
    peer = _peerorrepo(ui, path, create)
  File "/usr/lib/python2.7/dist-packages/mercurial/hg.py", line 123, in _peerorrepo
    obj = _peerlookup(path).instance(ui, path, create)
  File "/usr/lib/python2.7/dist-packages/mercurial/hg.py", line 93, in _peerlookup
    return thing(path)
  File "/usr/local/lib/python2.7/dist-packages/hg_git-0.8.1-py2.7.egg/hggit/__init__.py", line 84, in _local
    p = urlcls(path).localpath()
TypeError: 'NoneType' object is not callable
bryan@brahms:~✘ sudo easy_install hg-git
Searching for hg-git
Best match: hg-git 0.8.1
Processing hg_git-0.8.1-py2.7.egg
hg-git 0.8.1 is already the active version in easy-install.pth

Using /usr/local/lib/python2.7/dist-packages/hg_git-0.8.1-py2.7.egg
Processing dependencies for hg-git
Finished processing dependencies for hg-git
@bcmills
Copy link
Author

bcmills commented Oct 14, 2015

@ches
Copy link

ches commented Oct 14, 2015

AFAICT this is already fixed in hg-git 0.8.2, I had this issue and upgrading fixed it. 0.8.2 is released on PyPi, not sure why easy_install wasn't giving it to you but you may need to add the -U flag to get it to try to upgrade:

$ sudo easy_install -U hg-git

Of course, pip is usually a more pleasant experience overall 😄

@durin42
Copy link
Collaborator

durin42 commented Oct 14, 2015

Yep, this is fixed by 0.8.2.

Also, prefer the bitbucket issue tracker to this one.

@durin42 durin42 closed this as completed Oct 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants