Tried Deepstream sample deepstream_test_1.py but failed

  1. I tried to execute test3 sample, but got the following error message:
    ==========================================================
    $ python3 deepstream_test_3.py rtsp://admin:aa12345678@192.168.2.4:554/h265/ch1/main/av_stream
    Creating Pipeline

Creating streamux

Creating source_bin 0

Creating source bin
source-bin-00
Creating Pgie

Unable to create pgie
Creating tiler

Creating nvvidconv

Creating nvosd

Creating transform

Creating EGLSink

Traceback (most recent call last):
File “deepstream_test_3.py”, line 346, in
sys.exit(main(sys.argv))
File “deepstream_test_3.py”, line 285, in main
pgie.set_property(‘config-file-path’, “dstest3_pgie_config.txt”)
AttributeError: ‘NoneType’ object has no attribute ‘set_property’

==========================================================

  1. I still get an error when i execute the following command:
    :~/deepstream_sdk_v4.0.2_jetson/samples/configs/deepstream-app$ deepstream-app -c source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt
    deepstream-app: error while loading shared libraries: libnvinfer.so.6: cannot open shared object file: No such file or directory

==========================================================

  1. I tried to follow the content below, but still can’t solve it, how can i eliminate these problems?

Thank you.

tensorflow.python.framework.errors_impl.NotFoundError: libnvinfer.so.5: cannot open shared object file: No such file or directory