Describe the bug
I had STlink related rules lying around in my /etc/udev/rules.d with permissions preventing the grep command (linuxCheckApplyUsbRules() in config_manager.py) from running on them. All other good rules had octal permission 644 while these had 700. This caused python3 depthai_demo.py to fail and complain about udev rules even though I had properly added the OAK-D ones.
To Reproduce
Steps to reproduce the behavior:
sudo chmod 700 49-stlinkv1.rulespython3 depthai_demo.pyDepthai version installed: 0.4.1.1
WARNING: Usb rules not found
Set rules:
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"' | sudo tee /etc/udev/rules.d/80-movidius.rules
sudo udevadm control --reload-rules && udevadm trigger
Disconnect/connect usb cable on host!
Expected behavior
The demo app should've launched.
SOLUTION
Simply changing the octal permissions for the offending rules fixed the issue.
sudo chmod 644 <annoying.rules>
Described fix in issue description^^
Awesome, thanks for taking the time to write this up @botmayank so that others will know how to fix this when running into the same or similar issue!
Most helpful comment
Described fix in issue description^^