Opened 13 years ago

Last modified 13 years ago

#27801 closed defect

timedrive @0.3.1 fails to start giving "AttributeError: 'module' object has no attribute 'StackedWidget'" — at Initial Version

Reported by: andreas.wilm@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: py27-pyqt4 timedrive

Description

Hi all,

now that timedrive uses python-2.7 (see https://trac.macports.org/ticket/27645) I get the following error on startup:

$ time-drive-2.7
Traceback (most recent call last):
  File "/opt/local/bin/time-drive-2.7", line 29, in <module>
    main()
  File "/opt/local/bin/time-drive-2.7", line 24, in main
    window = MainWindow()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/timedrive/app.py", line 35, in __init__
    gui_utils.loadUi(self, "uiMainWindow.ui")
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/timedrive/utils/gui_utils.py", line 43, in loadUi
    uic.loadUi(utils.find_file(uiFile), self)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/__init__.py", line 185, in loadUi
    return DynamicUILoader().loadUi(uifile, baseinstance)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/Loader/loader.py", line 35, in loadUi
    return self.parse(filename, basedir)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", line 839, in parse
    actor(elem)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", line 686, in createUserInterface
    self.traverseWidgetTree(elem)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", line 664, in traverseWidgetTree
    handler(self, child)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", line 406, in createLayout
    self.traverseWidgetTree(elem)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", line 664, in traverseWidgetTree
    handler(self, child)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", line 443, in handleItem
    self.traverseWidgetTree(elem)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", line 664, in traverseWidgetTree
    handler(self, child)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", line 406, in createLayout
    self.traverseWidgetTree(elem)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", line 664, in traverseWidgetTree
    handler(self, child)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", line 443, in handleItem
    self.traverseWidgetTree(elem)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", line 664, in traverseWidgetTree
    handler(self, child)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", line 406, in createLayout
    self.traverseWidgetTree(elem)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", line 664, in traverseWidgetTree
    handler(self, child)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", line 443, in handleItem
    self.traverseWidgetTree(elem)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", line 664, in traverseWidgetTree
    handler(self, child)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt4/uic/uiparser.py", line 161, in createWidget
    QtGui.QScrollArea, QtGui.StackedWidget,
AttributeError: 'module' object has no attribute 'StackedWidget'

Might be a PytQt bug instead. I have py27-pyqt4 @4.8.2 installed

Andreas

Change History (0)

Note: See TracTickets for help on using tickets.