jockey-kde crashed with ImportError in <module>()

Bug #451105 reported by Ryan VanSickle
358
This bug affects 49 people
Affects Status Importance Assigned to Milestone
kdebase-workspace (Ubuntu)
Invalid
Undecided
Unassigned
kdebindings (Ubuntu)
Fix Released
High
Jonathan Riddell

Bug Description

This actually appears to be a kdecore issue. Output from jockey-kde from the command line:

$ 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

I also saw a similar issue running apport-bug:
Could not import module, is a package upgrade in progress? Error: No module named kdecore

I am running karmic beta with the latest updates
Description: Ubuntu karmic (development branch)
Release: 9.10

jockey-kde:
  Installed: 0.5.5-0ubuntu1
  Candidate: 0.5.5-0ubuntu1
  Version table:
 *** 0.5.5-0ubuntu1 0
        500 http://us.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

kdebase:
  Installed: 4:4.3.2-0ubuntu1
  Candidate: 4:4.3.2-0ubuntu1
  Version table:
 *** 4:4.3.2-0ubuntu1 0
        500 http://us.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

kdelibs:
  Installed: 4:3.5.10.dfsg.1-2ubuntu7
  Candidate: 4:3.5.10.dfsg.1-2ubuntu7
  Version table:
 *** 4:3.5.10.dfsg.1-2ubuntu7 0
        500 http://us.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

python-kde4:
  Installed: 4:4.3.2-0ubuntu2
  Candidate: 4:4.3.2-0ubuntu2
  Version table:
 *** 4:4.3.2-0ubuntu2 0
        500 http://us.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

I am running the kde desktop so I would expect that the applications using the kde libraries would also run.

ProblemType: Crash
Architecture: amd64
Date: Wed Oct 14 00:56:18 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/jockey-kde
InterpreterPath: /usr/bin/python2.6
MachineType: Gateway T6540
Package: jockey-kde 0.5.5-0ubuntu1
PackageArchitecture: all
ProcCmdLine: root=/dev/mapper/hostname_vol_grp-root ro quiet splash
ProcCmdline: /usr/bin/python /usr/bin/jockey-kde
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-14.46-generic
PythonArgs: ['/usr/bin/jockey-kde']
SourcePackage: jockey
Title: jockey-kde crashed with ImportError in <module>()
Traceback:
 Traceback (most recent call last):
   File "/usr/bin/jockey-kde", line 28, in <module>
     from PyKDE4.kdecore import *
 ImportError: No module named kdecore
Uname: Linux 2.6.31-14-generic x86_64
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin netdev plugdev powerdev pulse pulse-access scanner users vdr video
XsessionErrors: (polkit-gnome-authentication-agent-1:12423): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
dmi.bios.date: 08/16/2006
dmi.bios.vendor: Phoenix Technologies, LTD
dmi.bios.version: 6.00 PG
dmi.board.name: C51PVGM-M
dmi.board.vendor: C51PVGM-M
dmi.chassis.type: 3
dmi.modalias: dmi:bvnPhoenixTechnologies,LTD:bvr6.00PG:bd08/16/2006:svnGateway:pnT6540:pvr100:rvnC51PVGM-M:rnC51PVGM-M:rvr:cvn:ct3:cvr:
dmi.product.name: T6540
dmi.product.version: 100
dmi.sys.vendor: Gateway

Revision history for this message
Ryan VanSickle (ryan-vansickle) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Possible regression detected

This crash has the same stack trace characteristics as bug #263017. However, the latter was already fixed in an earlier package version than the one in this report. This might be a regression or because the problem is in a dependent package.

tags: removed: need-duplicate-check
tags: added: regression-retracer
affects: jockey (Ubuntu) → kdebase-workspace (Ubuntu)
visibility: private → public
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

A fix should be arriving with the next batch of updates which are building at the moment.

Changed in kdebase-workspace (Ubuntu):
status: New → Fix Released
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Mm, the kdebase-workspace upload is being held back until kde4libs can be uploaded, but once it builds it'll delete the old dist-packages for PyKDE4, or so sez Riddell.

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

Bug 450851 was marked as a duplicate of this. However, the real problem seems to be in kdebindings, not in kdebase-workspace. Also, this bug was marked as fixed without referring to a changelog. What was fixed, and where? At least, python-kde4 needs a preinst script which cleans up the old __init__.pyc from pycentral (since the package was switched to pysupport). I don't see that on -changes@ yet?

Thanks!

Revision history for this message
ilna (a-gaydenko) wrote :

Is it related issue?

http://bbs.archlinux.org/viewtopic.php?pid=632942

Or, resuming, python-kde4 isn't in sync with python-qt4. As a result, python-written plasmoids don't work. Also decribed here:

http://kde-look.org/content/show.php/Complex+Plotter?content=111400

"seems like distro has updated sip/pyqt4 but not pykde4 packages and sip api doesn't match".

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Yes. There's an old copy of some PyKDE4 stuff hanging around in a directory kdebase-workspace was responsible for. Once the updates are unleashed this will be fixed.

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Oh, I missed your comment Martin.

Basically the python plasma bindings in kdebase-workspace were the only thing left that was keeping /usr/lib/python2.6/dist-packages/PyKDE4 around. 4:4.3.2-0ubuntu2 should have fixed this, but due to some kde4libs troubles kdebase-workspace 4:4.3.2-0ubuntu3 was published before kdebase-workspace 4:4.3.2-0ubuntu2 was published.

According to Riddell, this kdebase-workspace update should remove /usr/lib/python2.6/dist-packages/PyKDE4 entirely.

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 451105] Re: jockey-kde crashed with ImportError in <module>()

Hello Jonathan (both :) ),

thanks for the heads-up. With today's upgrades, apport-kde works
again. Thanks for sorting it out!

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

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

I just got a ping from Julian Edwards that he still has the bad .pyc file on his system. Apparently this didn't get cleaned up yet?

Changed in kdebindings (Ubuntu):
importance: Undecided → High
status: New → Triaged
assignee: nobody → Jonathan Thomas (echidnaman)
Changed in kdebindings (Ubuntu):
assignee: Jonathan Thomas (echidnaman) → Jonathan Riddell (jr)
Revision history for this message
Jonathan Riddell (jr) wrote :

kdebindings 4:4.3.2-0ubuntu3 adds a postinst script to remove the old .pyc file

Changed in kdebindings (Ubuntu):
status: Triaged → Fix Released
Bruce Miller (brm0423)
Changed in kdebase-workspace (Ubuntu):
status: Fix Released → New
Changed in kdebindings (Ubuntu):
status: Fix Released → New
tags: added: regression-potential
removed: regression-retracer
Revision history for this message
Pedro Villavicencio (pedro) wrote :

There's at least 6 new duplicates with Lucid showing the same pattern, apport marked those as duplicate, I'm thus setting this as Triaged. Jonathan may you please have a look into this? Thanks.

Changed in kdebindings (Ubuntu):
status: New → Triaged
Changed in kdebase-workspace (Ubuntu):
status: New → Invalid
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

This is a transient error that can show up when sip breaks abi compatibility. Should be fixed by final now.

Changed in kdebindings (Ubuntu):
status: Triaged → 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.