With the recent SIP release 4.15.1 pykde broke and was not compilable: https://bugs.kde.org/show_bug.cgi?id=323899
With the patch which is proposed in that bug report pykde builds again and python-based plasmoids are working again, except Py-Cashew:
Traceback (most recent call last):
File "/usr/share/apps/plasma_scriptengine_python/pyappletscript.py", line 75, in init
File "/home/username/.kde4/share/apps/plasma/plasmoids/py-cashew/contents/code/main.py", line 40, in init
self.cashews = self.getCashew()
File "/home/username/.kde4/share/apps/plasma/plasmoids/py-cashew/contents/code/main.py", line 66, in getCashew
if c.toolBoxItem() != None]
RuntimeError: no access to protected functions or signals for objects not created from Python
If you need further information, please ask.
I just upgraded to python-sip 4.15.1 and I also have the bug. I'll try to fix that but if the error message is correct, I'm not sure there is a way to make it work: the only purpose of py-cashew is to access an object not created by python.
I made some tests. I can call most methods from the containment object. For example calling openToolBox works as intended.
The methods toolBox and toolBoxItem are defined but I get a runtime error as soon as I call them.
This really looks like a bug in the python binding.
Opened a bug upstream
The upstream bug has been marked as wontfix, so I'll close this one too.
Farewell Py-cashew, it's been a fun ride...
So, if this great plasmoid is gone forever, does anyone know of any other option to kill the cashew, besides patching plasma itself?
You can use stealth cashew.
That apparently uses the same API :/ Anyway, you deserve a big thanks for keeping that ugly thing hidden for more than two years. Thank you!
This is the only working plasmoid I know of: https://github.com/gustavosbarreto/plasma-ihatethecashew
if you use Arch Linux: https://aur.archlinux.org/packages/kdeplasma-applets-ihatethecashew/
...aaand it's gone. 👍
I have KDE 4.11.2, installed ihatethecashew in Gentoo (don't know to which upstream version it corresponds), and it works just fine.