plasma-scriptengine-python API error

Bug #512799 reported by AdrianvV
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Kubuntu PPA
Invalid
Medium
Unassigned
kdebase-workspace (Ubuntu)
Invalid
Undecided
Unassigned
python-kde4 (Debian)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: plasma-scriptengine-python

Description: Ubuntu 9.10
Release: 9.10

plasma-scriptengine-python:
  Installed: 4:4.3.95-0ubuntu1~karmic1~ppa2
  Candidate: 4:4.3.95-0ubuntu1~karmic1~ppa2
  Version table:
 *** 4:4.3.95-0ubuntu1~karmic1~ppa2 0
        500 http://ppa.launchpad.net karmic/main Packages
        100 /var/lib/dpkg/status
     4:4.3.4-0ubuntu1~karmic1 0
        500 http://za.archive.ubuntu.com karmic-backports/main Packages
     4:4.3.2-0ubuntu7.1 0
        500 http://za.archive.ubuntu.com karmic-updates/main Packages
     4:4.3.2-0ubuntu7 0
        500 http://za.archive.ubuntu.com karmic/main Packages

First noticed this when the gmail-plasmoid didn't want to load. When trying to remove the plasmoid and then re-add it the plasma-desktop kept crashing so I had to start it manually and the subsequent debug info showed the error:

Start Dragging
plasma-desktop(23739)/libplasma Plasma::Applet::load: we have a script using the "python" API
plasma-desktop(23739)/python (plugin) KPythonPluginFactory::KPythonPluginFactory: KPythonPluginFactory::KPythonPluginFactory()
plasma-desktop(23739)/python (plugin) KPythonPluginFactory::initialize: Initializing Python interpreter.
plasma-desktop(23739)/python (plugin) KPythonPluginFactory::initialize: Succesfully initialized Python interpreter.
plasma-desktop(23739)/python (plugin) KPythonPluginFactory::create: KPythonPluginFactory::create iface: Plasma::AppletScript
plasma-desktop(23739)/python (plugin) KPythonPluginFactory::create: keyword to be used for finding the plugin code: "plasma_scriptengine_python/pyappletscript.py"
plasma-desktop(23739)/python (plugin) KPythonPluginFactory::create: Path to plugin code is: "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.py"
plasma-desktop(23739)/python (plugin): Failed to import module
Traceback (most recent call last):
  File "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.py", line 22, in <module>
    from PyKDE4.plasma import Plasma
RuntimeError: the sip module implements API v7.0 but the PyKDE4.plasma module requires API v6.0
plasma-desktop(23739)/libplasma Plasma::loadEngine: Couldn't load script engine for language "python" ! error reported: "The service 'Python Widget' does not provide an interface 'Plasma::AppletScript' with keyword 'plasma_scriptengine_python/pyappletscript.py'"
plasma-desktop(23739)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)

Also:

$ apport-bug
Traceback (most recent call last):
  File "/usr/share/apport/apport-kde", line 28, in <module>
    from PyKDE4.kdecore import (ki18n, KAboutData, KCmdLineArgs,
RuntimeError: the sip module implements API v7.0 but the PyKDE4.kdecore module requires API v6.0

Package versions:
ii plasma-desktop 4:4.3.95-0ubuntu1~karmic1~ppa2 The KDE plasma workspace for desktop and lap
ii plasma-scriptengine-python 4:4.3.95-0ubuntu1~karmic1~ppa2 Python script engine for Plasma

I don't have any stale 4.3.90 packages lying around.

Tags: python-kde4
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Moving to kubuntu-ppa bug tacker.

Changed in kdebase-workspace (Ubuntu):
status: New → Invalid
Revision history for this message
AdrianvV (adrianvv) wrote :

Still exists with python-kde4 update
4:4.3.4-0ubuntu1~karmic1 ->
4:4.3.5-0ubuntu1~karmic1
(from karmic-backports)

Revision history for this message
Pykler (hnassrat) wrote :

Is there any idea when this will be fixed? Currently no Python Plasmoids can be used at all due to this bug.

Revision history for this message
Alessandro Sivieri (scattino) wrote :

I think the problem is that python-kde4 is still 4.3.5 (as of today), while it should be 4.3.95, too...

AdrianvV (adrianvv)
tags: added: python-kde4
Revision history for this message
AdrianvV (adrianvv) wrote :

Lucid has the 4:4.3.95 packages, how about a backport?

https://launchpad.net/ubuntu/lucid/+package/python-kde4

The dependency issues that prevent the Lucid version from being used directly on Karmic appear to be mostly cosmetic.

dpkg: dependency problems prevent configuration of python-kde4:
 python-kde4 depends on libphonon4 (>= 4:4.6.0-1ubuntu6); however:
  Version of libphonon4 on system is 4:4.6.0-1ubuntu3~karmic1~ppa1.
 python-kde4 depends on python-qt4 (>= 4.7.0-0ubuntu1); however:
  Version of python-qt4 on system is 4.7.0-0ubuntu1~karmic1~ppa1.
 python-kde4 depends on python-sip4 (>= 4.10.0-0ubuntu1); however:
  Version of python-sip4 on system is 4.10.0-0ubuntu1~karmic1~ppa1.

Revision history for this message
AdrianvV (adrianvv) wrote :

I've forced the installation of the Lucid package mentioned above and I now have working python plasma widgets and apport-bug works again.

Revision history for this message
Charlie Figura (cfigura) wrote :

I installe the lucid package (by using dpkg), and it works, but I have two HUGE problems:
1. kpackagekit keeps screaming at me about broken dependencies, and wants to remove great chunks of KDE to fix the dependencies.
2. When I did a 'normal' kernel upgrade and then went to use the hardware drivers utility to upgrade my NVIDIA driver, it automatically 'fixed' the broken dependency problem by REMOVING MOST OF MY KDE. Almost turned my laptop into a brick.

So, if there's a way of installing the lucid package without generating broken dependencies, can someone give me a hand?
Otherwise, is there some other way out of this mess?

Revision history for this message
AdrianvV (adrianvv) wrote :
Revision history for this message
Sébastien Vanhoeke (sertux-fun) wrote :

HI, I've resolved this problem by installing kde4-full & kde4-devel

Revision history for this message
Ralph Janke (txwikinger) wrote :

There have been many changes in Ubuntu since that time this issue has been reported and the problem may have been fixed with some of the updates. It would help us a lot if you could test the current Ubuntu version (10.04). If you can test it, and it is still an issue, we would appreciate if you could upload updated logs by running apport-collect <bug #>, and any other logs that are relevant for this particular issue.

Changed in kubuntu-ppa:
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
Alessandro Ghersi (alessandro-ghersi) wrote :

If it's still an issue with KDE SC 4.5.1 from kubuntu backport , please open a new bug.

Changed in kubuntu-ppa:
status: Incomplete → Invalid
Changed in python-kde4 (Debian):
importance: Unknown → Undecided
status: Unknown → New
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.