gedit-intelligent-text-completion
gedit-intelligent-text-completion copied to clipboard
Couldn't find loader for python3
From an email I got:
I put
.plugin
and.py
in/usr/lib/gedit/plugins
but when I check it from preferences of Gedit it says he couldn't find loader for python3.I'm running ElementaryOS Luna based on Ubuntu 12.04 (tried all version of your plugin) how do I solve?Can u please help me ?
Can you please specify which version of Gedit you are using?
Also, can you try the following plugin code?
example_plugin.py
:
from gi.repository import Gtk, GObject, Gedit, PeasGtk
class ExamplePyPlugin(GObject.Object, Gedit.WindowActivatable, PeasGtk.Configurable):
__gtype_name__ = "ExamplePyPlugin"
window = GObject.property(type=Gedit.Window)
def __init__(self):
GObject.Object.__init__(self)
def do_activate(self):
pass
def do_deactivate(self):
pass
def do_update_state(self):
pass
def do_create_configure_widget(self):
widget = Gtk.Label("A configuration widget goes here.")
return widget
example_plugin.plugin
:
[Plugin]
Loader=python3
Module=example_plugin
IAge=3
Name=Example plugin
Description=A Python plugin example
Authors=Jens Nyman
@jensmotum Hi, I specify python3 or python2.7 .but it not work.What can i do for it?Thanks.