I have depthai_demo running happily with the inbuilt model but I get repeated timeout error when I try to down load a different model. With my browser I can access www.01.org but I get a timeout from download.01.org I tried abcdef.01.org and I get not found. I am located in England and wonder if there is some form of export restriction?
The included dump is from python 3.8 with pycharm, ubuntu 20.3. I get similar errors when I tried windows 10. I have tried different models.
`
/home/julia/PycharmProjects/depthai/venv/bin/python /home/julia/PycharmProjects/depthai/depthai_demo.py -dd -cnn face-detection-retail-0004
No calibration file. Using Calibration Defaults.
Using depthai module from: /home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/depthai.cpython-38-x86_64-linux-gnu.so
Depthai version installed: 0.4.0.0
Depthai version required: 0.4.0.0
Compiling model for 14 shaves, 14 cmx_slices and 1 NN_engines
model_compilation_target: cloud
################|| Downloading models ||################
========== Downloading /home/julia/PycharmProjects/depthai/model_compiler/downloads/face-detection-retail-0004/FP16/face-detection-retail-0004.xml
Will retry in 10 seconds...
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in make_request
self.validate_conn(conn)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in validate_conn
conn.connect()
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
conn = self.new_conn()
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f74e1ab47f0>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='download.01.org', port=443): Max retries exceeded with url: /opencv/2020/openvinotoolkit/2020.1/open_model_zoo/models_bin/1/face-detection-retail-0004/FP16/face-detection-retail-0004.xml (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f74e1ab47f0>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/model_compiler/downloader/downloader.py", line 71, in try_download
chunk_iterable = start_download()
File "/home/julia/PycharmProjects/depthai/model_compiler/downloader/downloader.py", line 264, in <lambda>
lambda: model_file.source.start_download(session, CHUNK_SIZE)):
File "/home/julia/PycharmProjects/depthai/model_compiler/downloader/common.py", line 185, in start_download
response = session.get(self.url, stream=True, timeout=DOWNLOAD_TIMEOUT)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/sessions.py", line 543, in get
return self.request('GET', url, **kwargs)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='download.01.org', port=443): Max retries exceeded with url: /opencv/2020/openvinotoolkit/2020.1/open_model_zoo/models_bin/1/face-detection-retail-0004/FP16/face-detection-retail-0004.xml (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f74e1ab47f0>: Failed to establish a new connection: [Errno 111] Connection refused'))
########## Error: Download failed
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in make_request
self.validate_conn(conn)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in validate_conn
conn.connect()
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connection.py", line 362, in connect
self.sock = ssl_wrap_socket(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/util/ssl.py", line 386, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib/python3.8/ssl.py", line 1040, in create
self.do_handshake()
File "/usr/lib/python3.8/ssl.py", line 1309, in do_handshake
self.sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1123)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='download.01.org', port=443): Max retries exceeded with url: /opencv/2020/openvinotoolkit/2020.1/open_model_zoo/models_bin/1/face-detection-retail-0004/FP16/face-detection-retail-0004.xml (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (ssl.c:1123)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/model_compiler/downloader/downloader.py", line 71, in try_download
chunk_iterable = start_download()
File "/home/julia/PycharmProjects/depthai/model_compiler/downloader/downloader.py", line 264, in <lambda>
lambda: model_file.source.start_download(session, CHUNK_SIZE)):
File "/home/julia/PycharmProjects/depthai/model_compiler/downloader/common.py", line 185, in start_download
response = session.get(self.url, stream=True, timeout=DOWNLOAD_TIMEOUT)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/sessions.py", line 543, in get
return self.request('GET', url, **kwargs)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='download.01.org', port=443): Max retries exceeded with url: /opencv/2020/openvinotoolkit/2020.1/open_model_zoo/models_bin/1/face-detection-retail-0004/FP16/face-detection-retail-0004.xml (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (ssl.c:1123)')))
########## Error: Download failed
Will retry in 10 seconds...
Will retry in 10 seconds...
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self.make_request(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in make_request
self.validate_conn(conn)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in validate_conn
conn.connect()
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connection.py", line 362, in connect
self.sock = ssl_wrap_socket(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/util/ssl.py", line 386, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/lib/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/lib/python3.8/ssl.py", line 1040, in create
self.do_handshake()
File "/usr/lib/python3.8/ssl.py", line 1309, in do_handshake
self.sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1123)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='download.01.org', port=443): Max retries exceeded with url: /opencv/2020/openvinotoolkit/2020.1/open_model_zoo/models_bin/1/face-detection-retail-0004/FP16/face-detection-retail-0004.xml (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (ssl.c:1123)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/model_compiler/downloader/downloader.py", line 71, in try_download
chunk_iterable = start_download()
File "/home/julia/PycharmProjects/depthai/model_compiler/downloader/downloader.py", line 264, in <lambda>
lambda: model_file.source.start_download(session, CHUNK_SIZE)):
File "/home/julia/PycharmProjects/depthai/model_compiler/downloader/common.py", line 185, in start_download
response = session.get(self.url, stream=True, timeout=DOWNLOAD_TIMEOUT)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/sessions.py", line 543, in get
return self.request('GET', url, **kwargs)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='download.01.org', port=443): Max retries exceeded with url: /opencv/2020/openvinotoolkit/2020.1/open_model_zoo/models_bin/1/face-detection-retail-0004/FP16/face-detection-retail-0004.xml (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1123)')))
########## Error: Download failed
Will retry in 10 seconds...
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in make_request
self.validate_conn(conn)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in validate_conn
conn.connect()
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
conn = self.new_conn()
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f74e1ab4ac0>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='download.01.org', port=443): Max retries exceeded with url: /opencv/2020/openvinotoolkit/2020.1/open_model_zoo/models_bin/1/face-detection-retail-0004/FP16/face-detection-retail-0004.xml (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f74e1ab4ac0>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/model_compiler/downloader/downloader.py", line 71, in try_download
chunk_iterable = start_download()
File "/home/julia/PycharmProjects/depthai/model_compiler/downloader/downloader.py", line 264, in <lambda>
lambda: model_file.source.start_download(session, CHUNK_SIZE)):
File "/home/julia/PycharmProjects/depthai/model_compiler/downloader/common.py", line 185, in start_download
response = session.get(self.url, stream=True, timeout=DOWNLOAD_TIMEOUT)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/sessions.py", line 543, in get
return self.request('GET', url, **kwargs)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='download.01.org', port=443): Max retries exceeded with url: /opencv/2020/openvinotoolkit/2020.1/open_model_zoo/models_bin/1/face-detection-retail-0004/FP16/face-detection-retail-0004.xml (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f74e1ab4ac0>: Failed to establish a new connection: [Errno 111] Connection refused'))
########## Error: Download failed
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connection.py", line 159, in _new_conn
conn = connection.create_connection(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in make_request
self.validate_conn(conn)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in validate_conn
conn.connect()
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connection.py", line 309, in connect
conn = self.new_conn()
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connection.py", line 171, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f74e1ab4550>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='download.01.org', port=443): Max retries exceeded with url: /opencv/2020/openvinotoolkit/2020.1/open_model_zoo/models_bin/1/face-detection-retail-0004/FP16/face-detection-retail-0004.xml (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f74e1ab4550>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/model_compiler/downloader/downloader.py", line 71, in try_download
chunk_iterable = start_download()
File "/home/julia/PycharmProjects/depthai/model_compiler/downloader/downloader.py", line 264, in <lambda>
lambda: model_file.source.start_download(session, CHUNK_SIZE)):
File "/home/julia/PycharmProjects/depthai/model_compiler/downloader/common.py", line 185, in start_download
response = session.get(self.url, stream=True, timeout=DOWNLOAD_TIMEOUT)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/sessions.py", line 543, in get
return self.request('GET', url, **kwargs)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/home/julia/PycharmProjects/depthai/venv/lib/python3.8/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='download.01.org', port=443): Max retries exceeded with url: /opencv/2020/openvinotoolkit/2020.1/open_model_zoo/models_bin/1/face-detection-retail-0004/FP16/face-detection-retail-0004.xml (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f74e1ab4550>: Failed to establish a new connection: [Errno 111] Connection refused'))
########## Error: Download failed
Traceback (most recent call last):
File "/home/julia/PycharmProjects/depthai/depthai_demo.py", line 404, in <module>
dai.startLoop()
File "/home/julia/PycharmProjects/depthai/depthai_demo.py", line 45, in startLoop
configMan = DepthConfigManager(args)
File "/home/julia/PycharmProjects/depthai/depthai_helpers/config_manager.py", line 26, in init
self.generateJsonConfig()
File "/home/julia/PycharmProjects/depthai/depthai_helpers/config_manager.py", line 192, in generateJsonConfig
blobMan = BlobManager(self.args, self.calc_dist_to_bb, shave_nr, cmx_slices, NCE_nr)
File "/home/julia/PycharmProjects/depthai/depthai_helpers/config_manager.py", line 377, in init
self.blob_file = self.compileBlob(self.args['cnn_model'], self.args['model_compilation_target'])
File "/home/julia/PycharmProjects/depthai/depthai_helpers/config_manager.py", line 431, in compileBlob
ret = download_and_compile_NN_model(nn_model, model_zoo_folder, shave_nr_opt, cmx_slices_opt, NCE_nr, outblob_file, model_compilation_target)
File "/home/julia/PycharmProjects/depthai/model_compiler/model_compiler.py", line 138, in download_and_compile_NN_model
download_location = download_model(model, model_zoo_folder)
File "/home/julia/PycharmProjects/depthai/model_compiler/model_compiler.py", line 30, in download_model
raise RuntimeError("Model downloader failed!")
RuntimeError: Model downloader failed!
################|| Post-processing ||################
FAILED:
face-detection-retail-0004
Process finished with exit code 1
`