How do I fix "The plugin "External Tools" could not be loaded. An error occured: Plugin loader "python 3" was not found)" error in GEdit?

Random Person

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.

Gedit preferences

When I close GEdit and reopen it, the option is turned off.

Gedit preferences

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.

Error message in gedit

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.

Kulfy

You must and should rollback to default Python version, i.e., 3.8.2 in 20.04 since there are some libraries which are required by some packages installed in the system only for the default version of Python that may not be available or compatible with other versions. Since you've installed Python 3.8.3 from source, the files were copied in /usr/local/ and /usr/local/bin/python3 is created which a symlink, a.k.a, symbolic link or soft link, of /usr/local/bin/python3.8.

The default value of PATH contains /usr/local/bin before /usr/bin, thus given priority and the reason behind invoking Python 3.8.3 instead of 3.8.2 whenever python3 or python3.8 is called (since default Python is installed in /usr/bin).

To revert back to the default python3 won't take much time for you. You have 3 options to revert back.

  1. Removing the symlink: Just delete /usr/local/bin/python3. Yes that's it.

  2. Recreate symlink: You can make /usr/local/bin/python3 to point to /usr/bin/python3.8 or /usr/bin/python3 (which is already a symlink to /usr/bin/python3.8 as per your message in general room).

    To recreate symlink, use ln with s and f options, i.e.,

    sudo ln -sf /usr/bin/python3.8 /usr/local/bin/python3 # You may replace /usr/bin/python3.8 with /usr/bin/python3 as explained above
    
  3. Giving /usr/bin priority (overkill): Edit /etc/environment and place /usr/bin before /usr/local/bin.

    Warning!!! You should handle /etc/environment with care. Don't touch or do anything unless you know what you're doing.

    Alternatively, you can place PATH="/usr/bin:$PATH" in /.profile.

    Once done, logout and relogin to make changes take place.

Since you've installed Python 3.8.3 from source, you need to delete files manually as Python don't provide uninstall option for make. To delete them run:

# From /usr/local/bin
cd /usr/local/bin
sudo rm 2to3 2to3-3.8 easy_install-3.8 idle3 idle3.8 pip3 pip3.8 pydoc3 pydoc3.8 python3 python3.8 python3.8-config python3-config
# From /usr/local/include
sudo rm -r /usr/local/include/python3.8
# From /usr/local/lib
cd /usr/local/lib
sudo rm -r libpython3.8.a pkgconfig python3.8
# From /usr/local/man/man1
cd /usr/local/man/man1
sudo rm -r python3.1 python3.8.1
# From /usr/local/share/man/man1
cd /usr/local/share/man/man1
sudo rm -r python3.1 python3.8.1

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

What is a NoReverseMatch error, and how do I fix it?

From Java

What is an undefined reference/unresolved external symbol error and how do I fix it?

From Java

Plugin project :location_web not found. Please update settings.gradle. How do I fix this?

From Dev

How do I troubleshoot ipython-listener and/or gedit's ipython plugin?

From Dev

How do I fix a "memory leak of type 'wxPyXmlSubclassFactory *', no destructor found" error from wxPython/wxFormBuilder?

From Dev

How do I fix Perl Getopt::Long event not found error?

From Dev

How do I fix this rstrip attribute error?

From Dev

How do I fix this Eclipse error?

From Dev

How do I fix a Java:26: error: No suitable constructor found

From Dev

How do I fix the directory not found for option -F error

From Dev

How do I fix a dimension error in TensorFlow?

From Dev

How do I fix "/bin/sh: 2: patch: not found" and "make: *** [lib/libcurl.a] Error 127" errors?

From Dev

Gedit external tools plugin failed to load

From Dev

How do I install a plugin for gEdit v3?

From Dev

How do I fix manifest-update lifecycle error of android-maven-plugin in Eclipse?

From Dev

Gedit external tools plugin failed to load

From Dev

How do I fix "The plugin "External Tools" could not be loaded. An error occured: Plugin loader "python 3" was not found)" error in GEdit?

From Dev

How do I fix 'jekyll: command not found' error permanently?

From Dev

How do you use the Commander plugin in gedit?

From Dev

How do I fix a "memory leak of type 'wxPyXmlSubclassFactory *', no destructor found" error from wxPython/wxFormBuilder?

From Dev

How do I fix this source not found error? Reading text file with buffered reader - Java

From Dev

how do i fix a mounting error with an external drive

From Dev

How do I install a plugin for gEdit v3?

From Dev

How to fix I/O error on external HDD?

From Dev

After windows install, Fedora no longer boots up. Getting error: file '/vmlinuz' not found found. How do I fix the boot?

From Dev

How do I fix the "processing-java: command not found" error in the terminal

From Dev

How do I fix Python io.TextIOWrapper error message?

From Dev

How Can I Fix An Overflow Error From the Calculation In Python 3?

From Dev

How do I fix this syntax error with Python serial?

Related Related

  1. 1

    What is a NoReverseMatch error, and how do I fix it?

  2. 2

    What is an undefined reference/unresolved external symbol error and how do I fix it?

  3. 3

    Plugin project :location_web not found. Please update settings.gradle. How do I fix this?

  4. 4

    How do I troubleshoot ipython-listener and/or gedit's ipython plugin?

  5. 5

    How do I fix a "memory leak of type 'wxPyXmlSubclassFactory *', no destructor found" error from wxPython/wxFormBuilder?

  6. 6

    How do I fix Perl Getopt::Long event not found error?

  7. 7

    How do I fix this rstrip attribute error?

  8. 8

    How do I fix this Eclipse error?

  9. 9

    How do I fix a Java:26: error: No suitable constructor found

  10. 10

    How do I fix the directory not found for option -F error

  11. 11

    How do I fix a dimension error in TensorFlow?

  12. 12

    How do I fix "/bin/sh: 2: patch: not found" and "make: *** [lib/libcurl.a] Error 127" errors?

  13. 13

    Gedit external tools plugin failed to load

  14. 14

    How do I install a plugin for gEdit v3?

  15. 15

    How do I fix manifest-update lifecycle error of android-maven-plugin in Eclipse?

  16. 16

    Gedit external tools plugin failed to load

  17. 17

    How do I fix "The plugin "External Tools" could not be loaded. An error occured: Plugin loader "python 3" was not found)" error in GEdit?

  18. 18

    How do I fix 'jekyll: command not found' error permanently?

  19. 19

    How do you use the Commander plugin in gedit?

  20. 20

    How do I fix a "memory leak of type 'wxPyXmlSubclassFactory *', no destructor found" error from wxPython/wxFormBuilder?

  21. 21

    How do I fix this source not found error? Reading text file with buffered reader - Java

  22. 22

    how do i fix a mounting error with an external drive

  23. 23

    How do I install a plugin for gEdit v3?

  24. 24

    How to fix I/O error on external HDD?

  25. 25

    After windows install, Fedora no longer boots up. Getting error: file '/vmlinuz' not found found. How do I fix the boot?

  26. 26

    How do I fix the "processing-java: command not found" error in the terminal

  27. 27

    How do I fix Python io.TextIOWrapper error message?

  28. 28

    How Can I Fix An Overflow Error From the Calculation In Python 3?

  29. 29

    How do I fix this syntax error with Python serial?

HotTag

Archive