PyKDE4 imports broken

Bug #819291 reported by Darren Dale
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pykde4 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

The following python command:

    from PyKDE4 import kdecore

yields:

    ImportError: No module named kdecore

even though it is installed on my system:

    $ locate kdecore.so
    /usr/lib/pyshared/python2.6/PyKDE4/kdecore.so
    /usr/lib/pyshared/python2.7/PyKDE4/kdecore.so
    /usr/lib/python2.6/dist-packages/PyKDE4/kdecore.so
    /usr/lib/python2.7/dist-packages/PyKDE4/kdecore.so

I think it may be the case that the python import routine is finding /usr/lib/pymodules/python2.7/PyKDE4 early in the search path, but that location only contains the plasmascript.py module. This is a pretty significant bug, it breaks the apport-bug reporting program (which calls apport-kde, which attempts to import kdecore).

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: python-kde4 4:4.7.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-7.9-generic 3.0.0
Uname: Linux 3.0.0-7-generic x86_64
Architecture: amd64
Date: Mon Aug 1 09:10:15 2011
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
 LANGUAGE=
SourcePackage: pykde4
UpgradeStatus: Upgraded to oneiric on 2011-05-29 (64 days ago)

Revision history for this message
Darren Dale (dsdale24) wrote :
Revision history for this message
Philip Muškovac (yofel) wrote :

Hi, thank your for taking your time to report this bug and helping to make Kubuntu better. With the latest updates this issue is gone here, so can you please check if this still happens for you after installing updates? Thanks.

Changed in pykde4 (Ubuntu):
status: New → Incomplete
Revision history for this message
Darren Dale (dsdale24) wrote :

I just performed an update and still cannot import kdecore.

Changed in pykde4 (Ubuntu):
status: Incomplete → New
Changed in pykde4 (Ubuntu):
status: New → Confirmed
Revision history for this message
Scott Kitterman (kitterman) wrote :

This works for me now on 13.04. Is it still a problem for you?

Changed in pykde4 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for pykde4 (Ubuntu) because there has been no activity for 60 days.]

Changed in pykde4 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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