[Bug 6177] New: [5.1rc0] ImportError: No module named concurrent. Worked fine with 5.0.

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Thu Jul 25 09:14:46 EDT 2019


https://bz.mercurial-scm.org/show_bug.cgi?id=6177

            Bug ID: 6177
           Summary: [5.1rc0] ImportError: No module named concurrent.
                    Worked fine with 5.0.
           Product: Mercurial
           Version: 5.1rc0
          Hardware: PC
                OS: Other
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: iam at juanfra.info
                CC: mercurial-devel at mercurial-scm.org

I'm trying to clone a repo with the python2 version of mercurial 5.1rc0. Fails
with the error "ImportError: No module named concurrent". 5.0 worked without
the extra module installed.

I've https://pypi.org/project/futures/ installed. I've included a couple of
import lines with python2 as example.


current-amd64$ python2 -c 'import concurrent.futures'
current-amd64$ python2 -c 'from concurrent import futures'
current-amd64$ hg clone https://www.mercurial-scm.org/repo/hg
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 43, in <module>
    dispatch.run()
  File
"/usr/local/lib/python2.7/site-packages/hgdemandimport/demandimportpy2.py",
line 150, in __getattr__
    self._load()
  File
"/usr/local/lib/python2.7/site-packages/hgdemandimport/demandimportpy2.py",
line 94, in _load
    _origimport, head, globals, locals, None, level)
  File
"/usr/local/lib/python2.7/site-packages/hgdemandimport/demandimportpy2.py",
line 43, in _hgextimport
    return importfunc(name, globals, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 22,
in <module>
    from .i18n import _
  File
"/usr/local/lib/python2.7/site-packages/hgdemandimport/demandimportpy2.py",
line 248, in _demandimport
    level=level)
  File
"/usr/local/lib/python2.7/site-packages/hgdemandimport/demandimportpy2.py",
line 43, in _hgextimport
    return importfunc(name, globals, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/mercurial/i18n.py", line 24, in
<module>
    module = pycompat.fsencode(__file__)
  File
"/usr/local/lib/python2.7/site-packages/hgdemandimport/demandimportpy2.py",
line 150, in __getattr__
    self._load()
  File
"/usr/local/lib/python2.7/site-packages/hgdemandimport/demandimportpy2.py",
line 94, in _load
    _origimport, head, globals, locals, None, level)
  File
"/usr/local/lib/python2.7/site-packages/hgdemandimport/demandimportpy2.py",
line 43, in _hgextimport
    return importfunc(name, globals, *args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/mercurial/pycompat.py", line 31,
in <module>
    from .thirdparty.concurrent import futures
  File
"/usr/local/lib/python2.7/site-packages/hgdemandimport/demandimportpy2.py",
line 248, in _demandimport
    level=level)
  File
"/usr/local/lib/python2.7/site-packages/hgdemandimport/demandimportpy2.py",
line 43, in _hgextimport
    return importfunc(name, globals, *args, **kwargs)
ImportError: No module named concurrent

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list