Closed Bug 1252395 Opened 9 years ago Closed 9 years ago

Mach mercurial-setup error when Python < 2.7.9

Categories

(Developer Services :: Mercurial: configwizard, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1232747

People

(Reporter: pierre, Unassigned, NeedInfo)

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 Build ID: 20160212012805 Steps to reproduce: Ran "./mach mercurial-setup" on Debian Wheezy, which has Python 2.7.3 Actual results: I got the error : Error running mach: ['mercurial-setup'] The error occurred in code that was called by the mach command. This is either a bug in the called code itself or in the way that mach is calling it. You should consider filing a bug for this issue. If filing a bug, please include the full output of mach, including this error message. The details of the failure are as follows: AttributeError: 'module' object has no attribute 'SSLContext' File "/home/bitsylinux/devel/mozilla/mozilla-release/tools/mercurial/mach_commands.py", line 68, in mercurial_setup result = wizard.run(map(os.path.expanduser, config_paths)) File "/home/bitsylinux/devel/mozilla/mozilla-release/tools/mercurial/hgsetup/wizard.py", line 514, in run have_modern_ssl = hasattr(ssl.SSLContext, 'load_default_certs') Expected results: bootstrap.py or mach should detect Python version and warn about Python if version < 2.7.9. SSLContext needs was added in Python 2.7.9.
Pretty sure this was fixed in bug 1232747.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Component: Releases: Custom Builds → Mercurial: configwizard
Flags: needinfo?(pierre)
Product: Release Engineering → Developer Services
QA Contact: coop
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.