Hi. I'm using OAK-D Series 2 camera and trying to use depthai in WSL2.

My settings are

  • WSL2 (ubuntu 20.04) in Windows 11
  • OAK-D Series 2

I followed changed the usb port by command

usbpid attach --wsl --busid 2-3

Also, I checked that device was attached to ubuntu.

But I have an error message such as

and Movidius MyriadX detached from WSL automatically.

How can I solve the problem?

Hi @dugongtae
Did you install the dependencies? sudo wget -qO- https://docs.luxonis.com/install_dependencies.sh | bash. Make sure you use the latest depthai version.

Also make sure you reattach device each time you replug it. Or maybe try with -a flag to auto-bind it.

Thanks,
Jaka

    Hi @dugongtae
    Strange. Could you run echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"' | sudo tee /etc/udev/rules.d/80-movidius.rules
    sudo udevadm control --reload-rules && sudo udevadm trigger

    Let me know if it helps.

    Thanks,
    Jaka