Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 668289 - Little typo in /usr/lib64/python2.7/site-packages/PyQt4/uic/uiparser.py
Summary: Little typo in /usr/lib64/python2.7/site-packages/PyQt4/uic/uiparser.py
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: PyQt4
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 669243
TreeView+ depends on / blocked
 
Reported: 2011-01-09 20:48 UTC by Martin Kho
Modified: 2011-01-15 15:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-15 15:10:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Martin Kho 2011-01-09 20:48:00 UTC
Description of problem:

Starting "printer-applet" results in a crash (abrt pops up).

"The 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 185, in loadUi
    return DynamicUILoader().loadUi(uifile, baseinstance)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/Loader/loader.py", line 35, in loadUi
    return self.parse(filename, basedir)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/uiparser.py", line 839, in parse
    actor(elem)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/uiparser.py", line 686, in createUserInterface
    self.traverseWidgetTree(elem)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/uiparser.py", line 664, in traverseWidgetTree
    handler(self, child)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/uiparser.py", line 161, in createWidget
    QtGui.QScrollArea, QtGui.StackedWidget,
AttributeError: 'module' object has no attribute 'StackedWidget'"

The problem is a typo in file /usr/lib64/python2.7/site-packages/PyQt4/uic/uiparser.py" line 161:

"       if isinstance(parent, (QtGui.QDockWidget, QtGui.QMdiArea,
                               QtGui.QScrollArea, QtGui.StackedWidget,
                               QtGui.QToolBox, QtGui.QTabWidget,
                               QtGui.QWizard)):"

QtGui.StackedWidget must be QtGui.QStackedWidget

Version-Release number of selected component (if applicable):
* PyQt4-4.8.2-1.fc15.x86_64
* kdeutils-printer-applet-4.5.95-1.fc15.x86_64

How reproducible:
Login into KDE (abrt pops up) or Start printer-applet at the command prompt.

 
Actual results:
printer-applet crashes

Expected results:
printer-applet gets loaded at login

Additional info:

Comment 1 Rex Dieter 2011-01-15 15:10:07 UTC
This should be fixed in PyQt4-4.8.3-0.1.454d07a16153 building now


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