# DeepStream pyds library issue

**URL:** <https://forums.developer.nvidia.com/t/deepstream-pyds-library-issue/209352>\
**Category:** DeepStream SDK\
**Tags:** python\
**Created:** [March 25, 2022, 3:22am UTC](https://forums.developer.nvidia.com/t/deepstream-pyds-library-issue/209352 "2022-03-25T03:22:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![srikar](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@srikar](https://forums.developer.nvidia.com/u/srikar)\
**Post date:** [March 25, 2022, 3:22am UTC](https://forums.developer.nvidia.com/t/deepstream-pyds-library-issue/209352/1 "2022-03-25T03:22:04Z")

</div>

**• Hardware Platform (GPU):** Nvidia RTX 3060  
**• DeepStream Version:** Triton Inference Server docker with Triton Inference Server  
**• NVIDIA GPU Driver Version (valid for GPU only):** 470.103.01

I want to run the [DeepStream test-2 sample application](https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/blob/master/apps/deepstream-test2)

Here are the steps I followed:

**Run the docker container:**  
`sudo docker run --gpus '"'device=0'"' -it -v /opt/nvidia/deepstream/deepstream/sources/python -w /opt/nvidia/deepstream/deepstream-6.0 nvcr.io/nvidia/deepstream:6.0.1-triton`

**Install dependencies**

```auto
cd /opt/nvidia/deepstream/deepstream-6.0
./docker_python_setup.sh

```

```auto
apt-get install python-gi-dev
export GST_LIBS="-lgstreamer-1.0 -lgobject-2.0 -lglib-2.0"
export GST_CFLAGS="-pthread -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include"
git clone https://github.com/GStreamer/gst-python.git
cd gst-python
git checkout 1a8f48a
./autogen.sh PYTHON=/usr/bin/python
./configure PYTHON=/usr/bin/python
make
make install

```

**Cloned** (git clone [GitHub - NVIDIA-AI-IOT/deepstream\_python\_apps: DeepStream SDK Python bindings and sample applications](https://github.com/NVIDIA-AI-IOT/deepstream_python_apps)) repo of sample python applications under this dir[/opt/nvidia/deepstream/deepstream-6.0]

**I tried to run the test2 sample app using this cmd:**  
`python3 deepstream_test_2.py ../../../samples/streams/sample_720p.h264 1`

**I got the below error:**

```auto
Traceback (most recent call last):
  File "deepstream_test_2.py", line 31, in <module>
    import pyds
ModuleNotFoundError: No module named 'pyds'

```

**To install pyds I am following the steps as mentioned [here](https://forums.developer.nvidia.com/t/compiling-deepstream-6-0-python-bindings-pybind11-h-no-such-file-or-directory/195232/3):**

```auto
cd deepstream_python_apps/bindings/
mkdir build
cd build
cmake ..
make
pip3 install ./pyds-1.1.0-py3-none-linux_x86_64.whl

```

**When I run `make` I am facing the below error:**

```auto
[6%] Building CXX object CMakeFiles/pyds.dir/src/pyds.cpp.o
In file included from /opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_python_apps/bindings/include/bind/bindanalyticsmeta.hpp:20,
                 from /opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_python_apps/bindings/src/pyds.cpp:19:
/opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_python_apps/bindings/include/bind/bind_string_property_definitions.h:18:10: fatal error: pybind11/pybind11.h: No such file or directory
   18 | #include "pybind11/pybind11.h"
      | ^ ~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pyds.dir/build.make:63: CMakeFiles/pyds.dir/src/pyds.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/pyds.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

```

How to resolve this issue of installing pyds?

Thanks

---

<div class="post-metadata">

**Author:** ![kayccc](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kayccc/32/14043_2.png) [@kayccc](https://forums.developer.nvidia.com/u/kayccc)\
**Post date:** [March 29, 2022, 3:15am UTC](https://forums.developer.nvidia.com/t/deepstream-pyds-library-issue/209352/3 "2022-03-29T03:15:34Z")

</div>

Sorry for the late response, will have team to do the investigation and provide suggestions soon. Thanks

---

<div class="post-metadata">

**Author:** ![willemvdkletersteeg](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@willemvdkletersteeg](https://forums.developer.nvidia.com/u/willemvdkletersteeg)\
**Post date:** [March 29, 2022, 1:38pm UTC](https://forums.developer.nvidia.com/t/deepstream-pyds-library-issue/209352/4 "2022-03-29T13:38:13Z")

</div>

You should download the wheel manually here:

> **[Releases · NVIDIA-AI-IOT/deepstream\_python\_apps](https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/releases)**
>
> DeepStream SDK Python bindings and sample applications - NVIDIA-AI-IOT/deepstream\_python\_apps

and COPY it into your container. Then do the pip install.

---

<div class="post-metadata">

**Author:** ![Amycao](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/amycao/32/11342_2.png) [@Amycao](https://forums.developer.nvidia.com/u/Amycao)\
**Post date:** [March 30, 2022, 7:12am UTC](https://forums.developer.nvidia.com/t/deepstream-pyds-library-issue/209352/5 "2022-03-30T07:12:13Z")

</div>

> [@srikar](#):
>
> `/opt/nvidia/deepstream/deepstream-6.0/sources/deepstream_python_apps/bindings/include/bind/bind_string_property_definitions.h:18:10: fatal error: pybind11/pybind11.h: No such file or directory`

Did you install gst-python?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [April 20, 2022, 2:45am UTC](https://forums.developer.nvidia.com/t/deepstream-pyds-library-issue/209352/7 "2022-04-20T02:45:18Z")

</div>

Closed on April 20, 2022, 2:45am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
