I'm trying to access OAK-1 and run the demo script from deapthai repo.
But it always fails with an exception.
Tried it on macOS, works perfectly.
Below is the exception:
pi@raspberrypi:/depthai $ python3 depthai_demo.py -usbs usb2
Using depthai module from: /home/pi/.local/lib/python3.7/site-packages/depthai.cpython-37m-arm-linux-gnueabihf.so
Depthai version installed: 2.15.2.0
qt5ct: using qt5ct plugin
Setting up demo...
Available devices:
[0] 1844301091FD340E00 [X_LINK_UNBOOTED]
Floating point exception
Error while running demo script... Command '"/usr/bin/python3" depthai_demo.py -usbs usb2 --noSupervisor --guiType qt' returned non-zero exit status 136.
Waiting 5s for the device to be discoverable again...
Setting up demo...
Available devices:
[0] 1844301091FD340E00 [X_LINK_UNBOOTED]
USB Connection speed: UsbSpeed.HIGH
Disabling depth...
No previews available, adding defaults...
Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
Traceback (most recent call last):
File "depthai_demo.py", line 1081, in <module>
runOpenCv()
File "depthai_demo.py", line 1071, in runOpenCv
demo.run_all(confManager)
File "depthai_demo.py", line 129, in run_all
self.run()
File "depthai_demo.py", line 295, in run
self.device.startPipeline(self.pm.pipeline)
depthai.XLinkReadError: Couldn't read data from stream: '__rpc_main' (X_LINK_ERROR)
Stopping demo...
=== TOTAL FPS ===
Error in atexit.run_exitfuncs:
Traceback (most recent call last):
File "depthai_demo.py", line 359, in stop
self.pv.closeQueues()
File "/home/pi/depthai/depthai_sdk/src/depthai_sdk/managers/preview_manager.py", line 100, in closeQueues
for queue in self.outputQueues:
AttributeError: 'PreviewManager' object has no attribute 'outputQueues'