AttributeError: 'NoneType' object has no attribute 'set_property'

I have added runtime: nvidia into the docker-compose file and installed the cuda 10.2 by using bash script mentioned here.

nvcc --vesion
image

Also installed nvidia-container toolkit by sudo apt-get install -y nvidia-container-toolkit

When i try running the c app, getting the same error which i was getting earlier.

Error:
deepstream-app: error while loading shared libraries: libnvinfer.so.8: cannot open shared object file: No such file or directory

I have used jetpack 4.6.3, and the Deepstream 6.0.1. In this doc it’s mentioned that Jetpack 4.6.1 GA is compatible with Deepstream 6.0.1.
I tried by downgraded the jetson version 4.6.3 to 4.6.1 . Still getting the same error.

image