The main.py script doesn't help. All the cameras are available and then main.py has errors and never displays an image
//
// Here are the results from these lines of code
for device in dai.Device.getAllAvailableDevices():
print(f"{device.name} {device.getMxId()} {device.state}")
1.1.1.1 1844301081D4650F00 XLinkDeviceState.X_LINK_UNBOOTED
1.1.1.2 18443010B1C8690F00 XLinkDeviceState.X_LINK_UNBOOTED
1.1.1.4 18443010A175680F00 XLinkDeviceState.X_LINK_UNBOOTED
1.1.3 18443010E109690F00 XLinkDeviceState.X_LINK_UNBOOTED
1.1.2 1844301081D1650F00 XLinkDeviceState.X_LINK_UNBOOTED
//
// Here are results from main.py
//
c:\Users\tonya\OneDrive - Viewray Systems Inc\Documents\Python>python main.py
Found 5 devices
c:\Users\tonya\OneDrive - Viewray Systems Inc\Documents\Python\main.py:38: DeprecationWarning: Use constructor taking 'UsbSpeed' instead
device: dai.Device = stack.enter_context(dai.Device(openvino_version, dev_info, False))
Exception in thread Thread-2 (worker):
Exception in thread Thread-3 (worker):
Traceback (most recent call last):
File "C:\Users\tonya\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1045, in _bootstrap_inner
Traceback (most recent call last):
File "C:\Users\tonya\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1045, in _bootstrap_inner
self.run()
File "C:\Users\tonya\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 982, in run
self.run()
File "C:\Users\tonya\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 982, in run
self._target(\*self._args, \*\*self._kwargs)
File "c:\Users\tonya\OneDrive - Viewray Systems Inc\Documents\Python\main.py", line 38, in worker
self._target(\*self._args, \*\*self._kwargs)
File "c:\Users\tonya\OneDrive - Viewray Systems Inc\Documents\Python\main.py", line 38, in worker
device: dai.Device = stack.enter_context(dai.Device(openvino_version, dev_info, False))
device: dai.Device = stack.enter_context(dai.Device(openvino_version, dev_info, False))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Failed to boot device!
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Failed to boot device!
Exception in thread Thread-5 (worker):
Traceback (most recent call last):
File "C:\Users\tonya\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1045, in _bootstrap_inner
self.run()
File "C:\Users\tonya\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 982, in run
self._target(\*self._args, \*\*self._kwargs)
File "c:\Users\tonya\OneDrive - Viewray Systems Inc\Documents\Python\main.py", line 38, in worker
device: dai.Device = stack.enter_context(dai.Device(openvino_version, dev_info, False))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Failed to boot device!
Exception in thread Thread-1 (worker):
Traceback (most recent call last):
File "C:\Users\tonya\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1045, in _bootstrap_inner
self.run()
File "C:\Users\tonya\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 982, in run
self._target(\*self._args, \*\*self._kwargs)
File "c:\Users\tonya\OneDrive - Viewray Systems Inc\Documents\Python\main.py", line 38, in worker
device: dai.Device = stack.enter_context(dai.Device(openvino_version, dev_info, False))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Failed to find device (1.1.1.1), error message: X_LINK_DEVICE_NOT_FOUND
Exception in thread Thread-4 (worker):
Traceback (most recent call last):
File "C:\Users\tonya\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1045, in _bootstrap_inner
self.run()
File "C:\Users\tonya\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 982, in run
self._target(\*self._args, \*\*self._kwargs)
File "c:\Users\tonya\OneDrive - Viewray Systems Inc\Documents\Python\main.py", line 38, in worker
device: dai.Device = stack.enter_context(dai.Device(openvino_version, dev_info, False))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Failed to find device (1.1.3), error message: X_LINK_DEVICE_NOT_FOUND