gedit plugin error - plugin loader 'python3' was not found

  • Last Update :
  • Techknowledgy :

If this still returns an error - likely because it doesn't match python3 syntax: Use the command 2to3 as follows:

cd python_directory /
   sudo 2 to3 - f all - w *

If this still returns an error - likely because it doesn't match python3 syntax: Use the command 2to3 as follows:

cd python_directory /
   sudo 2 to3 - f all - w *

e.g. for gedit-latex-plugin...

cd / usr / lib / gedit / plugins /
   sudo sed - i 's/python/python3/g'
latex.plugin # only
if you haven 't already replaced python->python3
cd latex /
   sudo 2 to3 - f all - w *

Putting this in .bashrc works:

export CONDAPATH=$HOME/miniconda3/bin
export PATH="$CONDAPATH:$PATH"
# ^ put these two lines instead of the original miniconda export.

# __ : naming convention for private functions
__geditfix() {
    export PATH=$(echo $PATH | sed -E "s|:$CONDAPATH\|$CONDAPATH:||g"); # remove conda from the PATH environment variable, using RegEx
    gedit "$@"; # call gedit, giving it all arguments
    export PATH="$CONDAPATH:$PATH"; # add conda to the PATH environment variable
} # Using a function rather than an alias, so that the filename is given to gedit, as it should and not to setconda().

alias gedit='__geditfix' # So that we can run our fix simply via: gedit <arguments>.

Alternative solution: install this v:

conda install - c conda - forge pygobject

Suggestion : 2

I did wonder if, because the repo is several years old, maybe it is a python2/3 issue, or maybe the plugins need to be in a different directory to be found correctly as gedit is ran from a shortcut on the dock. If anyone knows of a plugin that does the same things as this plugin suite that I could use instead then pls let me know. I wanted better syntax highlighting for python mainly - so it was more like atom syntax highlighting, and the line copying part.,Gedit plugin could not be loaded: plugin loader "python" not found.,I cloned some gedit plugins from github, created a gedit/plugins directory in the .local/share directory as directed by the author. When I tried to enable them, they were found, but I got an error message:,I also have anaconda installed and it has some path stuff in the bashrc which I thought might be the cause, but when I took it out, it made no difference.

Any ideas on how I enable this? The plugin loader has this:

[Plugin]
Loader = python

Suggestion : 3

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.,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.,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).,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:

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

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

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

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 2 to3 2 to3 - 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