I\'m trying to add a repository to ppa with the add-apt-repository commands but the _gi module from Python is not found.
add-apt-repository
_gi
I did this command
Thanks to a comment by Wilhelm, I found that the solution is:
sudo ln -s /usr/lib/python3/dist-packages/gi/_gi.cpython-{36m,37m}-x86_64-linux-gnu.so
This worked for me with Python 3.7 on Ubuntu.