Closed
Bug 1461390
Opened 8 years ago
Closed 8 years ago
With mercurial 4.6, repeated error spam: "*** failed to import extension bundleclone from [wherever]: No module named wireproto"
Categories
(Developer Services :: Mercurial: bundleclone, defect)
Developer Services
Mercurial: bundleclone
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: dholbert, Unassigned)
Details
STR:
1. Have bundleclone configured normally -- in particualr, listed in the [extensions] section of your ~/.hgrc file. For me, the line looks like this:
> [extensions]
> bundleclone = /scratch/work/builds/.mozbuild/version-control-tools/hgext/bundleclone
2. Install/upgrade Mercurial 4.6, e.g. via pip on Ubuntu:
> pip install --user -U mercurial
(and run "hg --version" to be sure you're really running version 4.6)
3. Run any hg command, e.g. "hg status", anywhere on your system.
ACTUAL RESULTS:
*** failed to import extension bundleclone from /scratch/work/builds/.mozbuild/version-control-tools/hgext/bundleclone: No module named wireproto
EXPECTED RESULTS:
No such error.
I think this is new in Mercurial 4.6 -- maybe this wireproto thing was renamed or moved between namespaces or something? https://www.mercurial-scm.org/wiki/Release4.6 does mention some stuff about wireproto.
| Reporter | ||
Comment 1•8 years ago
|
||
If I enable traceback, I get this additional diagnostic output:
*** failed to import extension bundleclone from /scratch/work/builds/.mozbuild/version-control-tools/hgext/bundleclone: No module named wireproto
Traceback (most recent call last):
File "/home/dholbert/.local/lib/python2.7/site-packages/mercurial/extensions.py", line 238, in loadall
load(ui, name, path)
File "/home/dholbert/.local/lib/python2.7/site-packages/mercurial/extensions.py", line 179, in load
mod = _importext(name, path, bind(_reportimporterror, ui))
File "/home/dholbert/.local/lib/python2.7/site-packages/mercurial/extensions.py", line 106, in _importext
mod = loadpath(path, 'hgext.%s' % name)
File "/home/dholbert/.local/lib/python2.7/site-packages/mercurial/extensions.py", line 84, in loadpath
return imp.load_module(module_name, fd, fpath, desc)
File "/scratch/work/builds/.mozbuild/version-control-tools/hgext/bundleclone/__init__.py", line 203, in <module>
File "/home/dholbert/.local/lib/python2.7/site-packages/hgdemandimport/demandimportpy2.py", line 145, in __getattr__
self._load()
File "/home/dholbert/.local/lib/python2.7/site-packages/hgdemandimport/demandimportpy2.py", line 90, in _load
mod = _hgextimport(_origimport, head, globals, locals, None, level)
File "/home/dholbert/.local/lib/python2.7/site-packages/hgdemandimport/demandimportpy2.py", line 41, in _hgextimport
return importfunc(name, globals, *args, **kwargs)
ImportError: No module named wireproto
Comment 2•8 years ago
|
||
The bundleclone extension was deleted ~1 year ago (bug 1352494). The functionality is now baked into Mercurial itself.
Your Mercurial is likely picking up a cached version in a .pyc file in your version-control-tools checkout. (Oh, Python.)
Please remove references to the bundleclone extension from your hgrc files.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
| Reporter | ||
Comment 3•8 years ago
|
||
Indeed, it looks like /scratch/work/builds/.mozbuild/version-control-tools/hgext/bundleclone/__init__.pyc was the only bundleclone-related file in my version-control-tools checkout.
Thanks!
You need to log in
before you can comment on or make changes to this bug.
Description
•