The Namespace Gst not available error generally errors while running the below code snippet.
import gi
gi.require_version('Gst', '1.0')
from gi.repository import Gst
To resolve this error install the Gst package that is missing. Follow the below command to resolve this error.
sudo apt-get install gstreamer-1.0
If it doesn’t work, remove and reinstall all the gstreamer-1.0 with -f
flag in the above command.
Also resolve gi issue using:
ModuleNotFoundError: No module named ‘gi’