Install python-gi by entering the following commands in the terminal:
sudo apt update sudo apt install python-gi
Description:
Python 2.x bindings for gobject-introspection libraries
GObject is an abstraction layer that allows programming with an object paradigm that is compatible with many languages. It is a part of Glib, the core library used to build GTK+ and GNOME. . This package contains the Python 2.x binding generator for libraries that support gobject-introspection, i. e. which ship a gir1.2-
Homepage: https://wiki.gnome.org/Projects/PyGObject
Version: 3.26.1-2
Section: python