I'm using GEdit version 3.36.2 pre-installed with Ubuntu 20.04.1. I wanted to enable the External Tools plugin of GEdit, but I'm unable to do so.
When I click on the External Tools option, I get ⛔ symbol.
When I close GEdit and reopen it, the option is turned off.
If I enable it, I'll again get the same ⛔ symbol.
How do I fix this issue?
Edit 1:
gir1.2-gtksource-3.0
was not installed when I asked this question. After jokerdino's suggestion in the Ask Ubuntu General Room, I installed gir1.2-gtksource-3.0
using this command: sudo apt install gir1.2-gtksource-3.0
.
I noticed an error message after installing gir1.2-gtksource-3.0
.
The plugin "External Tools" could not be loaded
An error occured: Plugin loader "python 3" was not found
I am not sure if I could see this error message before installing gir1.2-gtksource-3.0
. Maybe I didn't place the mouse pointer on the symbol (for few seconds) the first time when I noticed the symbol or maybe it could be some other reason. I don't know.
jokerdino suggested me to open gedit from terminal and check if I got any specific error while turning on External Tools. I did get an error in the terminal.
** (gedit:14693): WARNING **: 20:21:59.976: Error initializing Python Plugin Loader: PyGObject initialization failed
ImportError: could not import gobject (error was: ModuleNotFoundError("No module named 'gi'"))
** (gedit:14693): WARNING **: 20:21:59.976: Please check the installation of all the Python related packages required by libpeas and try again
(gedit:14693): libpeas-WARNING **: 20:21:59.976: Loader 'python3' is not a valid PeasPluginLoader instance
I guess Python 3.8.2 was pre-installed with my Ubuntu installation. I wanted to upgrade to Python 3.8.3. So I followed the instructions mentioned in this website Install Python 3.8.3 in Ubuntu 20.04 LTS - TechPiezo.
At the end of the article, two suggestions were given. First is to replace (or overwrite) already installed version 3.8.2 of Python; second is to install Python v3.8.3 alongside the Python v3.8.2. I followed the first option.
sudo apt purge gedit gedit-common
and thensudo apt install gedit
.~
are owned by root. In my case they are owned by me.