CAMERA NOT DETECTED in WSL2 Ubuntu 22.04

Hello everyone,

I am using ZED with docker in WSL2 (Ubuntu 22.04) but the camera is not detected.

Now I list all the steps I took:

  • I followed the official documentation (How to Install ZED SDK with Docker on Linux | Stereolabs)

  • I installed the CUDA Toolkit version 12.2 for WSL-Ubuntu.

  • I downloaded stereolabs/zed:4.0-devel-cuda12.1-ubuntu22.04 repository
    docker pull stereolabs/zed:4.0-devel-cuda12.1-ubuntu22.04

  • I attached the ZED 2i device to WSL with the command (from PowerShell):
    usbipd attach --busid <BUSID>

  • I ran the docker image with the command (from Linux terminal):
    docker run -it --gpus all --privileged stereolabs/zed:4.0-devel-cuda12.1-ubuntu22.04

  • once inside the container, I launch python and when I launch the commands:

import pyzed.sl as sl
zed = sl.Camera()
err = zed.open()
print(err)

I get the message
CAMERA NOT DETECTED

Here on the forum I found a similar topic but for Ubuntu 20.04 and it doesn’t have a solution to the problem (Zed 2i in WSL ubuntu20.04 - #3 by zed_for_sam).

I specify that in Windows the camera works correctly.

I hope someone can help me.
Thanks


Setup

  • Camera model: ZED 2i
  • OS: Windows 10 (WSL2: Ubuntu 22.04.3 LTS)
  • GPU: GeForce RTX 3060
  • CUDA version: 12.2
  • ZED SDK version: 4.0

Hi @icemanXVI
Welcome to the Stereolabs Community.

Please follow the thread on this topic: