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.

classification
Title: urllib2 fails on https,SSL broken.
Type: behavior Stage: resolved
Components: Build Versions: Python 2.7
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: r.david.murray, sganguly
Priority: normal Keywords:

Created on 2013-12-07 06:25 by sganguly, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg205439 - (view) Author: soumen ganguly (sganguly) Date: 2013-12-07 06:25
>>import urllib2
>>urllib2.urlopen('https://example.com')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 404, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 427, in _open
    'unknown_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1249, in unknown_open
    raise URLError('unknown url type: %s' % type)
urllib2.URLError: <urlopen error unknown url type: https>
------------------------------------------------------------------------
>>import ssl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/ssl.py", line 60, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: /usr/lib/python2.7/lib-dynload/_ssl.so: symbol SSLeay_version, version OPENSSL_1.0.1 not defined in file libcrypto.so.10 with link time reference
msg205457 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2013-12-07 14:44
This isn't a bug in Python, it is a bug in your particular *installation* of Python (or OpenSSL).  Your best resource for getting help resolving this would be to post to the python-list mailing list, or to a support forum for your particular Linux distribution.
History
Date User Action Args
2022-04-11 14:57:55adminsetgithub: 64115
2013-12-07 14:44:24r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg205457

resolution: works for me
stage: resolved
2013-12-07 06:25:24sgangulycreate