Thanks for the pointer.
Confirming that I can build image from Dockerfile as-is (from python:3.9-bullseye
) or from ubuntu:20.04
However, if I were to use nvidia/cudagl:11.1.1-devel-ubuntu20.04
or nvidia/cudagl:11.4.2-devel-ubuntu20.04
as the base image and run it with
sudo docker run --rm \
--runtime=nvidia -ti \
--privileged \
-v /dev/bus/usb:/dev/bus/usb \
--device-cgroup-rule='c 189:* rmw' \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
depthai-python-cuda \
python3 /depthai-python/examples/ColorCamera/rgb_preview.py
I will get the following error
Traceback (most recent call last):
File "/depthai-python/examples/ColorCamera/rgb_preview.py", line 24, in <module>
with dai.Device(pipeline) as device:
RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND
Wonder if you have any pointers why this is the case? Thanks in advance.