Registered Member
|
Hi everyone!
Currently i'm learning python and tried add nepomuk tag for file. I make script http://pastebin.com/FAiNiskD but when use it i get this:
And tag not adding to file. Also i found strange bug... If select file in dolphin and add tag with info panel (F11) - all working fine. But if select file, open properties (Alt+Return), go to Info tab and add tag here - nothing will change. Maybe it has something to do with my error? Sry for my bad english |
Administrator
|
Those error messages indicate the Nepomuk may not be running on your system - at least not fully.
Which version of KDE are you using?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
I'm using arch linux and latest (kde-meta-kdebase) version of KDE - 4.11.2 This may be due to the fact that I turned off akonadi? |
Registered Member
|
Hmmm, i turned on akonadi but error still here... |
Registered Member
|
Well i test my script on other distro (latest kubuntu) and get same errors.
Also bug with adding tags in info panel still reproduce. |
Administrator
|
I would recommend filing a bug in this case - it seems the API is not working as intended.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
You need a working event loop, try to add this line to your script.
You could work with Nepomuk classes without problems using python but if you want working with Nepomuk2, recommended, you need other bindings not available in any distro. If you want examples you could check my programs Nepoogle, Neposidekick or Drop2TagIcon, all developed in Python.
Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
|
Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell