Is this test run in the docker or in native environment?
You can add “GST_DEBUG=3” ahead of your command to get more logs.
If you are working in the DeepStream6.2 docker, the most convenient way to install python samples is to use script mentioned here: DeepStream 6.2 is now available for download! - #3 by yingliu