1adrianb / face-alignment

:fire: 2D and 3D Face alignment library build using pytorch
https://www.adrianbulat.com
BSD 3-Clause "New" or "Revised" License
6.94k stars 1.33k forks source link

SSL: CERTIFICATE_VERIFY_FAILED #183

Closed i-onyshchenko closed 4 years ago

i-onyshchenko commented 4 years ago

Downloading: "https://www.adrianbulat.com/downloads/python-fan/s3fd-619a316812.pth" to /home/user/.cache/torch/ checkpoints/s3fd-619a316812.pth Traceback (most recent call last): File "/usr/lib/python3.6/urllib/request.py", line 1325, in do_open encode_chunked=req.has_header('Transfer-encoding')) File "/usr/lib/python3.6/http/client.py", line 1264, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.6/http/client.py", line 1310, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.6/http/client.py", line 1259, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.6/http/client.py", line 1038, in _send_output self.send(msg) File "/usr/lib/python3.6/http/client.py", line 976, in send self.connect() File "/usr/lib/python3.6/http/client.py", line 1425, in connect server_hostname=server_hostname) File "/usr/lib/python3.6/ssl.py", line 407, in wrap_socket _context=self, _session=session) File "/usr/lib/python3.6/ssl.py", line 817, in init self.do_handshake() File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake self._sslobj.do_handshake() File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

i-onyshchenko commented 4 years ago

Solution: just download file directly and put it in folder ../.cache/torch/ checkpoints.

HWiese1980 commented 2 years ago

Not a solution, merely a workaround! This is a feature of the library that still isn't working properly. It's a bug. It should be fixed. For good.

1adrianb commented 2 years ago

This is not a bug in the library. The certificate is valid. Please check for example: https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error