PyKDE4 module does not work any more after upgrade

Bug #450851 reported by Tim Penhey
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
kdebindings (Ubuntu)
Fix Released
High
Martin Pitt
Karmic
In Progress
High
Martin Pitt

Bug Description

PyKDE4 is broken:

$ ubuntu-bug
Could not import module, is a package upgrade in progress? Error: No module named kdecore

$ jockey-kde
Traceback (most recent call last):
  File "/usr/bin/jockey-kde", line 28, in <module>
    from PyKDE4.kdecore import *
ImportError: No module named kdecore

tags: added: regression-potential
Changed in apport (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Changed in apport (Ubuntu Karmic):
assignee: nobody → Martin Pitt (pitti)
Revision history for this message
ilna (a-gaydenko) wrote :

python-kde4 isn't in sync with python-qt4 - is it intended bug description?

Revision history for this message
Rocco (rocco) wrote :

My output is:

#ubuntu-bug apport
Could not import module, is a package upgrade in progress? Error: No module named kdecore

On a up to date Kubuntu Karmic.

Revision history for this message
Martin Pitt (pitti) wrote :

I get that as well. Seems that pykde4 changed underneath me..

$ /usr/share/apport/apport-kde -p pmount
Could not import module, is a package upgrade in progress? Error: No module named kdecore

Changed in apport (Ubuntu Karmic):
importance: Medium → High
status: Confirmed → Triaged
Revision history for this message
Martin Pitt (pitti) wrote :

Discussed with Ted (thanks!).

Changed in apport (Ubuntu Karmic):
status: Triaged → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Sorry, ignore the previous comment. Wrong bug.

Martin Pitt (pitti)
Changed in apport (Ubuntu Karmic):
milestone: none → ubuntu-9.10
Revision history for this message
Tim Penhey (thumper) wrote : Re: [Bug 450851] Re: ubuntu-bug fails with most recent karmic kubuntu updates

On Thu, 15 Oct 2009 05:59:29 Rocco wrote:
> My output is:
>
> #ubuntu-bug apport
> Could not import module, is a package upgrade in progress? Error: No module
> named kdecore
>
> On a up to date Kubuntu Karmic.

I get this error now too after some updates.

Tim

Revision history for this message
Martin Pitt (pitti) wrote : Re: ubuntu-bug fails with most recent karmic kubuntu updates

So the original sip module mismatch was apparently fixed in

kdebindings (4:4.3.2-0ubuntu2) karmic; urgency=low

  * Rebuild for Sip 4.9
  * Use python-support, now required by python-qt4 4.6

 -- Jonathan Riddell <email address hidden> Wed, 14 Oct 2009 02:22:20 +0100

But it seems this or the previous version also broke module loading entirely now:

$ python -c 'import PyKDE4.kdecore'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named kdecore

The file is there, though:

$ dpkg -L python-kde4|grep kdecore.so
/usr/lib/pyshared/python2.6/PyKDE4/kdecore.so

affects: apport (Ubuntu Karmic) → kdebindings (Ubuntu Karmic)
Changed in kdebindings (Ubuntu Karmic):
status: In Progress → Confirmed
description: updated
summary: - ubuntu-bug fails with most recent karmic kubuntu updates
+ PyKDE4 module does not work any more
Revision history for this message
Martin Pitt (pitti) wrote : Re: PyKDE4 module does not work any more

OK, I'm one step further. This package recently switched from pycentral to pysupport (argh, not a good idea so close to the release!), and misses to manually do the cleanup which dh_pycentral would have done for you. At least it leaves behind

  /usr/lib/python2.6/dist-packages/PyKDE4/__init__.pyc

After removing this, jockey-kde works again, and python -c 'import PyKDE4.kdecore' works again, but apport-kde now hangs without bringing up any UI.

Changed in kdebindings (Ubuntu Karmic):
status: Confirmed → In Progress
summary: - PyKDE4 module does not work any more
+ PyKDE4 module does not work any more after upgrade
Revision history for this message
Martin Pitt (pitti) wrote :

Jonathan, any idea what's wrong here? The __init__.pyc cleanup seems easy enough (in preinst), but I have no idea about the hang.

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 450851] [NEW] ubuntu-bug fails with most recent karmic kubuntu updates

 status fixreleased

Tim Penhey [2009-10-13 23:52 -0000]:
> $ ubuntu-bug xorg
> 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 v6.0 but the PyKDE4.kdecore module requires API v5.0

This was fixed for karmic final. Thanks for your report!

Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)

Martin Pitt (pitti)
Changed in kdebindings (Ubuntu):
status: In Progress → Fix Released
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.