Bug 615651

Summary: [abrt] kdeutils-printer-applet-6:4.4.92-1.fc14: posixpath.py:119:dirname:AttributeError: 'QString' object has no attribute 'rfind'
Product: [Fedora] Fedora Reporter: Antonio <anto.trande>
Component: kdeutilsAssignee: Ngo Than <than>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: awilliam, dennis, gearge, jreznik, karo1170, kevin, ltinkl, mail, martin, mathstuf, rdieter, rh-bugzilla, rnovacek, smparrish, than, thomasbelvin, yesyoucanspamme
Target Milestone: ---Keywords: CommonBugs, Patch
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard: abrt_hash:354755d4 https://fedoraproject.org/wiki/Common_F14_bugs#kde-printer-abrt
Fixed In Version: 4.5.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-10 14:38:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 603202    
Attachments:
Description Flags
File: backtrace none

Description Antonio 2010-07-17 18:57:04 UTC
abrt version: 1.1.5
architecture: i686
cmdline: python /usr/bin/printer-applet
component: kdeutils
executable: /usr/bin/printer-applet
kernel: 2.6.35-0.41.rc5.git1.fc14.i686
package: kdeutils-printer-applet-6:4.4.92-1.fc14
reason: posixpath.py:119:dirname:AttributeError: 'QString' object has no attribute 'rfind'
release: Fedora release 14 (Rawhide)
time: 1279392903
uid: 500

backtrace
-----
posixpath.py:119:dirname:AttributeError: 'QString' object has no attribute 'rfind'

Traceback (most recent call last):
  File "/usr/bin/printer-applet", line 1163, in <module>
    applet = JobManager()
  File "/usr/bin/printer-applet", line 241, in __init__
    uic.loadUi(APPDIR + '/' + "printer-applet.ui", self.mainWindow)
  File "/usr/lib/python2.6/site-packages/PyQt4/uic/__init__.py", line 177, in loadUi
    return DynamicUILoader().loadUi(uifile, baseinstance)
  File "/usr/lib/python2.6/site-packages/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'

Local variables in innermost frame:
p: PyQt4.QtCore.QString(u'/usr/share/kde4/apps/printer-applet/printer-applet.ui')

Comment 1 Antonio 2010-07-17 18:57:08 UTC
Created attachment 432620 [details]
File: backtrace

Comment 2 Kevin Kofler 2010-07-18 22:27:15 UTC
Pretty obvious what's going wrong here: the kdeutils printer-applet is trying to pass a QString to a function (os.path.dirname) that expects a regular Python string. It needs to be converted to a Python string first.

Comment 3 yesyoucanspamme 2010-07-20 23:08:59 UTC
Package: kdeutils-printer-applet-6:4.4.92-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Rawhide)


How to reproduce
-----
1. Boot
2. ---
3. This error.


Comment
-----
I have a warning about printer-applet every time I log in

Comment 4 Radek Novacek 2010-07-21 06:34:46 UTC
I reported this bug to the upstream bugzilla [1] and attached there a patch that fixes this issue.

[1] https://bugs.kde.org/show_bug.cgi?id=245289

Comment 5 Dennis Gilmore 2010-07-26 16:17:58 UTC
Package: kdeutils-printer-applet-6:4.4.92-1.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Rawhide)


How to reproduce
-----
1. log into computer
2. get abort backtrace
3.


Comment
-----
log in to desktop

Comment 6 Karsten Roch 2010-07-27 17:55:48 UTC
Package: kdeutils-printer-applet-6:4.4.92-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Rawhide)


How to reproduce
-----
1. Start KDE

2. Login (Printer is switched off)

3. Crash happens.

Comment 7 Felix Möller 2010-07-28 18:02:24 UTC
Package: kdeutils-printer-applet-6:4.4.95-1.fc14
Architecture: i686
OS Release: Fedora release 14 (Rawhide)


How to reproduce
-----
just log into kde

Comment 8 Rex Dieter 2010-07-28 19:45:55 UTC
Sorry, I failed to notice the patch attached upstream.

http://bugs.kde.org/attachment.cgi?id=49356

let's get that integrated asap, and once confirmed fixed, into kde svn.

Comment 9 Tom 2010-07-29 22:47:26 UTC
Package: kdeutils-printer-applet-6:4.4.95-1.fc14.py27
Architecture: i686
OS Release: Fedora release 14 (Rawhide)


How to reproduce
-----
1. Occurs at boot into Fedora Rawhide


Comment
-----
Occurs with Rawhide fresh install and also with upgrade from 13

Comment 10 Bug Zapper 2010-07-30 12:38:39 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 14 development cycle.
Changing version to '14'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 11 Radek Novacek 2010-08-02 10:02:32 UTC
This issue was fixed upstream, see:
https://bugs.kde.org/show_bug.cgi?id=245289

Comment 12 Martin Kho 2010-08-02 20:33:11 UTC
Package: kdeutils-printer-applet-6:4.4.95-1.fc14.py27
Architecture: x86_64
OS Release: Fedora release 15 (Rawhide)


How to reproduce
-----
1. Just login into KDE :-) 
2.
3.

Comment 13 MartinG 2010-08-08 20:22:17 UTC
Package: kdeutils-printer-applet-6:4.4.92-1.fc14
Architecture: x86_64
OS Release: Fedora release 14 (Rawhide)


How to reproduce
-----
1. Boot system
2. Login to KDE
3. abrt shows crash


Comment
-----
Simply logged in to KDE

Comment 14 Kevin Kofler 2010-08-10 14:38:03 UTC
This is fixed in 4.5.0.

Comment 15 Adam Williamson 2010-08-11 21:03:02 UTC
just a note, this hits F14 Alpha RC3 KDE live, since the fixed package didn't make it into the RC3 spin.



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 16 Kevin Kofler 2010-08-11 23:15:05 UTC
Oh joy. :-( Darn, I forgot about that! I don't think we should pull in all of 4.5.0 into the alpha. We could build a package with a backported patch, but of course this would require another alpha RC compose. Grrr…

Comment 17 Kevin Kofler 2010-08-11 23:17:57 UTC
And it seems a desktop that actually works properly is only required for Final according to the release criteria.

Comment 18 Adam Williamson 2010-08-12 02:01:16 UTC
Yes, this issue by itself doesn't constitute an Alpha blocker. We will have an RC4, we might consider taking a fix for this if it's very small and simple. The compose is planned to happen tomorrow (likely afternoon).

(The theory of the Alpha desktop release criteria, btw, is that as long as you can run a browser to read about what's broken and an updater to get the fixes, then that's damn well good enough for an Alpha :). As I did say repeatedly via email, though, the criteria are always open to revision and I'd love to have feedback from the SIGs on what they'd like to see in them.)



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 19 Adam Williamson 2010-08-12 18:19:59 UTC
-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 20 Adam Williamson 2010-08-20 21:39:43 UTC

-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 21 Rex Dieter 2010-09-14 18:29:29 UTC
*** Bug 633951 has been marked as a duplicate of this bug. ***