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.

Qt Code:
  1. pygame 1.9.4.post1
  2. Hello from the pygame community. https://www.pygame.org/contribute.html
  3. qt5ct: using qt5ct plugin
  4. Traceback (most recent call last):
  5. File "./ooeygui.py", line 4026, in <module>
  6. gui = Main()
  7. File "./ooeygui.py", line 376, in __init__
  8. self.ui = uic.loadUi(LOCAL_DIR + "ooeygui.ui", self)
  9. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/__init__.py", line 238, in loadUi
  10. return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
  11. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/Loader/loader.py", line 66, in loadUi
  12. return self.parse(filename, resource_suffix)
  13. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 1037, in parse
  14. actor(elem)
  15. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 828, in createUserInterface
  16. self.traverseWidgetTree(elem)
  17. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
  18. handler(self, child)
  19. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 273, in createWidget
  20. self.traverseWidgetTree(elem)
  21. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
  22. handler(self, child)
  23. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
  24. self.traverseWidgetTree(elem)
  25. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
  26. handler(self, child)
  27. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
  28. self.traverseWidgetTree(elem)
  29. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
  30. handler(self, child)
  31. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 273, in createWidget
  32. self.traverseWidgetTree(elem)
  33. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
  34. handler(self, child)
  35. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 273, in createWidget
  36. self.traverseWidgetTree(elem)
  37. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
  38. handler(self, child)
  39. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
  40. self.traverseWidgetTree(elem)
  41. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
  42. handler(self, child)
  43. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
  44. self.traverseWidgetTree(elem)
  45. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
  46. handler(self, child)
  47. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 273, in createWidget
  48. self.traverseWidgetTree(elem)
  49. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
  50. handler(self, child)
  51. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
  52. self.traverseWidgetTree(elem)
  53. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
  54. handler(self, child)
  55. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
  56. self.traverseWidgetTree(elem)
  57. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
  58. handler(self, child)
  59. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 264, in createWidget
  60. self.stack.push(self.setupObject(widget_class, parent, elem))
  61. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/uiparser.py", line 230, in setupObject
  62. self.wprops.setProperties(obj, branch)
  63. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/properties.py", line 415, in setProperties
  64. prop_value = self.convert(prop, widget)
  65. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/properties.py", line 378, in convert
  66. return func(prop[0], **args)
  67. File "/usr/local/lib/python3.7/dist-packages/PyQt5/uic/properties.py", line 292, in _palette
  68. role = getattr(QtGui.QPalette, color.get('role'))
  69. AttributeError: type object 'QPalette' has no attribute 'PlaceholderText'
To copy to clipboard, switch view to plain text mode