I have tried to just run the roboflow-integration file from depthai/depthai_sdk/examples/NNComponent/roboflow_integration.py at main · luxonis/depthai · GitHub using my own api key and all, following this tutorial : (420) Deploy Models from Roboflow with the Luxonis DepthAI SDK - YouTube
However, when i tried to run the file, i am faced with the following error and i do not know what they mean. Additionally, when it ran, i could hear the OAK camera "click" sound which means it is trying to start up?
This is the error:
(depthai) C:\Users\21041648\Downloads\fyp\depthai\depthai_sdk\examples\NNComponent>python roboflow_integration.py
Closing OAK camera
Traceback (most recent call last):
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\urllib3\connection.py", line 174, in _new_conn
conn = connection.create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\urllib3\util\connection.py", line 95, in create_connection
raise err
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\urllib3\util\connection.py", line 85, 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 "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\urllib3\connectionpool.py", line 714, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\urllib3\connectionpool.py", line 403, in _make_request
self._validate_conn(conn)
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\urllib3\connectionpool.py", line 1053, in _validate_conn
conn.connect()
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\urllib3\connection.py", line 363, in connect
self.sock = conn = self._new_conn()
^^^^^^^^^^^^^^^^
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\urllib3\connection.py", line 179, in _new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x0000023EA745A9D0>, 'Connection to api.roboflow.com timed out. (connect timeout=None)')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\requests\adapters.py", line 439, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\urllib3\connectionpool.py", line 798, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\urllib3\util\retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.roboflow.com', port=443): Max retries exceeded with url: /depthai/construction-site-safety/27/?api_key=c3ePm2ZWjoPbcOpLYkq2&device=18443010C1F15C0F00 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x0000023EA745A9D0>, 'Connection to api.roboflow.com timed out. (connect timeout=None)'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\21041648\Downloads\fyp\depthai\depthai_sdk\examples\NNComponent\roboflow_integration.py", line 15, in <module>
oak.start(blocking=True)
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\depthai_sdk\oak_camera.py", line 286, in start
self.build() # Build the pipeline
^^^^^^^^^^^^
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\depthai_sdk\oak_camera.py", line 380, in build
component.on_init(self._pipeline, self._oak.device, self._pipeline.getOpenVINOVersion())
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\depthai_sdk\components\nn_component.py", line 124, in on_init
path = self._roboflow.device_update(device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\depthai_sdk\components\integrations\roboflow.py", line 28, in device_update
response = requests.get(url)
^^^^^^^^^^^^^^^^^
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\requests\api.py", line 75, in get
return request('get', url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\21041648\AppData\Roaming\Python\Python311\site-packages\requests\adapters.py", line 504, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='api.roboflow.com', port=443): Max retries exceeded with url: /depthai/construction-site-safety/27/?api_key=c3ePm2ZWjoPbcOpLYkq2&device=18443010C1F15C0F00 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x0000023EA745A9D0>, 'Connection to api.roboflow.com timed out. (connect timeout=None)'))