Which is the package gi?

I am try to run deepstream-test1, but there is an error which inform me that cannot find the package. The segment is like this:

import sys
import gi
gi.require_version(‘Gst’, ‘1.0’)
from gi.repository import GObject, Gst
from common.is_aarch_64 import is_aarch64
from common.bus_call import bus_call

I have conducted the comments like “sudo apt install python3-gi python3-dev python3-gst-1.0 -y”. Anyone can help me?

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

Thank you for responding.

**• Hardware Platform: geforce 1080ti
**• DeepStream Version: 5.1
**• JetPack Version (valid for Jetson only): No
**• TensorRT Version: 8.0
**• NVIDIA GPU Driver Version (valid for GPU only): 165.19.01
**• Issue Type( questions, new requirements, bugs):
import gi
ModuleNotFoundError: No module named ‘gi’

I have conducted these commonds:
apt install python3-gi python3-dev python3-gst-1.0 -y
apt install python3-opencv -y
apt install python3-numpy -y
apt install libgstrtspserver-1.0-0 gstreamer1.0-rtsp -y
apt install libgirepository1.0-dev -y
apt install gobject-introspection gir1.2-gst-rtsp-server-1.0 -y

what wrong with it? How to fix it?

Please follow this to setup python environments:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.