[MacPorts] #27801: timedrive @0.3.1 fails to start giving "AttributeError: 'module' object has no attribute 'StackedWidget'"
#27801: timedrive @0.3.1 fails to start giving "AttributeError: 'module' object has no attribute 'StackedWidget'" ----------------------------------------------------+----------------------- Reporter: andreas.wilm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: timedrive AttributeError StackedWidget | Port: timedrive ----------------------------------------------------+----------------------- 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 -- Ticket URL: <https://trac.macports.org/ticket/27801> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27801: timedrive @0.3.1 fails to start giving "AttributeError: 'module' object has no attribute 'StackedWidget'" ------------------------------------+--------------------------------------- Reporter: andreas.wilm@… | Owner: snc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: timedrive ------------------------------------+--------------------------------------- Changes (by jmr@…): * keywords: timedrive AttributeError StackedWidget => * owner: macports-tickets@… => snc@… Comment: Please remember to cc the maintainer. -- Ticket URL: <https://trac.macports.org/ticket/27801#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27801: timedrive @0.3.1 fails to start giving "AttributeError: 'module' object has no attribute 'StackedWidget'" ------------------------------------+--------------------------------------- Reporter: andreas.wilm@… | Owner: snc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: timedrive py27-pyqt4 ------------------------------------+--------------------------------------- Changes (by snc@…): * cc: michaelld@… (added) * port: timedrive => timedrive py27-pyqt4 Old 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
New description: Hi all, now that timedrive uses python-2.7 (see #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 -- -- Ticket URL: <https://trac.macports.org/ticket/27801#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27801: timedrive @0.3.1 fails to start giving "AttributeError: 'module' object has no attribute 'StackedWidget'" ------------------------------------+--------------------------------------- Reporter: andreas.wilm@… | Owner: snc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: timedrive py27-pyqt4 ------------------------------------+--------------------------------------- Comment(by arne.schmitz@…): FYI, this is a bug in PyQt4. If you manually change the "StackedWidget" in uiparser.py, line 161, to "QStackedWidget" the problem goes away. I do not know if this has been fixed yet, but my port is from 2 days ago, and the bug was still in there. -- Ticket URL: <https://trac.macports.org/ticket/27801#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27801: timedrive @0.3.1 fails to start giving "AttributeError: 'module' object has no attribute 'StackedWidget'" ------------------------------------+--------------------------------------- Reporter: andreas.wilm@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: py27-pyqt4 timedrive ------------------------------------+--------------------------------------- Changes (by snc@…): * cc: michaelld@… (removed) * cc: snc@… (added) * owner: snc@… => michaelld@… * port: timedrive py27-pyqt4 => py27-pyqt4 timedrive -- Ticket URL: <https://trac.macports.org/ticket/27801#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27801: timedrive @0.3.1 fails to start giving "AttributeError: 'module' object has no attribute 'StackedWidget'" -------------------------------------+-------------------------------------- Reporter: andreas.wilm@… | Owner: michaelld@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: Port: py27-pyqt4 timedrive | -------------------------------------+-------------------------------------- Changes (by michaelld@…): * status: new => closed * resolution: => fixed Comment: Fixed in r75342. timedrive now works for me using Python 2.7 ;) -- Ticket URL: <https://trac.macports.org/ticket/27801#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27801: timedrive @0.3.1 fails to start giving "AttributeError: 'module' object has no attribute 'StackedWidget'" -------------------------------------+-------------------------------------- Reporter: andreas.wilm@… | Owner: michaelld@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: Port: py27-pyqt4 timedrive | -------------------------------------+-------------------------------------- Comment(by macsforever2000@…): @ michaelld: Shouldn't this fix be put into the py26-pyqt4 port too? We want to keep the portfiles as close as possible. -- Ticket URL: <https://trac.macports.org/ticket/27801#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#27801: timedrive @0.3.1 fails to start giving "AttributeError: 'module' object has no attribute 'StackedWidget'" -------------------------------------+-------------------------------------- Reporter: andreas.wilm@… | Owner: michaelld@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: fixed | Keywords: Port: py27-pyqt4 timedrive | -------------------------------------+-------------------------------------- Comment(by michaelld@…): Done in r75410. -- Ticket URL: <https://trac.macports.org/ticket/27801#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts