kde systemsettings module "Disk & Filesystems" does not load

Bug #109273 reported by jcfp
50
Affects Status Importance Assigned to Milestone
kde-guidance (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

Binary package hint: kde-guidance

On kubuntu feisty kernel 2.6.20-15-generic with kde-guidance 0.8.0-0ubuntu5:

Kde systemsettings module "Disk & Filesystems" does not load, citing "an error during your last kde upgrade leaving an orphaned module" and "old third party modules lying around" as possible reasons. Neither apply, this is a fresh install of feisty. System has 1x sata Maxtor 6B250S0 and 2x sata SAMSUNG SP2504C hard disks and a bunch of usb drives; all fully functional.

Running 'systemsettings' from the command line and trying to open the module results in the following:

$ systemsettings
adding Disk & Filesystems /usr/share/applications/kde/mountconfig.desktop

Pythonize constructor -- pid = 8513
Python interpreter initialized!

Pythonize constructor -- pid = 8513
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_mountconfig
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3285, in create_mountconfig
    return MountConfigApp(parent, name)
  File "/var/lib/python-support/python2.5/mountconfig.py", line 2950, in __init__
    self.__updateMountList()
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3164, in __updateMountList
    for partition in blockdevice.getPartitions():
AttributeError: 'Partition' object has no attribute 'getPartitions'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport_python_hook.py", line 44, in apport_excepthook
    binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
AttributeError: 'module' object has no attribute 'argv'

Original exception was:
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_mountconfig
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3285, in create_mountconfig
    return MountConfigApp(parent, name)
  File "/var/lib/python-support/python2.5/mountconfig.py", line 2950, in __init__
    self.__updateMountList()
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3164, in __updateMountList
    for partition in blockdevice.getPartitions():
AttributeError: 'Partition' object has no attribute 'getPartitions'
error: *** runFunction failure
;
===== (added comment) getting into "Administrator mode" here =====

Pythonize constructor -- pid = 8532
Python interpreter initialized!

Pythonize constructor -- pid = 8532
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_mountconfig
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3285, in create_mountconfig

return MountConfigApp(parent, name)
  File "/var/lib/python-support/python2.5/mountconfig.py", line 2950, in __init__

self.__updateMountList()
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3164, in __updateMountList

for partition in blockdevice.getPartitions():
AttributeError
:
'Partition' object has no attribute 'getPartitions'

Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport_python_hook.py", line 44, in apport_excepthook

binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
AttributeError
:
'module' object has no attribute 'argv'

Original exception was:
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_mountconfig
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3285, in create_mountconfig

return MountConfigApp(parent, name)
  File "/var/lib/python-support/python2.5/mountconfig.py", line 2950, in __init__

self.__updateMountList()
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3164, in __updateMountList

for partition in blockdevice.getPartitions():
AttributeError
:
'Partition' object has no attribute 'getPartitions'

Revision history for this message
Bderenor Caine (dominik-upb) wrote :

I am having the exact same problem. It showed up when i upgraded from edgy to feisty.

Changed in kde-guidance:
status: Unconfirmed → Confirmed
Revision history for this message
Scott Kitterman (kitterman) wrote :

I confirmed this based on multple reports but am unable to reproduce it on a computer with a single PATA hard drive.

Revision history for this message
Andres Mejia (amejia1) wrote :

As Scott pointed out, this problem only happens on a computer with more than one hard drive installed.

Revision history for this message
Manfromx (manfromx) wrote :

Using Feisty 7.04 here and I seem to have the same problem. I have a raided SATA array in striping and 3 other SATA drives atm. CD Rom is PATA.

Here is the error,

systemsettings
adding Disk & Filesystems /usr/share/applications/kde/mountconfig.desktop

Pythonize constructor -- pid = 14869
Python interpreter initialized!

Pythonize constructor -- pid = 14869
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_mountconfig
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3285, in create_
mountconfig
    return MountConfigApp(parent, name)
  File "/var/lib/python-support/python2.5/mountconfig.py", line 2950, in __init_
_
    self.__updateMountList()
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3160, in __updat
eMountList
    groupitem = MountGroupListViewItem(self.mountlist,blockdevice)
  File "/var/lib/python-support/python2.5/mountconfig.py", line 2830, in __init_
_
    KListViewItem.__init__(self,parentitem,self.haldevice.getName(),"","","","")
  File "/var/lib/python-support/python2.5/MicroHAL.py", line 384, in getName
    return "Disk "+self.getModelName()
TypeError: cannot concatenate 'str' and 'NoneType' objects
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport_python_hook.py", line 44, in ap
port_excepthook
    binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
AttributeError: 'module' object has no attribute 'argv'

Original exception was:
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_mountconfig
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3285, in create_ mountconfig
    return MountConfigApp(parent, name)
  File "/var/lib/python-support/python2.5/mountconfig.py", line 2950, in __init_ _
    self.__updateMountList()
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3160, in __updat eMountList
    groupitem = MountGroupListViewItem(self.mountlist,blockdevice)
  File "/var/lib/python-support/python2.5/mountconfig.py", line 2830, in __init_ _
    KListViewItem.__init__(self,parentitem,self.haldevice.getName(),"","","","")
  File "/var/lib/python-support/python2.5/MicroHAL.py", line 384, in getName
    return "Disk "+self.getModelName()
TypeError: cannot concatenate 'str' and 'NoneType' objects
error: *** runFunction failure
;

If this is actually another error please let me know, thanks!

Revision history for this message
Sebastian Kügler (sebasje) wrote :

This is a different problem, but here's a patch that should fix this.

Index: MicroHAL.py
===================================================================
--- MicroHAL.py (revision 680463)
+++ MicroHAL.py (working copy)
@@ -381,7 +381,10 @@
         return self.modelname

     def getName(self):
- return "Disk "+self.getModelName()
+ if self.getModelName():
+ return i18n("Disk ")+self.getModelName()
+ else:
+ return i18n("Unknown Disk")

     def getPartitions(self):
         return self.partitions[:]

Revision history for this message
Brian Harkness (maestro-bwh) wrote :

Yep... I have more than one HD and I get:
Traceback (most recent call last):
  File "/usr/bin/mountconfig", line 37, in <module>
    from fuser import *
  File "/usr/share/python-support/kde-guidance/fuser.py", line 27, in <module>
    import kdedesigner
  File "/var/lib/python-support/python2.5/kdedesigner.py", line 18, in <module>
    import qtuicompiler
  File "/var/lib/python-support/python2.5/qtuicompiler.py", line 20, in <module>
    import pyqtconfig
  File "/usr/lib/python2.5/site-packages/pyqtconfig.py", line 24, in <module>
    import sipconfig
ImportError: No module named sipconfig

I get the same thing in my Feisty install now... I upgraded the kernel to the Gutsy Gibbon one of 2.6.22-9-386, and now I see this error there as well. Although kind of risky, being that some other dependencies upgraded, like libc6, this info might be useful?

Revision history for this message
jcfp (jcfp) wrote :

Still exists with kubuntu gutsy tribe 4

Changed in kde-guidance:
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Kalrog (nathan-deckinga) wrote :

I see a couple of risky work arounds listed, but nothing about a planned fix. Is this bug scheduled for a fix anytime soon or would I be better off trying one (or more) of the hacks above?

Revision history for this message
Willem Kan (wrkan-deactivatedaccount) wrote :

I don't know if this bug is completely related to the bug I encounter on Gutsy Gibbon Tribe 5: when opening Disk & filesystems in the system settings menu (kubuntu), it says the module can not be loaded. I do have only one (SATA) hard disk.

Revision history for this message
Mikael Gerdin (mgerdin) wrote :

Brian harkness: I think that the error message you're seeing is related to bug #136561. Please try to install the package "python-sip4-dev" and try to run "mountconfig" again.

Revision history for this message
Brian Harkness (maestro-bwh) wrote :

Mikael Gerden: This helped me fix the error, but I had to install a few other packages because I still got an error on a module with pyqtconfig (I can't remember the exact module name but this is close), so I opened adept and I had python qt3 and python qt4 installed, so on a hunch based on your suggestion, I installed the related -dev files for those also and the mountconfig launched. Many thanks.

Revision history for this message
Kalrog (nathan-deckinga) wrote :

This bug gave me the information to fix this error (136561) as mentioned by Mikael above. I just had the 1 package to install and it appears to have worked 100%.

Revision history for this message
Jonathan Riddell (jr) wrote :

fixed

Changed in kde-guidance:
status: Triaged → Fix Released
Revision history for this message
jcfp (jcfp) wrote :
Download full text (3.4 KiB)

Reopening. Upgraded to gutsy and this bug still exists with kde-guidance 0.8.0svn20070928-0ubuntu7. Command line output shows only very minor differences:

$ systemsettings
adding Disk & Filesystems /usr/share/applications/kde/mountconfig.desktop

Pythonize constructor -- pid = 12836
Python interpreter initialized!

Pythonize constructor -- pid = 12836
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_mountconfig
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3285, in create_mountconfig
    return MountConfigApp(parent, name)
  File "/var/lib/python-support/python2.5/mountconfig.py", line 2950, in __init__
    self.__updateMountList()
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3164, in __updateMountList
    for partition in blockdevice.getPartitions():
AttributeError: 'Partition' object has no attribute 'getPartitions'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport_python_hook.py", line 42, in apport_excepthook
    binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
AttributeError: 'module' object has no attribute 'argv'

Original exception was:
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_mountconfig
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3285, in create_mountconfig
    return MountConfigApp(parent, name)
  File "/var/lib/python-support/python2.5/mountconfig.py", line 2950, in __init__
    self.__updateMountList()
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3164, in __updateMountList
    for partition in blockdevice.getPartitions():
AttributeError: 'Partition' object has no attribute 'getPartitions'
error: *** runFunction failure
;

Pythonize constructor -- pid = 12857
Python interpreter initialized!

Pythonize constructor -- pid = 12857
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_mountconfig
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3285, in create_mountconfig
    return MountConfigApp(parent, name)
  File "/var/lib/python-support/python2.5/mountconfig.py", line 2950, in __init__
    self.__updateMountList()
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3164, in __updateMountList
    for partition in blockdevice.getPartitions():
AttributeError: 'Partition' object has no attribute 'getPartitions'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/apport_python_hook.py", line 42, in
 apport_excepthook
    binary = os.path.realpath(os.path.join(os.getcwdu(), sys.argv[0]))
AttributeError: 'module' object has no attribute 'argv'

Original exception was:
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_cre
ate_mountconfig
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3285, in create_mountconfig
    return MountConfigApp(parent, name)
  File "/var/lib/python-support/python2.5/mountconfig.py", line 2950, in __init__
    self.__updateMountList()
  File "/v...

Read more...

Changed in kde-guidance:
status: Fix Released → Confirmed
Revision history for this message
jcfp (jcfp) wrote :

And now it works, although nothing changed on the hardware or software front. Weirdness. Reverting status to fix released.

Changed in kde-guidance:
status: Confirmed → Fix Released
Revision history for this message
jcfp (jcfp) wrote :

Still fails to load in hardy; latest error messages from the command line can be found in the attached file.

Changed in kde-guidance:
status: Fix Released → Confirmed
Revision history for this message
Stefano (blueduck-gmx) wrote :

Sorry Guys,

but all the tips not working for me. This bug is still exist in Gutsy 8.04.1

I recently update my system from Hardy to Gutsy 8.04.1 and last week i noticed this error first time.

Kubuntu running on a Samsung R55 Notebook with a _single_ Harddrive.

Here is the output, if i start systemsettings in the konsole:

systemsettings
adding Festplatten & Dateisysteme /usr/share/applications/kde/mountconfig.desktop

Pythonize constructor -- pid = 11437
Python interpreter initialized!

Pythonize constructor -- pid = 11437
Traceback (most recent call last):
  File "<string>", line 8, in kcontrol_bridge_create_mountconfig
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3285, in create_mountconfig
    return MountConfigApp(parent, name)
  File "/var/lib/python-support/python2.5/mountconfig.py", line 2950, in __init__
    self.__updateMountList()
  File "/var/lib/python-support/python2.5/mountconfig.py", line 3164, in __updateMountList
    for partition in blockdevice.getPartitions():
AttributeError: 'Partition' object has no attribute 'getPartitions'
error: *** runFunction failure

I installed all the suggest packages above:
* python-qt-dev
* python-qt4-dev
* python-sip4
* reinstall kde-guidance_0.8.0svn20080103-0ubuntu16.1_i386.deb

But this does not work!

Revision history for this message
Stefano (blueduck-gmx) wrote :

Hi,

> This bug is still exist in Gutsy 8.04.1

> I recently update my system from Hardy to Gutsy 8.04.1 and last week i noticed this error first time.

both times i mean Hardy instad Gutsy ... sorry

Cheers Stefano

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

Kubuntu 8.04 has reached the end of its supported life, and unfortunately the Guidance user configuration tool and the Guidance Power Manager were the only Guidance apps to survive. The rest were removed from distribution and will not be receiving any more bugfixes. Thanks for understanding, and have a nice day.

Changed in kde-guidance (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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