python now throwing SSL errors in download.py
Opened this issue · 0 comments
Using python 2.7.12 on ubuntu 16.04
$ python download.py manhattan.tsv
2018-07-05 20:49:59,954 Pulling down 1-01969-0081
Traceback (most recent call last):
File "download.py", line 249, in
main(*line.strip().split('\t'))
File "download.py", line 227, in main
search(borough=args[0], block=int(args[1]), lot=int(args[2]))
File "download.py", line 207, in search
resp = SESSION.post(LIST_URL, data=form, verify="/etc/ssl/certs")
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 514, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 471, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 602, in send
history = [resp for resp in gen] if allow_redirects else []
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 176, in resolve_redirects
**adapter_kwargs
File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 581, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 491, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)