system-config-printer-kde crashes with AttributeError: 'QString' object has no attribute 'rfind'

Bug #611677 reported by Philip Muškovac
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
kdeadmin (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: kdeadmin

Trying to open it I get:

$ kcmshell4 system-config-printer-kde
kcmshell(19456)/python (plugin): Error while running factory function for Python plugin: "system-config-printer-kde/system-config-printer-kde.py"
Traceback (most recent call last):
  File "<string>", line 18, in kpythonpluginfactory_bridge
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 4004, in CreatePlugin
    kcm = u.makeui(component_data, widget_parent)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 128, in makeui
    self.ui = PyKcm(component_data, parent, self)
  File "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py", line 104, in __init__
    uic.loadUi(APPDIR + "/" + "system-config-printer.ui", self)
  File "/usr/lib/pymodules/python2.6/PyQt4/uic/__init__.py", line 177, in loadUi
    return DynamicUILoader().loadUi(uifile, baseinstance)
  File "/usr/lib/pymodules/python2.6/PyQt4/uic/Loader/loader.py", line 24, in loadUi
    return self.parse(filename, os.path.dirname(filename))
  File "/usr/lib/python2.6/posixpath.py", line 119, in dirname
    i = p.rfind('/') + 1
AttributeError: 'QString' object has no attribute 'rfind'
kcmshell(19456)/python (plugin): Failed to import module
kcmshell(19456)/kcontrol KCModuleLoader::loadModule: This module has no valid entry symbol at all. The reason could be that it's still using K_EXPORT_COMPONENT_FACTORY with a custom X-KDE-FactoryName which is not supported anymore

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: system-config-printer-kde 4:4.4.92-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-9.14-generic 2.6.35-rc5
Uname: Linux 2.6.35-9-generic x86_64
NonfreeKernelModules: nls_iso8859_1 nls_cp437 usb_storage lzo lzo_compress btrfs zlib_deflate crc32c libcrc32c ufs qnx4 hfsplus hfs minix ntfs vfat msdos fat jfs xfs reiserfs aesni_intel cryptd aes_x86_64 aes_generic binfmt_misc rfcomm sco parport_pc bridge stp ppdev bnep l2cap kvm_intel kvm nfsd exportfs nfs lockd fscache nfs_acl auth_rpcgss dm_crypt sunrpc snd_hda_codec_nvhdmi snd_hda_codec_conexant arc4 thinkpad_acpi snd_hda_intel snd_hda_codec nvidia snd_seq_midi snd_rawmidi snd_seq_midi_event iwlagn snd_hwdep tp_smapi thinkpad_ec snd_seq snd_seq_device joydev snd_pcm iwlcore uvcvideo snd_timer mac80211 tpm_tis videodev v4l1_compat v4l2_compat_ioctl32 snd soundcore cfg80211 tpm lp btusb psmouse bluetooth tpm_bios nvram snd_page_alloc serio_raw parport usbhid hid ahci intel_agp e1000e video output firewire_ohci firewire_core crc_itu_t sdhci_pci sdhci led_class libahci vga16fb vgastate
Architecture: amd64
Date: Fri Jul 30 14:04:37 2010
InstallationMedia: Kubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
 LANGUAGE=en_US.UTF-8
SourcePackage: kdeadmin

Revision history for this message
Philip Muškovac (yofel) wrote :
Revision history for this message
PhobosK (phobosk) wrote :

This is a problem in PyQt4. loadUi expects as first argument a Python string , but it has been given a QString (APPDIR).
So finding all the loadUi statements in "/usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py" (they are 3 i think) and converting the first argument to a Python string (using str()) fixes the problem.

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

Fixed by now.

Changed in kdeadmin (Ubuntu):
status: New → Invalid
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.