error loading python example plugin

Asked by Leon

I started of writing an imgur plugin for diodon. So i cloned the plugin samples and copied the python example to ~/.local/share/diodon/plugins.

But when I clicked to enable the example plugin, I got this error:

leon@polly:~/.local/share/diodon/plugins/pythonsample$ diodon
ERROR:root:Could not find any typelib for Diodon
Traceback (most recent call last):
  File "/home/leon/.local/share/diodon/plugins/pythonsample/", line 27, in <module>
    from gi.repository import Diodon
ImportError: cannot import name Diodon

(diodon:31151): libpeas-WARNING **: Error loading plugin 'pythonsample'

Question information

English Edit question
Diodon Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Oliver Sauder (sao) said :

Converting this to a question if not really a bug.

Revision history for this message
Oliver Sauder (sao) said :

Hmm. Now the history has been lost after conversion ;(.

Here my answer again:
You have to install the package gir1.2-diodon-1.0 or better diodon-dev which installs the needed typelib. Such is currently not installed by default, as no python plugin is available so far in the official packages.

That gir1.2-gee-1.0 needs to be installed as well is actually a bug. gir1.2-diodon-1.0 should depend this package. Will open a bug for this.

For further question, please ping me on Freenode #diodon

Can you help with this problem?

Provide an answer of your own, or ask Leon for more information if necessary.

To post a message you must log in.