Issue #172 resolved

ImportError: cannot import name commit

Anonymous created an issue

{{{

!python

Please report this bug to http://bitbucket.org/tortoisehg/thg/issues Mercurial version (1.8). TortoiseHg version (2.0) Command: --nofork workbench CWD: D:\Work\BR2.2 Extensions loaded: fixfrozenexts, convert, churn, hgk, rebase, purge, filereview, fold Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] Windows version: (5, 1, 2600, 2, 'Service Pack 3') Processor architecture: x86 ** Qt-4.7.1 PyQt-4.8.2 Traceback (most recent call last): File "tortoisehg\hgqt\run.pyo", line 55, in dispatch File "tortoisehg\hgqt\run.pyo", line 228, in _runcatch File "tortoisehg\hgqt\run.pyo", line 298, in runcommand File "tortoisehg\hgqt\run.pyo", line 349, in _runcommand File "tortoisehg\hgqt\run.pyo", line 303, in checkargs File "tortoisehg\hgqt\run.pyo", line 297, in <lambda> File "mercurial\util.pyo", line 433, in check File "tortoisehg\hgqt\run.pyo", line 645, in log File "tortoisehg\hgqt\workbench.pyo", line 20, in <module> File "tortoisehg\hgqt\repowidget.pyo", line 21, in <module> File "tortoisehg\hgqt\backout.pyo", line 16, in <module> File "tortoisehg\hgqt\commit.pyo", line 20, in <module> File "tortoisehg\hgqt\sync.pyo", line 22, in <module> File "tortoisehg\hgqt\rebase.pyo", line 17, in <module> ImportError: cannot import name commit

}}}

Comments (8)

  1. Anonymous

    Ran again from start menu and got the same result.

    ** Please report this bug to http://bitbucket.org/tortoisehg/thg/issues
    ** Mercurial version (1.8).  TortoiseHg version (2.0)
    ** Command: 
    ** CWD: C:\Documents and Settings\mbennett# \My Documents
    ** Extensions loaded: fixfrozenexts, convert, churn, hgk, rebase, purge, filereview, fold
    ** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)]
    ** Windows version: (5, 1, 2600, 2, 'Service Pack 3')
    ** Processor architecture: x86
    ** Qt-4.7.1 PyQt-4.8.2
    Traceback (most recent call last):
      File "tortoisehg\hgqt\run.pyo", line 55, in dispatch
      File "tortoisehg\hgqt\run.pyo", line 228, in _runcatch
      File "tortoisehg\hgqt\run.pyo", line 298, in runcommand
      File "tortoisehg\hgqt\run.pyo", line 349, in _runcommand
      File "tortoisehg\hgqt\run.pyo", line 303, in checkargs
      File "tortoisehg\hgqt\run.pyo", line 297, in <lambda>
      File "mercurial\util.pyo", line 433, in check
      File "tortoisehg\hgqt\run.pyo", line 645, in log
      File "tortoisehg\hgqt\workbench.pyo", line 20, in <module>
      File "tortoisehg\hgqt\repowidget.pyo", line 21, in <module>
      File "tortoisehg\hgqt\backout.pyo", line 16, in <module>
      File "tortoisehg\hgqt\commit.pyo", line 20, in <module>
      File "tortoisehg\hgqt\sync.pyo", line 22, in <module>
      File "tortoisehg\hgqt\rebase.pyo", line 17, in <module>
    ImportError: cannot import name commit
    
  2. Serious

    I have repaired, uninstalled and reinstalled and restarted several times to no avail. I now have to downgrade back to 1.1.9

    All operations fail, this is from an attempt to open sync:

    ** Please report this bug to http://bitbucket.org/tortoisehg/thg/issues
    ** Mercurial version (1.8).  TortoiseHg version (2.0)
    ** Command: --nofork synch
    ** CWD: D:\Work\DataWarehouse
    ** Extensions loaded: fixfrozenexts, convert, churn, hgk, rebase, purge, filereview, fold
    ** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)]
    ** Windows version: (5, 1, 2600, 2, 'Service Pack 3')
    ** Processor architecture: x86
    ** Qt-4.7.1 PyQt-4.8.2
    Traceback (most recent call last):
      File "tortoisehg\hgqt\run.pyo", line 55, in dispatch
      File "tortoisehg\hgqt\run.pyo", line 228, in _runcatch
      File "tortoisehg\hgqt\run.pyo", line 298, in runcommand
      File "tortoisehg\hgqt\run.pyo", line 349, in _runcommand
      File "tortoisehg\hgqt\run.pyo", line 303, in checkargs
      File "tortoisehg\hgqt\run.pyo", line 297, in <lambda>
      File "mercurial\util.pyo", line 433, in check
      File "tortoisehg\hgqt\run.pyo", line 630, in sync
      File "tortoisehg\hgqt\sync.pyo", line 22, in <module>
      File "tortoisehg\hgqt\rebase.pyo", line 17, in <module>
      File "tortoisehg\hgqt\commit.pyo", line 20, in <module>
    ImportError: cannot import name loadIniFile
    
  3. Steve Borho

    It appears that one of the extensions is disabling demandimport. My guess is that is filereview, since I've never heard of it. And it's exposing import loops.

  4. Serious

    In the meantime, yes, by right clicking the repo and selecting settings and editing the config file directly I was able to remove all the extensions to regain use of the workbench. Thanks Steve, great to be using 2.0 like the rest of my team now :)

  5. Log in to comment