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:
*** Bug 637780 has been marked as a duplicate of this bug. ***
endswith should be endsWith with a capital W.
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
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…
rpm -q python PyQt4 please.
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.
Hi, PyQt4-4.7.7-3.fc15.x86_64 solved this issue. This report can be closed, I suppose. Thanks, Martin Kho
yay, closing.