No module named repo

Issue #2090 invalid
Scott Palmer
created an issue

Starting up 2.4.3 for the first time I got an error message for every repo that had sub-repos. It said "No module named repo". Then after clicking through a few of those dialogs I double clicked one of my main repos and got the following error dump:



Mercurial version (2.3). TortoiseHg version (2.4.3) Command: CWD: C:\Windows Encoding: cp1252 Extensions loaded: convert, graphlog, purge, rebase, hgsubversion, mercurial_keyring, extdiff Python version: 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] Windows version: sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1') Processor architecture: x64 ** Qt-4.8.0 PyQt-4.9.1 Traceback (most recent call last): File "tortoisehg\hgqt\workbench.pyo", line 543, in openRepo File "tortoisehg\hgqt\workbench.pyo", line 890, in _openRepo File "tortoisehg\hgqt\thgrepo.pyo", line 53, in repository File "mercurial\hg.pyo", line 104, in repository File "mercurial\hg.pyo", line 99, in _peerorrepo File "C:\Users\scott.palmer\dev\hgsubversion\", line 179, in reposetup File "mercurial\demandimport.pyo", line 86, in getattribute File "mercurial\demandimport.pyo", line 58, in _load File "C:\Users\scott.palmer\dev\hgsubversion\hgsubversion\", line 99, in <module> File "mercurial\demandimport.pyo", line 86, in getattribute__ File "mercurial\demandimport.pyo", line 58, in _load ImportError: No module named repo


Comments (23)

  1. Alex Cyrlex

    Any suggestions on how to deal with this issue? Do we have to update hgsubversion to Mercurial 2.3 compatible version? (the problem is, I have installed hgsubversion using TortoiseHg, and now cannot update it because TortoiseHg does not work...)

    Edit: figured it out:

    1. install previous version of TortoiseHg (I used version 2.3.0)
    2. use it to update hgsubversion repo to latest version
    3. reinstall TortoiseHg 2.4.3
  2. matt wilkie

    Fix recipe:

    1. Start workbench, go to File >> Settings: uncheck hgsubversion >> OK >> restart

    if you can't uncheck hgsubversion: [Edit file] >> comment hgsubversion line(s) >> save [Reload]

    1. Go to your hgsubversion working directory and Pull, then Update.

    2. Go back to settings and re-enable hgsubversion.

    All is good, carry on. :)

  3. Log in to comment