Hi all ,
I am trying to work with the oak CM4 with raspberry.
I connected to raspberry and I tried to run depthai_demo.py but I get this error :
Using depthai module from: /home/pi/.local/lib/python3.9/site-packages/depthai.cpython-39-arm-linux-gnueabihf.so
Depthai version installed: 2.28.0.0
Setting up demo...
[2024-08-23 15:37:00.317] [depthai] [warning] skipping X_LINK_UNBOOTED device having name "2.1"
Traceback (most recent call last):
File "/home/pi/Desktop/depthai-main/depthai_demo.py", line 1054, in <module>
runOpenCv()
File "/home/pi/Desktop/depthai-main/depthai_demo.py", line 1044, in runOpenCv
demo.run_all(confManager)
File "/home/pi/Desktop/depthai-main/depthai_demo.py", line 132, in run_all
self.setup(conf)
File "/home/pi/Desktop/depthai-main/depthai_demo.py", line 180, in setup
self._deviceInfo = getDeviceInfo(self._conf.args.deviceId, args.debug)
File "/home/pi/.local/lib/python3.9/site-packages/depthai_sdk/utils.py", line 217, in getDeviceInfo
raise RuntimeError("No DepthAI device found!")
RuntimeError: No DepthAI device found!
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/home/pi/Desktop/depthai-main/depthai_demo.py", line 335, in stop
self._pm.closeDefaultQueues()
AttributeError: 'Demo' object has no attribute '_pm'
Sentry is attempting to send 2 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit
With other scripts I also get :
[2024-08-23 15:37:00.317] [depthai] [warning] skipping X_LINK_UNBOOTED device having name "2.1"
RuntimeError: Failed to connect to device, error message: X_LINK_DEVICE_ALREADY_IN_USE
What could be the issue here and how to solve it ? I am sure I am not running any other script and also I tried to reboot the raspberry but still nothing changed.
Thank you