Setup info
• Hardware Platform (Jetson / GPU) Jetson AGX Orin
• DeepStream Version 6.2 (inside of docker)
• JetPack Version (valid for Jetson only) 5.1.1 (L4T 35.3.1)
• Issue Type( questions, new requirements, bugs) BUG
Problem
When I try to launch deepstream apps or try to import pyds in python I get NvRmMemInitNvmap failed with Permission denied
Reproduction
Build docker:
FROM nvcr.io/nvidia/deepstream-l4t:6.2-base
# Usefull tools, apps and libraries
RUN apt-get update && apt install -y \
g++ gcc git automake \
ffmpeg wget sudo htop x11-apps nano xonsh \
libopenmpt-dev python3-pip python3-gi
RUN useradd -ms /bin/bash -G sudo myuser && echo "myuser ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/ubuntu
ENV TERM=xterm-256color
USER myuser
WORKDIR /home/myuser
RUN sudo apt install -y libcairo2-dev
RUN wget https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/releases/download/v1.1.6/pyds-1.1.6-py3-none-linux_aarch64.whl && \
pip3 install ./pyds-1.1.6-py3-none-linux_aarch64.whl
# TAG v1.1.6 is meant for deepstream 6.2
docker build --tag pyds-jetson .
Run docker:
docker run -it --rm --net=host --runtime nvidia -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-6.3 -v /tmp/.X11-unix/:/tmp/.X11-unix pyds-jetson:latest
Open python and try to import pyds
myuser@ubuntu:~$ python3
Python 3.8.10 (default, Nov 22 2023, 10:22:35)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyds
NvRmMemInitNvmap failed with Permission denied
549: Memory Manager Not supported
****NvRmMemInit failed**** error type: 196626
*** NvRmMemInit failed NvRmMemConstructor
>>>
The only way to avoid this problem is to install pyds and launch it with sudo
.