Ubuntu – “libpeas-WARNING **: Could not find loader ‘python3’ for plugin” when loading a pluging in gedit

geditpython3

I recently upgraded to Ubuntu 13.04 and I use gedit for a lot of things.

I was trying to install some plugins that I use quite frequently and I came into some issues.

First I installed the plugins like so:

sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get install gedit-plugins

I can see the plugins in gedit but when I choose to use a plugin via the edit>preferences>plugins menu this message shows up:

(gedit:6027): libpeas-WARNING **: Could not find loader 'python3' for plugin    
'codecomment'

I know I have python3 installed because when I type python3 in my terminal I get:

 Python 3.3.1 (default, Apr 17 2013, 22:32:14) 
 [GCC 4.7.3] on linux
 Type "help", "copyright", "credits" or "license" for more information.
 >>> 

I also have python 2.7.4, by similar terminal command.

If anyone can help me get these plugins up and running in gedit I would appreciate it very much.

Best Answer

I had the same issue with Ubuntu 12.04 and Gedit 3.4.1, but with a different plug-in.

This is how I resolved it: Find the file [plugin-name]*.plugin in gedit's plugin directory and edit the line Loader=python3 to Loader=python

My gedit plugin-dir was under /usr/lib/gedit/plugins/ if it helps.