You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Opening UIs with the latest "develop" branch code (8692072) causes an error, and the UI does not open.
All UIs in mmSolver use BaseMayaWindow, which uses the mix-in class maya.app.general.mayaMixin.MayaQWidgetDockableMixin, however in Maya 2025, this causes an error. The same code in Maya 2024 works fine.
Expected behavior:
A UI should open.
Actual behavior:
The tool errors;
# Error: object.__init__() takes exactly one argument (the instance to initialize)
# # Traceback (most recent call last):
# # File "<maya console>", line 2, in <module>
# # File "C:\Users\user\Documents\maya\2025\modules\mayaMatchMoveSolver-0.5.1-maya2025-win64\python\mmSolver\tools\userprefswindow\tool.py", line 36, in open_window
# # pref_window.main()
# # File "C:\Users\user\Documents\maya\2025\modules\mayaMatchMoveSolver-0.5.1-maya2025-win64\python\mmSolver\tools\userprefswindow\ui\pref_window.py", line 161, in main
# # win = PrefWindow.open_window(show=show, auto_raise=auto_raise, delete=delete)
# # File "C:\Users\user\Documents\maya\2025\modules\mayaMatchMoveSolver-0.5.1-maya2025-win64\python\mmSolver\ui\base_maya_window.py", line 202, in open_window
# # cls.instance = cls(parent=parent, name=name)
# # File "C:\Users\user\Documents\maya\2025\modules\mayaMatchMoveSolver-0.5.1-maya2025-win64\python\mmSolver\tools\userprefswindow\ui\pref_window.py", line 58, in __init__
# # super(PrefWindow, self).__init__(parent, name=name)
# # File "C:\Users\user\Documents\maya\2025\modules\mayaMatchMoveSolver-0.5.1-maya2025-win64\python\mmSolver\ui\base_maya_window.py", line 101, in __init__
# # super(BaseMayaWindow, self).__init__()
# # File "C:\Program Files\Autodesk\Maya2025\Python\Lib\site-packages\maya\app\general\mayaMixin.py", line 262, in __init__
# # super(MayaQWidgetDockableMixin, self).__init__(parent=parent, *args, **kwargs) # Init all baseclasses (including QWidget) of the main class
# # File "C:\Program Files\Autodesk\Maya2025\Python\Lib\site-packages\maya\app\general\mayaMixin.py", line 78, in __init__
# # super(MayaQWidgetBaseMixin, self).__init__(parent=parent, *args, **kwargs) # Init all baseclasses (including QWidget) of the main class
# # TypeError: object.__init__() takes exactly one argument (the instance to initialize)
Due to GitHub issue #267, here I had a hack BaseMayaWindow to disable
the Docking feature for all UIs in Maya 2025+
The only UI in mmSolver that actually uses docking (because it's
disabled by default) is the Solver window.
GitHub issue #251 and #267.
Problem
Opening UIs with the latest "develop" branch code (8692072) causes an error, and the UI does not open.
All UIs in mmSolver use
BaseMayaWindow
, which uses the mix-in classmaya.app.general.mayaMixin.MayaQWidgetDockableMixin
, however in Maya 2025, this causes an error. The same code in Maya 2024 works fine.Expected behavior:
A UI should open.
Actual behavior:
The tool errors;
Steps to Reproduce
Run the provided mixin_bug_v1.py script, like this:
The issue can be fixed by changing
C:\Program Files\Autodesk\Maya2025\Python\Lib\site-packages\maya\app\general\mayaMixin.py
line 78, from this:to this:
... simply replacing the
parent=parent
withparent
.Software Versions
mmSolver version: 0.5.1 develop branch; 8692072
Maya version: 2025
The text was updated successfully, but these errors were encountered: