[Bug 5725] New: hg fails with AttributeError: 'function' object has no attribute 'im_self'
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Tue Oct 31 15:52:03 UTC 2017
https://bz.mercurial-scm.org/show_bug.cgi?id=5725
Bug ID: 5725
Summary: hg fails with AttributeError: 'function' object has no
attribute 'im_self'
Product: Mercurial
Version: 4.3.3
Hardware: Macintosh
OS: Mac OS
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: packaging
Assignee: bugzilla at mercurial-scm.org
Reporter: yanokwa at gmail.com
CC: durin42 at gmail.com, mercurial-devel at mercurial-scm.org
When I run a command (hg push/pull), I get this error:
AttributeError: 'function' object has no attribute 'im_self'.
I am running hg 4.3.3 on macOS 10.13 with Python 3.6.3. Python 3 was installed
with brew and hg was installed with pip.
I've tried hg push command on a new repo and an old repo and the problem
exists.
I've tried hg 4.4rc0 and that seems to work. I've tried hg 4.3.3 with brew, it
also works great, so the problem seems to be pip related and specific to hg
4.3.3 (and maybe lesser).
Glad to provide any other details that would help troubleshoot!
$ hg push
pushing to ssh://example
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 3.6.3 (default, Oct 4 2017, 06:09:38) [GCC 4.2.1 Compatible Apple
LLVM 9.0.0 (clang-900.0.37)]
** Mercurial Distributed SCM (version 4.3.3)
** Extensions loaded: rebase
Traceback (most recent call last):
File "/usr/local/bin/hg", line 45, in <module>
mercurial.dispatch.run()
File "/usr/local/lib/python3.6/site-packages/mercurial/dispatch.py", line 81,
in run
status = (dispatch(req) or 0) & 255
File "/usr/local/lib/python3.6/site-packages/mercurial/dispatch.py", line
162, in dispatch
ret = _runcatch(req)
File "/usr/local/lib/python3.6/site-packages/mercurial/dispatch.py", line
302, in _runcatch
return _callcatch(ui, _runcatchfunc)
File "/usr/local/lib/python3.6/site-packages/mercurial/dispatch.py", line
310, in _callcatch
return scmutil.callcatch(ui, func)
File "/usr/local/lib/python3.6/site-packages/mercurial/scmutil.py", line 150,
in callcatch
return func()
File "/usr/local/lib/python3.6/site-packages/mercurial/dispatch.py", line
292, in _runcatchfunc
return _dispatch(req)
File "/usr/local/lib/python3.6/site-packages/mercurial/dispatch.py", line
896, in _dispatch
cmdpats, cmdoptions)
File "/usr/local/lib/python3.6/site-packages/mercurial/dispatch.py", line
658, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/local/lib/python3.6/site-packages/mercurial/dispatch.py", line
904, in _runcommand
return cmdfunc()
File "/usr/local/lib/python3.6/site-packages/mercurial/dispatch.py", line
893, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File "/usr/local/lib/python3.6/site-packages/mercurial/util.py", line 1077,
in check
return func(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/mercurial/commands.py", line
4067, in push
opargs=opts.get('opargs'))
File "/usr/local/lib/python3.6/site-packages/mercurial/exchange.py", line
476, in push
_pushdiscovery(pushop)
File "/usr/local/lib/python3.6/site-packages/mercurial/exchange.py", line
526, in _pushdiscovery
step(pushop)
File "/usr/local/lib/python3.6/site-packages/mercurial/exchange.py", line
532, in _pushdiscoverychangeset
commoninc = fci(pushop.repo, pushop.remote, force=pushop.force)
File "/usr/local/lib/python3.6/site-packages/mercurial/discovery.py", line
62, in findcommonincoming
abortwhenunrelated=not force)
File "/usr/local/lib/python3.6/site-packages/mercurial/setdiscovery.py", line
156, in findcommonheads
batch.submit()
File "/usr/local/lib/python3.6/site-packages/mercurial/wireproto.py", line
137, in submit
batchable = mtd.batchable(mtd.im_self, *args, **opts)
AttributeError: 'function' object has no attribute 'im_self'
$ hg debuginstall
checking encoding (UTF-8)...
checking Python executable (/usr/local/opt/python3/bin/python3.6)
checking Python version (3.6.3)
checking Python lib
(/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6)...
checking Python security support (sni,tls1.0,tls1.1,tls1.2)
checking Mercurial version (4.3.3)
checking Mercurial custom build ()
checking module policy (py)
checking installed modules
(/usr/local/lib/python3.6/site-packages/mercurial)...
checking registered compression engines (bz2, bz2truncated, none, zlib, zstd)
checking available compression engines (bz2, bz2truncated, none, zlib, zstd)
checking available compression engines for wire protocol (zstd, zlib, bz2,
none)
checking templates
(/usr/local/lib/python3.6/site-packages/mercurial/templates)...
checking default template
(/usr/local/lib/python3.6/site-packages/mercurial/templates/map-cmdline.default)
checking commit editor... (vi)
checking username (Yaw Anokwa <yanokwa at example.com>)
no problems detected
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list