Home Website Youtube GitHub

Installing mGear 5.0.7 on Maya 2020

I’m having a bit of an issue with mGear install.
I’m click and dragging the “drag_n_drop_install.py” into my maya scene like I’ve done on previous versions. It detects i old veriosn i uninstall that one, it says it installed the new version BUT the mGear menu is not showing up on top. (I was on mGear 4.0.9 before) and when I click and drag that installer it installs just fine.

Do i need to update my Maya as well? or is there something I’m not aware of.

I looked a bit in the script window and this is what i got :

Failed to execute userSetup.py
Traceback (most recent call last):
File “C:\Users\Hobbz\Documents\maya\modules\scripts\userSetup.py”, line 18, in
import mgear.menu
File “C:\Users\Hobbz\Documents\maya\modules\scripts\mgear_init_.py”, line 7, in
from . import menu
File “C:\Users\Hobbz\Documents\maya\modules\scripts\mgear\menu.py”, line 2, in
import mgear.pymaya as pm
File “C:\Users\Hobbz\Documents\maya\modules\scripts\mgear\pymaya_init_.py”, line 1, in
from .cmd import *
File “C:\Users\Hobbz\Documents\maya\modules\scripts\mgear\pymaya\cmd.py”, line 259
f"{key}={repr(value)}" for key, value in kwargs.items()
^

Thank you.

Maya 2020 uses Python 2.7, which did not have f-strings.

And the release notes do say “IMPORTANT NOTE: mGear5 is not compatible with python 2”. mGear 5 does ship with solvers for 2018, 2019, or 2020. But I guess that just means it is for running the rigs, not for using the framework.

You’ll likely have to do one of these options:

  • Update to Maya 2022+
  • Stay on mGear 4.x.x
  • Fix the script yourself (change the f"{key}... to a different string formatting from Python 2.7.
  • Or install using the Maya.env method instead of drag-and-drop. (But with these last 2 options, there might be other places f-strings are used, and you’ll just find more errors.)

TY so much for the info!
I must have missed the bit with Python 2 not being compatible.
Cheers!