This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: windows installers ssl module / openssl broken for some sites
Type: Stage:
Components: Windows Versions: Python 2.7
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: BreamoreBoy, kiilerix, loewis, orsenthil
Priority: normal Keywords:

Created on 2011-04-01 12:49 by kiilerix, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg132736 - (view) Author: Mads Kiilerich (kiilerix) * Date: 2011-04-01 12:49
(Probably the same root cause as issue11725 and using the same test case and analysis, but it seems like it isn't just somebody elses problem.)

Expected behaviour:

C:\Python26>python --version

Python 2.6.4

C:\Python26>python -c "import urllib2; urllib2.urlopen('')"

Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "C:\Python26\lib\", line 124, in urlopen

    return, data, timeout)

  File "C:\Python26\lib\", line 395, in open

    response = meth(req, response)

  File "C:\Python26\lib\", line 508, in http_response

    'http', request, response, code, msg, hdrs)

  File "C:\Python26\lib\", line 433, in error

    return self._call_chain(*args)

  File "C:\Python26\lib\", line 367, in _call_chain

    result = func(*args)

  File "C:\Python26\lib\", line 516, in http_error_default

    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

urllib2.HTTPError: HTTP Error 403: Forbidden



C:\Python26>python --version

Python 2.6.5

C:\Python26>python -c "import urllib2; urllib2.urlopen('')"

the same behaviour is seen on all following versions up to 2.7.1.

I guess the Python windows installer started to contain an openssl that changed something?

I think this has caused a number of strange Mercurial bug reports.
msg220917 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-06-17 23:50
I don't recall any recent reports of this problem so think this can be closed as "out of date"?
Date User Action Args
2022-04-11 14:57:15adminsetgithub: 55945
2014-06-18 06:12:47loewissetstatus: open -> closed
resolution: out of date
2014-06-17 23:50:05BreamoreBoysetnosy: + BreamoreBoy
messages: + msg220917
2011-04-01 17:51:37ned.deilysetnosy: + loewis
2011-04-01 13:57:38orsenthilsetnosy: + orsenthil
2011-04-01 12:49:55kiilerixcreate