gedit-intelligent-text-completion icon indicating copy to clipboard operation
gedit-intelligent-text-completion copied to clipboard

Couldn't find loader for python3

Open jensmotum opened this issue 10 years ago • 2 comments

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 ?

jensmotum avatar Oct 05 '14 09:10 jensmotum

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 avatar Oct 05 '14 09:10 jensmotum

@jensmotum Hi, I specify python3 or python2.7 .but it not work.What can i do for it?Thanks.

AaronConlon avatar Jan 23 '19 15:01 AaronConlon