TACO
TACO copied to clipboard
Host has failed to respond
On running python download.py
,
I get the error on 226/1500 :
(taco) D:\Eeshaan\itsp\TACO\TACO>python download.py
Note. If for any reason the connection is broken. Just call me again and I will start where I left.
Traceback (most recent call last):......] - 226/1500
File "D:\Anaconda\lib\site-packages\urllib3\connection.py", line 157, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "D:\Anaconda\lib\site-packages\urllib3\util\connection.py", line 84, in create_connection
raise err
File "D:\Anaconda\lib\site-packages\urllib3\util\connection.py", line 74, in create_connection
sock.connect(sa)
TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda\lib\site-packages\urllib3\connectionpool.py", line 672, in urlopen
chunked=chunked,
File "D:\Anaconda\lib\site-packages\urllib3\connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "D:\Anaconda\lib\site-packages\urllib3\connectionpool.py", line 994, in _validate_conn
conn.connect()
File "D:\Anaconda\lib\site-packages\urllib3\connection.py", line 300, in connect
conn = self._new_conn()
File "D:\Anaconda\lib\site-packages\urllib3\connection.py", line 169, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x00000207ADE0EC08>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Anaconda\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "D:\Anaconda\lib\site-packages\urllib3\connectionpool.py", line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "D:\Anaconda\lib\site-packages\urllib3\util\retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='olm-s3.s3.eu-west-1.amazonaws.com', port=443): Max retries exceeded with url: /1048/NGJChI8EE2bifY13rXYHC8OVoIZ6PpdVpZvNRYBq.jpeg (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x00000207ADE0EC08>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "download.py", line 44, in <module>
response = requests.get(url_original)
File "D:\Anaconda\lib\site-packages\requests\api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "D:\Anaconda\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "D:\Anaconda\lib\site-packages\requests\sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "D:\Anaconda\lib\site-packages\requests\sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "D:\Anaconda\lib\site-packages\requests\adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='olm-s3.s3.eu-west-1.amazonaws.com', port=443): Max retries exceeded with url: /1048/NGJChI8EE2bifY13rXYHC8OVoIZ6PpdVpZvNRYBq.jpeg (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x00000207ADE0EC08>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
I think some of the images listed in the dataset are no longer available online
They are all available! I just confirmed it.
Sometimes the servers hosting the images can be temporarily unresponsive or assign you low priority, leading to Timeout.
You can always download the images from here: https://zenodo.org/record/3587843#.YB3RupNKjow