When trying to add a new Wallhaven source for a simple keyword or full URL:
ERROR: 2016-05-02 11:23:13,499: validate() 'Error while validating wallhaven search'
Traceback (most recent call last):
File "/home/peter/dev/variety/variety/WallhavenDownloader.py", line 70, in validate
s, count = WallhavenDownloader(None, location).search()
File "/home/peter/dev/variety/variety/WallhavenDownloader.py", line 56, in search
soup = Util.html_soup(url)
File "/home/peter/dev/variety/variety/Util.py", line 440, in html_soup
return bs4.BeautifulSoup(Util.urlopen(url, data).read())
File "/home/peter/dev/variety/variety/Util.py", line 428, in urlopen
return urllib2.urlopen(request, data=urllib.urlencode(data) if data else None, timeout=20)
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 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.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 422, in _open
'_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 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 1] _ssl.c:510: error:14094438:SSL routines:SSL3_READ_BYTES:tlsv1 alert internal error>
When downloading from Wallhaven:
INFO: 2016-05-02 11:26:38,425: fill_queue() 'Filling wallhaven queue: tilt shift'
INFO: 2016-05-02 11:26:38,425: search() 'Performing wallhaven search: url=http://alpha.wallhaven.cc/search?q=tilt%20shift&categories=111&purity=100&sorting=favorites&order=desc'
ERROR: 2016-05-02 11:26:38,730: download_thread() 'Could not download wallpaper:'
Traceback (most recent call last):
File "/home/peter/dev/variety/variety/VarietyWindow.py", line 974, in download_thread
self.download_one_from(downloader)
File "/home/peter/dev/variety/variety/VarietyWindow.py", line 1006, in download_one_from
file = downloader.download_one()
File "/home/peter/dev/variety/variety/WallhavenDownloader.py", line 96, in download_one
self.fill_queue()
File "/home/peter/dev/variety/variety/WallhavenDownloader.py", line 132, in fill_queue
s, count = self.search()
File "/home/peter/dev/variety/variety/WallhavenDownloader.py", line 56, in search
soup = Util.html_soup(url)
File "/home/peter/dev/variety/variety/Util.py", line 440, in html_soup
return bs4.BeautifulSoup(Util.urlopen(url, data).read())
File "/home/peter/dev/variety/variety/Util.py", line 428, in urlopen
return urllib2.urlopen(request, data=urllib.urlencode(data) if data else None, timeout=20)
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 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 442, in error
result = self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
return self.parent.open(new, timeout=req.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 422, in _open
'_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 1222, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 1] _ssl.c:510: error:14094438:SSL routines:SSL3_READ_BYTES:tlsv1 alert internal error>
This is most probably due to a bug in openssl, triggered by some recent update to Wallhaven's SSL setup: https:/ /bugs.launchpad .net/ubuntu/ +source/ openssl/ +bug/1475228