Skip to content

Error with updated SIP #3

Closed
dkadioglu opened this Issue Sep 11, 2013 · 11 comments

4 participants

@dkadioglu

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
self.pyapplet.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.

@benoit-monin
Owner

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.

@benoit-monin
Owner

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.

@benoit-monin
Owner

Opened a bug upstream

@benoit-monin
Owner

The upstream bug has been marked as wontfix, so I'll close this one too.

Farewell Py-cashew, it's been a fun ride...

@che0
che0 commented Jan 6, 2014

So, if this great plasmoid is gone forever, does anyone know of any other option to kill the cashew, besides patching plasma itself?

@benoit-monin
Owner

You can use stealth cashew.

@che0
che0 commented Jan 6, 2014

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!

@che0
che0 commented Jan 6, 2014

...aaand it's gone. 👍

@dneuge
dneuge commented Jan 6, 2014
@che0
che0 commented Jan 6, 2014

I have KDE 4.11.2, installed ihatethecashew in Gentoo (don't know to which upstream version it corresponds), and it works just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.