Comment 4 for bug 839712

Revision history for this message
Stojan Dimitrovski (sdimitrovski) wrote :

Just a side note, as I have gone to determine why the plugins won't activate, I discovered that running "python2.7 -c "from gi.repository import Gedit" fails, but running "python3 -c "from gi.repository import Gedit" doesn't. I am assuming it could be the way libpeas/gedit is linked to Python, and/or the version of the interpreter that it loads. I can also see that gedit depends on python 2.7.

When I try to activate the "Bracket Completion" plugin, gedit outputs this:
(gedit:25444): Gtk-CRITICAL **: gtk_accel_label_set_accel_closure: assertion `gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed

(gedit:25444): libpeas-WARNING **: Error initializing Python interpreter: could not import gi

(gedit:25444): libpeas-WARNING **: Please check the installation of all the Python related packages required by libpeas and try again

(gedit:25444): libpeas-WARNING **: Cannot load Python plugin 'bracketcompletion' since libpeas was not able to initialize the Python interpreter

(gedit:25444): libpeas-WARNING **: Error loading plugin 'bracketcompletion'

This could mean that the python "gi" module is probably written for python 3, but not python 2.7.

Hope this helps.