Intermittent ModuleNotFoundError: No module named 'urllib2'
Categories
(Developer Services :: Mercurial: robustcheckout, defect, P5)
Tracking
(Not tracked)
People
(Reporter: intermittent-bug-filer, Unassigned)
Details
(Keywords: intermittent-failure)
Filed by: ncsoregi [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=278185441&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/AfufykoUQWOLZEKDYDFbmQ/runs/0/artifacts/public/logs/live_backing.log
[vcs 2019-11-26T08:46:40.219Z] TASKCLUSTER_WORKER_LOCATION environment variable not set; using public hg.mozilla.org service
[vcs 2019-11-26T08:46:40.222Z] executing ['hg', 'robustcheckout', '--sharebase', '/Users/cltbld/tasks/task_1574757174/checkouts/hg-shared', '--purge', '--upstream', 'https://hg.mozilla.org/mozilla-unified', '--revision', '4ca097f5364361681870b5aff9dd1102fb07153f', 'https://hg.mozilla.org/mozilla-central', '/Users/cltbld/tasks/task_1574757174/checkouts/gecko']
[vcs 2019-11-26T08:46:40.446Z] *** failed to import extension robustcheckout from /usr/local/lib/hgext/robustcheckout.py: No module named 'urllib2'
[vcs 2019-11-26T08:46:40.448Z] Traceback (most recent call last):
[vcs 2019-11-26T08:46:40.448Z] File "/usr/local/Cellar/mercurial/5.2_1/lib/python3.7/site-packages/mercurial/extensions.py", line 294, in loadall
[vcs 2019-11-26T08:46:40.448Z] load(ui, name, path, loadingtime)
[vcs 2019-11-26T08:46:40.448Z] File "/usr/local/Cellar/mercurial/5.2_1/lib/python3.7/site-packages/mercurial/extensions.py", line 211, in load
[vcs 2019-11-26T08:46:40.448Z] mod = _importext(name, path, bind(_reportimporterror, ui))
[vcs 2019-11-26T08:46:40.448Z] File "/usr/local/Cellar/mercurial/5.2_1/lib/python3.7/site-packages/mercurial/extensions.py", line 119, in _importext
[vcs 2019-11-26T08:46:40.448Z] mod = loadpath(path, b'hgext.%s' % name)
[vcs 2019-11-26T08:46:40.448Z] File "/usr/local/Cellar/mercurial/5.2_1/lib/python3.7/site-packages/mercurial/extensions.py", line 98, in loadpath
[vcs 2019-11-26T08:46:40.448Z] return imp.load_source(module_name, path)
[vcs 2019-11-26T08:46:40.448Z] File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/imp.py", line 171, in load_source
[vcs 2019-11-26T08:46:40.448Z] module = _load(spec)
[vcs 2019-11-26T08:46:40.448Z] File "<frozen importlib._bootstrap>", line 696, in _load
[vcs 2019-11-26T08:46:40.448Z] File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
[vcs 2019-11-26T08:46:40.448Z] File "<frozen importlib._bootstrap_external>", line 728, in exec_module
[vcs 2019-11-26T08:46:40.448Z] File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
[vcs 2019-11-26T08:46:40.448Z] File "/usr/local/lib/hgext/robustcheckout.py", line 24, in <module>
[vcs 2019-11-26T08:46:40.448Z] import urllib2
[vcs 2019-11-26T08:46:40.448Z] ModuleNotFoundError: No module named 'urllib2'
[vcs 2019-11-26T08:46:40.480Z] Traceback (most recent call last):
[vcs 2019-11-26T08:46:40.480Z] File "/usr/local/Cellar/mercurial/5.2_1/lib/python3.7/site-packages/mercurial/scmutil.py", line 177, in callcatch
[vcs 2019-11-26T08:46:40.480Z] return func()
[vcs 2019-11-26T08:46:40.480Z] File "/usr/local/Cellar/mercurial/5.2_1/lib/python3.7/site-packages/mercurial/dispatch.py", line 414, in _runcatchfunc
[vcs 2019-11-26T08:46:40.480Z] return _dispatch(req)
[vcs 2019-11-26T08:46:40.480Z] File "/usr/local/Cellar/mercurial/5.2_1/lib/python3.7/site-packages/mercurial/dispatch.py", line 1010, in _dispatch
[vcs 2019-11-26T08:46:40.480Z] cmd, func, args, options, cmdoptions = _parse(lui, args)
[vcs 2019-11-26T08:46:40.480Z] File "/usr/local/Cellar/mercurial/5.2_1/lib/python3.7/site-packages/mercurial/dispatch.py", line 770, in _parse
[vcs 2019-11-26T08:46:40.480Z] cmd, commands.table, ui.configbool(b"ui", b"strict")
[vcs 2019-11-26T08:46:40.480Z] File "/usr/local/Cellar/mercurial/5.2_1/lib/python3.7/site-packages/mercurial/cmdutil.py", line 871, in findcmd
[vcs 2019-11-26T08:46:40.480Z] raise error.UnknownCommand(cmd, allcmds)
[vcs 2019-11-26T08:46:40.480Z] mercurial.error.UnknownCommand: (b'robustcheckout', [b'debugancestor', b'debugapplystreamclonebundle', b'debugbuilddag', b'debugbundle', b'debugcapabilities', b'debugcheckstate', b'debugcolor', b'debugcreatestreamclonebundle', b'debugdag', b'debugdata', b'debugdate', b'debugdeltachain', b'debugdirstate', b'debugstate', b'debugdiscovery', b'debugdownload', b'debugextensions', b'debugfileset', b'debugformat', b'debugfsinfo', b'debuggetbundle', b'debugignore', b'debugindex', b'debugindexdot', b'debugindexstats', b'debuginstall', b'debugknown', b'debuglabelcomplete', b'debuglocks', b'debugmanifestfulltextcache', b'debugmergestate', b'debugnamecomplete', b'debugobsolete', b'debugp1copies', b'debugp2copies', b'debugpathcomplete', b'debugpathcopies', b'debugpeer', b'debugpickmergetool', b'debugpushkey', b'debugpvec', b'debugrebuilddirstate', b'debugrebuildstate', b'debugrebuildfncache', b'debugrename', b'debugrevlog', b'debugrevlogindex', b'debugrevspec', b'debugserve', b'debugsetparents', b'debugsidedata', b'debugssl', b'debugsub', b'debugsuccessorssets', b'debugtemplate', b'debuguigetpass', b'debuguiprompt', b'debugupdatecaches', b'debugupgraderepo', b'debugwalk', b'debugwhyunstable', b'debugwireargs', b'debugwireproto', b'abort', b'add', b'addremove', b'annotate', b'blame', b'archive', b'backout', b'bisect', b'bookmarks', b'bookmark', b'branch', b'branches', b'bundle', b'cat', b'clone', b'commit', b'ci', b'config', b'showconfig', b'debugconfig', b'continue', b'copy', b'cp', b'debugcommands', b'debugcomplete', b'diff', b'export', b'files', b'forget', b'graft', b'grep', b'heads', b'help', b'identify', b'id', b'import', b'patch', b'incoming', b'in', b'init', b'locate', b'log', b'history', b'manifest', b'merge', b'outgoing', b'out', b'parents', b'paths', b'phase', b'pull', b'push', b'recover', b'remove', b'rm', b'rename', b'move', b'mv', b'resolve', b'revert', b'rollback', b'root', b'serve', b'shelve', b'status', b'st', b'summary', b'sum', b'tag', b'tags', b'tip', b'unbundle', b'unshelve', b'update', b'up', b'checkout', b'co', b'verify', b'version', b'share', b'unshare', b'rebase', b'strip', b'qdelete', b'qremove', b'qrm', b'qapplied', b'qunapplied', b'qimport', b'qinit', b'qclone', b'qcommit', b'qci', b'qseries', b'qtop', b'qnext', b'qprev', b'qnew', b'qrefresh', b'qdiff', b'qfold', b'qgoto', b'qguard', b'qheader', b'qpush', b'qpop', b'qrename', b'qmv', b'qrestore', b'qsave', b'qselect', b'qfinish', b'qqueue', b'purge', b'clean', b'debugsparse'])
[vcs 2019-11-26T08:46:40.696Z] hg: unknown command 'robustcheckout'
[vcs 2019-11-26T08:46:40.696Z] (did you mean checkout?)
[taskcluster 2019-11-26T08:46:40.726Z] Exit Code: 255
[taskcluster 2019-11-26T08:46:40.726Z] User Time: 439.673ms
[taskcluster 2019-11-26T08:46:40.726Z] Kernel Time: 90.653ms
[taskcluster 2019-11-26T08:46:40.726Z] Wall Time: 690.78051ms
[taskcluster 2019-11-26T08:46:40.726Z] Result: FAILED
[taskcluster 2019-11-26T08:46:40.726Z] === Task Finished ===
[taskcluster 2019-11-26T08:46:40.726Z] Task Duration: 694.499961ms
[taskcluster 2019-11-26T08:46:40.726Z] [mounts] Preserving cache: Moving "/Users/cltbld/tasks/task_1574757174/checkouts" to "/Users/cltbld/caches/eTmnT68qSAOJEXhZ3ygktw"
[taskcluster:error] exit status 255
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 4•5 years ago
|
||
I hit this while trying to do a Beta build on try (mozilla-central based). I think this means Beta will bust at the next uplift.
Comment 5•5 years ago
|
||
It looks like this is Mac only, too. In my run (https://treeherder.mozilla.org/#/jobs?repo=try&author=bhearsum%40mozilla.com&selectedJob=281957081), Linux and Windows were fine. Perhaps it's something related to the host platform?
Comment 6•5 years ago
|
||
I'm guessing fallout from the recent Mac PGO work since it affects the shippable builds.
Comment 7•5 years ago
|
||
Connor, this looks like a familiar py2/3 issue. Any ideas how this should be fixed (or why it's only happening on try?). Thanks, and sorry to keep bugging you about this.
Comment 8•5 years ago
|
||
Looks like these tasks need a newer version of robustcheckout
. This is the latest right now.
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Description
•