What Do I Do If I Get Error "can not find the element factory : mxpi_xxxpostprocessor" During the Running of an Application Project Developed Based on the MindX SDK?

Symptom

When I use the MindX SDK, the error message "can not find the element factory : mxpi_xxxpostprocessor" is displayed. Then I run the ./gst-inspect-1.0 mxpi_xxxpostprocessor (plugin name) command in the $HOME/Ascend/mindx_sdk/<sdk_version_package>/opensource/bin directory to check the plugin. It is found that the plugin can be loaded properly, but the same error message persists.

Possible Cause

The historical cache of GStreamer is not cleared.

Solution

  1. Ensure that Python 3.9 has been installed and copy libpython3.9.so.1.0 to the /usr/lib64/ directory.
  2. Run the following command (select x86_64.bin or aarch64.bin based on the operating environment) to clear the historical cache of GStreamer, and then run the program:
    rm ~/.cache/gstreamer-1.0/registry.x86_64.bin