Bug 637115 - Unhandled Python exception in /usr/bin/printer-applet
Summary: Unhandled Python exception in /usr/bin/printer-applet
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: PyQt4
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 637780 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-24 10:46 UTC by Martin Kho
Modified: 2010-10-04 17:42 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-04 17:42:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Martin Kho 2010-09-24 10:46:20 UTC
Description of problem:
Printer-applet invoked abrt with the following error message:

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(unicode(APPDIR + '/' + "printer-applet.ui"), self.mainWindow)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/__init__.py", line 181, in loadUi
    return DynamicUILoader().loadUi(uifile, baseinstance)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/Loader/loader.py", line 24, in loadUi
    return self.parse(filename, QtCore.QFileInfo(filename).path())
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/uiparser.py", line 842, in parse
    actor(elem)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/uiparser.py", line 687, in createUserInterface
    self.wprops.setProperties(self.toplevelWidget, elem)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/properties.py", line 365, in setProperties
    prop_value = self.convert(prop, widget)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/properties.py", line 330, in convert
    return func(prop[0], **args)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/properties.py", line 158, in _iconset
    return self.icon_cache.get_icon(prop)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/icon_cache.py", line 30, in get_icon
    iset = _IconSet(iconset, self._base_dir)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/icon_cache.py", line 63, in __init__
    self._fallback = self._file_name(iconset.text, base_dir)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/icon_cache.py", line 87, in _file_name
    fname = os.path.join(base_dir, fname)
  File "/usr/lib64/python2.7/posixpath.py", line 67, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'QString' object has no attribute 'endswith'


Version-Release number of selected component (if applicable):
kdeutils-printer-applet-4.5.1-2.fc15.x86_64

How reproducible:
Login into KDE

Steps to Reproduce:
1.
2.
3.
  
Actual results:
Printer-applet crashes

Expected results:
Printer-applet starts normally

Additional info:

Comment 1 Kevin Kofler 2010-09-27 14:00:58 UTC
*** Bug 637780 has been marked as a duplicate of this bug. ***

Comment 2 Kevin Kofler 2010-09-27 14:05:08 UTC
endswith should be endsWith with a capital W.

Comment 3 Martin Kho 2010-09-27 16:12:04 UTC
Hi Kevin,

If it's right what you say in comment #2, then the problem is with Python self.

rpm -qf /usr/lib64/python2.7/posixpath.py gives python-libs-2.7-11.fc15.x86_64

Am I wrong?

Martin Kho

Comment 4 Kevin Kofler 2010-09-27 16:17:20 UTC
Ugh, well, posixpath.py expects a Python string, which uses endswith, and it gets passed a QString, which expects endsWith…

But I thought we're already converting the argument to posixpath.py to a Python string…

Comment 5 Rex Dieter 2010-09-27 16:19:27 UTC
rpm -q python PyQt4

please.

Comment 6 Kevin Kofler 2010-09-27 16:19:42 UTC
Hmmm, within the printer-applet itself we are indeed doing the conversion, but the offender here in PyQt4's uic! Reassigning, and taking off the kde-4.5 tracker again since this is a regression in Rawhide's PyQt4 only.

Comment 7 Martin Kho 2010-10-04 15:36:50 UTC
Hi,

PyQt4-4.7.7-3.fc15.x86_64 solved this issue. This report can be closed, I suppose.

Thanks,

Martin Kho

Comment 8 Rex Dieter 2010-10-04 17:42:45 UTC
yay, closing.


Note You need to log in before you can comment on or make changes to this bug.