Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@ad84e0fa8ae1:~# python3 ./code-v3.py
- Downloading data from https://storage.googleapis.com/tensorflow/tf-keras-datasets/mnist.npz
- Traceback (most recent call last):
- File "/usr/lib/python3.9/urllib/request.py", line 1346, in do_open
- h.request(req.get_method(), req.selector, req.data, headers,
- File "/usr/lib/python3.9/http/client.py", line 1255, in request
- self._send_request(method, url, body, headers, encode_chunked)
- File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request
- self.endheaders(body, encode_chunked=encode_chunked)
- File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders
- self._send_output(message_body, encode_chunked=encode_chunked)
- File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output
- self.send(msg)
- File "/usr/lib/python3.9/http/client.py", line 950, in send
- self.connect()
- File "/usr/lib/python3.9/http/client.py", line 1424, in connect
- self.sock = self._context.wrap_socket(self.sock,
- File "/usr/lib/python3.9/ssl.py", line 500, in wrap_socket
- return self.sslsocket_class._create(
- File "/usr/lib/python3.9/ssl.py", line 1040, in _create
- self.do_handshake()
- File "/usr/lib/python3.9/ssl.py", line 1309, in do_handshake
- self._sslobj.do_handshake()
- ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/lib/python3.9/site-packages/tensorflow/python/keras/utils/data_utils.py", line 275, in get_file
- urlretrieve(origin, fpath, dl_progress)
- File "/usr/lib/python3.9/urllib/request.py", line 239, in urlretrieve
- with contextlib.closing(urlopen(url, data)) as fp:
- File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
- return opener.open(url, data, timeout)
- File "/usr/lib/python3.9/urllib/request.py", line 517, in open
- response = self._open(req, data)
- File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
- result = self._call_chain(self.handle_open, protocol, protocol +
- File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
- result = func(*args)
- File "/usr/lib/python3.9/urllib/request.py", line 1389, in https_open
- return self.do_open(http.client.HTTPSConnection, req,
- File "/usr/lib/python3.9/urllib/request.py", line 1349, in do_open
- raise URLError(err)
- urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)>
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/root/./code-v3.py", line 9, in <module>
- (x_train, y_train), (x_test, y_test) = mnist.load_data()
- File "/usr/lib/python3.9/site-packages/tensorflow/python/keras/datasets/mnist.py", line 58, in load_data
- path = get_file(
- File "/usr/lib/python3.9/site-packages/tensorflow/python/keras/utils/data_utils.py", line 279, in get_file
- raise Exception(error_msg.format(origin, e.errno, e.reason))
- Exception: URL fetch failure on https://storage.googleapis.com/tensorflow/tf-keras-datasets/mnist.npz: None -- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)
- root@ad84e0fa8ae1:~# vi /usr/lib/python3.9/site-packages/tensorflow/python/keras/datasets/mnist.py
- root@ad84e0fa8ae1:~# python3 ./code-v3.py
- Downloading data from https://s3.amazonaws.com/img-datasets/mnist.npz
- Traceback (most recent call last):
- File "/usr/lib/python3.9/urllib/request.py", line 1346, in do_open
- h.request(req.get_method(), req.selector, req.data, headers,
- File "/usr/lib/python3.9/http/client.py", line 1255, in request
- self._send_request(method, url, body, headers, encode_chunked)
- File "/usr/lib/python3.9/http/client.py", line 1301, in _send_request
- self.endheaders(body, encode_chunked=encode_chunked)
- File "/usr/lib/python3.9/http/client.py", line 1250, in endheaders
- self._send_output(message_body, encode_chunked=encode_chunked)
- File "/usr/lib/python3.9/http/client.py", line 1010, in _send_output
- self.send(msg)
- File "/usr/lib/python3.9/http/client.py", line 950, in send
- self.connect()
- File "/usr/lib/python3.9/http/client.py", line 1424, in connect
- self.sock = self._context.wrap_socket(self.sock,
- File "/usr/lib/python3.9/ssl.py", line 500, in wrap_socket
- return self.sslsocket_class._create(
- File "/usr/lib/python3.9/ssl.py", line 1040, in _create
- self.do_handshake()
- File "/usr/lib/python3.9/ssl.py", line 1309, in do_handshake
- self._sslobj.do_handshake()
- ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/lib/python3.9/site-packages/tensorflow/python/keras/utils/data_utils.py", line 275, in get_file
- urlretrieve(origin, fpath, dl_progress)
- File "/usr/lib/python3.9/urllib/request.py", line 239, in urlretrieve
- with contextlib.closing(urlopen(url, data)) as fp:
- File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
- return opener.open(url, data, timeout)
- File "/usr/lib/python3.9/urllib/request.py", line 517, in open
- response = self._open(req, data)
- File "/usr/lib/python3.9/urllib/request.py", line 534, in _open
- result = self._call_chain(self.handle_open, protocol, protocol +
- File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
- result = func(*args)
- File "/usr/lib/python3.9/urllib/request.py", line 1389, in https_open
- return self.do_open(http.client.HTTPSConnection, req,
- File "/usr/lib/python3.9/urllib/request.py", line 1349, in do_open
- raise URLError(err)
- urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)>
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/root/./code-v3.py", line 9, in <module>
- (x_train, y_train), (x_test, y_test) = mnist.load_data()
- File "/usr/lib/python3.9/site-packages/tensorflow/python/keras/datasets/mnist.py", line 59, in load_data
- path = get_file(
- File "/usr/lib/python3.9/site-packages/tensorflow/python/keras/utils/data_utils.py", line 279, in get_file
- raise Exception(error_msg.format(origin, e.errno, e.reason))
- Exception: URL fetch failure on https://s3.amazonaws.com/img-datasets/mnist.npz: None -- [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement