SIP/PyKDE

Comments
Bookmark and Share

I just tried to test a plasmoid written in Python and got the initially confusing error message

the sip module implements API v7.0 but the PyKDE4.plasma module requires API v6.0

It wouldn’t be noteworthy except that my usual technique of Google-searching to find someone else who had previously encountered (and solved) the problem turned up nothing, except some discussion on the ArchLinux forums that didn’t seem to be too closely related. Anyway, for the benefit of the internets: this happens when the version of SIP you have installed is a new one, released since the introduction of the version 7 API, but your installation of PyKDE is an old one that still thinks it’s working with the version 6 API. The solution? Upgrade to the latest version of PyKDE, or recompile it if you installed from source. On Gentoo, a simple

emerge -1 kde-base/pykde4

did the trick.

Just so it’s out there.