PDA

View Full Version : PyQt5 5.15.2 Raspberry Pi issues



shift838
12th January 2021, 18:21
I have followed steps to compile and deploy from source PyQt 5.15.2 to my Raspberry Pi4.

If I do issue a 'pip3 list' i do see that PyQt5 version 5.15.2 is installed.

but when I attempt to run my program I get the below issue that seems to indicate an issue with an attribute.

Please note this exact code runs with PyQt5 15.2 on Windows, Linux and MacOS.



pygame 1.9.4.post1
Hello from the pygame community. https://www.pygame.org/contribute.html
qt5ct: using qt5ct plugin
Traceback (most recent call last):
File "./ooeygui.py", line 4026, in <module>
gui = Main()
File "./ooeygui.py", line 376, in __init__
self.ui = uic.loadUi(LOCAL_DIR + "ooeygui.ui", self)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/__init__.py", line 238, in loadUi
return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/Loader/loader.py", line 66, in loadUi
return self.parse(filename, resource_suffix)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 1037, in parse
actor(elem)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 828, in createUserInterface
self.traverseWidgetTree(elem)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 273, in createWidget
self.traverseWidgetTree(elem)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 273, in createWidget
self.traverseWidgetTree(elem)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 273, in createWidget
self.traverseWidgetTree(elem)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 273, in createWidget
self.traverseWidgetTree(elem)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 264, in createWidget
self.stack.push(self.setupObject(widget_class, parent, elem))
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 230, in setupObject
self.wprops.setProperties(obj, branch)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/properties.py", line 415, in setProperties
prop_value = self.convert(prop, widget)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/properties.py", line 378, in convert
return func(prop[0], **args)
File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/properties.py", line 292, in _palette
role = getattr(QtGui.QPalette, color.get('role'))
AttributeError: type object 'QPalette' has no attribute 'PlaceholderText'