ssl error using urllib2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-defaults (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
On Ubuntu 14.04.5 LTS with python 2.7.5-5ubuntu3 and libpython2.7-stdlib 2.7.6-8ubuntu0.3, using this little example program:
#!/usr/bin/python
import urllib2
USER_AGENT = 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/
defaultHeaders = {'User-
url = "https:/
req = urllib2.
response = urllib2.
I get this result:
$ python /tmp/urllib2-
Traceback (most recent call last):
File "/tmp/urllib2-
response = urllib2.
File "/usr/lib/
return _opener.open(url, data, timeout)
File "/usr/lib/
response = self._open(req, data)
File "/usr/lib/
'_open', req)
File "/usr/lib/
result = func(*args)
File "/usr/lib/
return self.do_
File "/usr/lib/
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 1] _ssl.c:510: error:14077410:SSL routines:
I wonder why this ticket has not even been triaged.
It was filed against an LTS release of Ubuntu.