Traceback (most recent call last):
File "D:\git_pipeline\avalon\development\git\core\setup\maya\userSetup.py", line 2, in <module>
api.install(maya)
File "D:\git_pipeline\avalon\development\git\core\avalon\pipeline.py", line 79, in install
host.install(config)
File "D:\git_pipeline\avalon\development\git\core\avalon\maya\pipeline.py", line 54, in install
_install_menu()
File "D:\git_pipeline\avalon\development\git\core\avalon\maya\pipeline.py", line 136, in _install_menu
_uninstall_menu()
File "D:\git_pipeline\avalon\development\git\core\avalon\maya\pipeline.py", line 271, in _uninstall_menu
widgets = dict((w.objectName(), w) for w in app.allWidgets())
AttributeError: 'PySide2.QtCore.QCoreApplication' object has no attribute 'allWidgets'
To Reproduce
Run Maya 2020 with Avalon and have it automatically initialize through the provided userSetup.py.
Issue
What happened?
With Maya 2020 there have been some updates to PySide and how Maya initializes. I started the discussion on Avalon Gitter and found out that Maya now during
userSetup.py
runs asQtCore.QCoreApplication
instance as opposed toQtWidgets.QApplication
.To Reproduce Run Maya 2020 with Avalon and have it automatically initialize through the provided
userSetup.py
.I have a fix for this working. Will set up a PR.