The error occurs because the module named gi
is absent. To install the gi module use the below command as per the environment you use.
#On Ubuntu machine use:
$ sudo apt-get install python3-gi
# On CentOS / RHEL use yum:
$ sudo yum install python36-gobject.x86_64
# Directly install using Pip:
$ pip3 install PyGObject
Also Read:
ERROR: INVALID_ARGUMENT: getPluginCreator could not find plugin ReverseSequence version 1