Well pretty obvious that the python is the issue:
http
Code: Select all
[/usr/bin] # /usr/bin/python
Python 2.7.9 (default, Mar 24 2015, 00:42:24)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
f = urllib2.urlopen('http://www.google.com/', timeout=5)
f.read()[:100]>>> >>>
'<!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="en -GB"><head><meta cont'
https
Code: Select all
>>> import urllib2
f = urllib2.urlopen('https://www.google.com/', timeout=5)
f.read()[:100]>>> Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/share/MD0_DATA/.qpkg/Python/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/share/MD0_DATA/.qpkg/Python/lib/python2.7/urllib2.py", line 431, in open
response = self._open(req, data)
File "/share/MD0_DATA/.qpkg/Python/lib/python2.7/urllib2.py", line 449, in _open
'_open', req)
File "/share/MD0_DATA/.qpkg/Python/lib/python2.7/urllib2.py", line 409, in _call_chain
result = func(*args)
File "/share/MD0_DATA/.qpkg/Python/lib/python2.7/urllib2.py", line 1240, in https_open
context=self._context)
File "/share/MD0_DATA/.qpkg/Python/lib/python2.7/urllib2.py", line 1197, in do_open
raise URLError(err)
urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>
I reckon a recent firmware update has broken it.