software-properties-kde does not start, (QtCore Error)

Bug #407418 reported by Xavier Tardivel
52
This bug affects 6 people
Affects Status Importance Assigned to Milestone
python-qt4 (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Expected:
software-properties-kde windows opening.

What happened :
software-properties-kde does not start either from Kpackagekit or system-settings --> Add/Remove program.

When launched from the terminal, the following happens :

$ kdesudo software-properties-kde
Traceback (most recent call last):
  File "/usr/bin/software-properties-kde", line 34, in <module>
    from softwareproperties.kde.SoftwarePropertiesKDE import SoftwarePropertiesKDE
  File "/usr/lib/python2.6/dist-packages/softwareproperties/kde/SoftwarePropertiesKDE.py", line 36, in <module>
    from PyQt4.QtCore import *
ImportError: No module named QtCore

----------------------------
apt-cache policy python
python:
  Installed: 2.6.2-0ubuntu1
  Candidate: 2.6.2-0ubuntu1

apt-cache policy python-qt4
python-qt4:
  Installed: 4.5.2-0ubuntu1
  Candidate: 4.5.2-0ubuntu1

libqtcore4:
  Installed: 4.5.2-0ubuntu2
  Candidate: 4.5.2-0ubuntu2

ProblemType: Bug
Architecture: i386
Date: Fri Jul 31 18:30:52 2009
DistroRelease: Ubuntu 9.10
Package: software-properties-kde 0.75.1
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-4.23-generic
SourcePackage: software-properties
Uname: Linux 2.6.31-4-generic i686

Revision history for this message
Xavier Tardivel (the-frog45) wrote :
description: updated
Revision history for this message
Xavier Tardivel (the-frog45) wrote :
Revision history for this message
Jamie (solowinter) wrote :

This is affecting other apps requiring the same dependencies (e.g. Eric4).

Revision history for this message
Yves Glodt (yglodt) wrote :

AFAICS it also affects plasmoids written in Python.

I have 2 installations of Karmic, on 2 different laptops. One 32bit (does not see this bug), and one amd64 (sees this bug)

Revision history for this message
Xavier Tardivel (the-frog45) wrote :

See comments reporting the same error.

Changed in software-properties (Ubuntu):
status: New → Confirmed
summary: - software-propeties-kde does not start, (QtCore Error)
+ software-properties-kde does not start, (QtCore Error)
Revision history for this message
Xavier Tardivel (the-frog45) wrote :

As of today, I don't see the bug anymore, software-properties-kde is launching and working properly.

Revision history for this message
Xavier Tardivel (the-frog45) wrote :

It should probably be marked as invalid or fixed commited, I don't know which is the 'cleaner' solution.

Revision history for this message
Yves Glodt (yglodt) wrote :

On my fully updated Karmic I still see the bug on amd64

Revision history for this message
jajaX (jajaplanet) wrote :

Hi (sorry for my bad english)

same problem on kubuntu 9.04 under KDE 4.3.1 and QT 4.5.2.

under konsole :

jaja@quadcore:~$ kdesudo software-properties-kde

Traceback (most recent call last):
  File "/usr/bin/software-properties-kde", line 114, in <module>
    app = SoftwarePropertiesKDE(datadir=data_dir, options=options, file=file, attachWinID=attachWinID)
  File "/usr/lib/python2.6/dist-packages/softwareproperties/kde/SoftwarePropertiesKDE.py", line 98, in __init__
    self.show_keys()
  File "/usr/lib/python2.6/dist-packages/softwareproperties/kde/SoftwarePropertiesKDE.py", line 600, in show_keys
    self.userinterface.treeview2.addTopLevelItem(QTreeWidgetItem([unicode(key, 'UTF-8')]))
  File "/usr/lib/python2.6/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 45-46: invalid data

Revision history for this message
jajaX (jajaplanet) wrote :

precision : kubuntu jaunty 9.04 32 bits

Revision history for this message
Harald Sitter (apachelogger) wrote :

jajaX, different problem (I would actually think that translation-binary-incompability is at fault, not much that can be done there).

Everyone else:
a) is this issue still valid?
b) does sudo apt-get install python-qt4 --reinstall help?
c) what does ls -la /usr/lib/pyshared/python2.5/PyQt4/QtCore.so spit out?

affects: software-properties (Ubuntu) → python-qt4 (Ubuntu)
Changed in python-qt4 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Yves Glodt (yglodt) wrote :

My case, with my fully updated Karmic amd64:

a) yes
b) no
c) yves@viking:~$ ls -la /usr/lib/pyshared/python2.5/PyQt4/QtCore.so
-rw-r--r-- 1 root root 1770368 2009-07-16 02:04 /usr/lib/pyshared/python2.5/PyQt4/QtCore.so

Revision history for this message
Yves Glodt (yglodt) wrote :

btw I seem to use python2.6, and the file exists for that version of python as well:
-rw-r--r-- 1 root root 1.7M 2009-07-16 02:04 /usr/lib/pyshared/python2.6/PyQt4/QtCore.so

Revision history for this message
jajaX (jajaplanet) wrote :

Hi !

a) yes
b) no
c) ls -la /usr/lib/pyshared/python2.5/PyQt4/QtCore.so
ls: ne peut accéder /usr/lib/pyshared/python2.5/PyQt4/QtCore.so: Aucun fichier ou dossier de ce type

=> no files for me.

Revision history for this message
Harald Sitter (apachelogger) wrote :

whoops, I meant ls -la /usr/lib/pyshared/python2.6/PyQt4/QtCore.so

sorry :S

Revision history for this message
jajaX (jajaplanet) wrote :

ls -la /usr/lib/pyshared/python2.6/PyQt4/QtCore.so
ls: ne peut accéder /usr/lib/pyshared/python2.6/PyQt4/QtCore.so: Aucun fichier ou dossier de ce type

same thing.

it's normal ?

Revision history for this message
Harald Sitter (apachelogger) wrote :
Revision history for this message
jajaX (jajaplanet) wrote :

I use kubuntu 32 bits ;)

Revision history for this message
jajaX (jajaplanet) wrote :

Hi !

same result on other computer (for python 2.5 or 2.6) but window "SoftwareProperties" works fine.

other computer use kubuntu 9.04 (32 bits) too.

Revision history for this message
Andreas Raster (rakete) wrote :

Just upgraded to karmic from jaunty and have the same problem:

Python 2.6.2+ (release26-maint, Sep 9 2009, 22:58:56)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt4
>>> dir(PyQt4)
['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__']
>>>

I am running Kubuntu 64-bits, all the latest packages are installed.

ls -la /usr/lib/pyshared/python2.6/PyQt4/QtCore.so prints:
-rw-r--r-- 1 root root 1770472 2009-07-16 02:04 /usr/lib/pyshared/python2.6/PyQt4/QtCore.so

Revision history for this message
Andreas Raster (rakete) wrote :

I spent some more time trying to figure out why there seems to be nothing in the PyQt4 module and found this:
https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/419786

Is it possibly related?

apt-cache search python-qt4-common does list the package, but it isn't installable.

Revision history for this message
Andreas Raster (rakete) wrote :

Ok, I fixed the problem. It turned out that I had in fact python-qt4-common installed (which seems to only exist in jaunty), and it wasn't that I needed it, but that it somehow interfered with the karmic packages. So, after doing:

sudo apt-get remove python-qt4-common

everything worked again:

Python 2.6.2+ (release26-maint, Sep 9 2009, 22:58:56)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt4 import QtCore
>>> dir(QtCore)
['PYQT_VERSION', 'PYQT_VERSION_STR', 'QAbstractEventDispatcher', 'QAbstractFileEngine', '
...]
>>>

(btw. my first example was actually wrong it seems, but software-notifier-kde and software-properties-kde did exit with the error message mentioned in this bug report. )

Revision history for this message
Yves Glodt (yglodt) wrote :

I can confirm that what Andreas says works for me as well, on amd64.

Revision history for this message
Michael Casadevall (mcasadevall) wrote :

I cherry-picked the fix from Debian that should resolve this. Debdiff attached.

Changed in python-qt4 (Ubuntu):
status: Incomplete → In Progress
importance: Undecided → High
milestone: none → karmic-alpha-6
Revision history for this message
Michael Casadevall (mcasadevall) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-qt4 - 4.5.2-0ubuntu2

---------------
python-qt4 (4.5.2-0ubuntu2) karmic; urgency=low

  * debian/control:
    - Add conflicts on python-qt4-common, as per Debian change
      to ensure its removed on upgrades. (LP: #407418)

 -- Michael Casadevall <email address hidden> Sat, 12 Sep 2009 17:16:55 -0400

Changed in python-qt4 (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
ahenric (ahenric) wrote :

Have the same problem running Jaunty amd64. After removing python-qt4-common, and then running software-properties-kde, I now get a segmentation fault.

I have now python-qt4 (4.5.4-0ubuntu1) installed.

Any ideas?

Zane (zanetu)
Changed in python-qt4 (Ubuntu):
status: Fix Released → New
Changed in python-qt4 (Ubuntu):
status: New → Fix Released
Revision history for this message
Zane (zanetu) wrote :

Same problem. Kubuntu 10.04 with KDE 4.4.2. The version of python-qt4 is 4.72.

Hi Harald,
Why did you revert the status of this bug? Shall I open a new bug instead?

Zane (zanetu)
Changed in python-qt4 (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Zane (zanetu) wrote :

By the way, my Kubuntu is 64-bit and I don't have python-qt4-common (checked with "aptitude search python-qt4-common").

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 407418] Re: software-properties-kde does not start, (QtCore Error)

Open a new bug. This one is fixed.

Changed in python-qt4 (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Zane (zanetu) wrote :

Hi Scott,

Got it.

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.