Closed Bug 1244937 Opened 8 years ago Closed 8 years ago

Failure while setting up mach

Categories

(Firefox Build System :: Mach Core, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1232747

People

(Reporter: marlio, Unassigned)

Details

I was trying to configure hg using mach mercurial-setup and it failed at the point of providing a Bugzilla API key. Terminal output is as follows.

Please enter a Bugzilla API Key: (optional)
VaMdp3cFb3BELJsVpF2IDV9Ouc4fU2fbOaGRzr8g
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/malintha/mozilla/comm-central/mozilla/tools/mercurial/mach_commands.py", line 68, in mercurial_setup
    result = wizard.run(map(os.path.expanduser, config_paths))
  File "/home/malintha/mozilla/comm-central/mozilla/tools/mercurial/hgsetup/wizard.py", line 514, in run
    have_modern_ssl = hasattr(ssl.SSLContext, 'load_default_certs')
malintha@malintha-ThinkPad-T540p:~/mozilla/comm-central$ ./mozilla/mach mercurial-setup
You'll want to revoke that bugzilla API key, now that you made it public...
Your source repo must be out of date because we fixed this in December in bug 1232747.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
marlio confirmed through IRC that API Key has been revoked.
Was able to fix it by changing mozilla/tools/mercurial/hgsetup/wizard.py, line 514 from have_modern_ssl = hasattr(ssl.SSLContext, 'load_default_certs') to have_modern_ssl = hasattr(ssl, 'SSLContext')

That is what I could find from a mxr search. May be it was there in the hg bundle that I downloaded.
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.