https://bz.mercurial-scm.org/show_bug.cgi?id=5460
Bug ID: 5460 Summary: AttributeError: 'module' object has no attribute 'Cmd' Product: Mercurial Version: 3.7.3 Hardware: PC OS: Linux Status: UNCONFIRMED Severity: bug Priority: wish Component: Mercurial Assignee: bugzi...@mercurial-scm.org Reporter: carballoj...@gmail.com CC: mercurial-de...@selenic.com When trying to pull from a repository using TortoiseHG v3.7.3 in Ubuntu 16.04, I get the "AttributeError: 'module' object has no attribute 'Cmd'" error. I've search a lot and it all comes down to file commands.py in Mercurial conflicting with commands.py in Python: /usr/lib/python2.7/commands.py /usr/lib/python2.7/dist-packages/mercurial/commands.py I think you need to change the name of commands.py to something more specific to avoid conflicts. Try mercurialcommands.py. TRACE ** Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] ** Mercurial Distributed SCM (version 3.7.3) ** Extensions loaded: 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 54, in run sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255) File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 120, in dispatch ret = _runcatch(req) File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 144, in _runcatch 'pdb' : pdb.set_trace File "/usr/lib/python2.7/dist-packages/mercurial/demandimport.py", line 130, in __getattribute__ self._load() File "/usr/lib/python2.7/dist-packages/mercurial/demandimport.py", line 96, in _load mod = _hgextimport(_import, head, globals, locals, None, level) File "/usr/lib/python2.7/dist-packages/mercurial/demandimport.py", line 53, in _hgextimport return importfunc(name, globals, *args, **kwargs) File "/usr/lib/python2.7/pdb.py", line 59, in <module> class Pdb(bdb.Bdb, cmd.Cmd): File "/usr/lib/python2.7/dist-packages/mercurial/demandimport.py", line 131, in __getattribute__ return getattr(self._module, attr) AttributeError: 'module' object has no attribute 'Cmd' cmdserver: process exited unexpectedly with code 1 PACKAGE VERSIONS TortoiseHg version 3.7.3 with Mercurial-3.7.3, Python-2.7.12, PyQt-4.11.4, Qt-4.8.7 -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel