Tips & Tricks

ImportError: No module named gi

No module named gi
No module named gi

ImportError: No module named gi

I have experienced the following error while enabling Gufw on my Ubuntu 16.04. I have experienced the following error while enabling Gufw on my Ubuntu 16.04. “ImportError: No module named gi”

 
Traceback (most recent call last):
   File "/usr/share/gufw/gufw/gufw.py", line 21, in <module>
       from view.gufw import Gufw
   File "/usr/share/gufw/gufw/view/gufw.py", line 19, in <module>
       import gi
ImportError: No module named gi

You can fix this issue easily by installing python-gobject package on your Ubuntu machine. Run the following command on terminal.

 
sudo apt install python-gobject

Once the installation completes, please open the Gufw again. Run the following command.

 
gufw

and provide the password. The issue should be solved.

That’s it!

If you like this post and wish to receive more articles from us, please like our FB page: Grepitout

Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.

For more details on our services, please drop us an E-mail at info@grepitout.com

Topics