Home Website Youtube GitHub

Custom Shifter Components not loading in newer maya

Hi there,
Just had an issue with updating mgear from maya 2020 to maya 2023, namely the custom shifter components that Chris Lesage shared a few years ago, they were returning an error when loading the shifter guide manager:

# Warning: spine_horizontal_01 can't be load. Error at import
# Error: No module named 'settingsUI'
# Error: Traceback (most recent call last):
#   File "C:\Users\Anjoo\Documents\maya\modules\scripts\mgear\core\utils.py", line 156, in importFromStandardOrCustomDirectories
#     module = __import__(module_name, globals(), locals(), ["*"], level)
# ModuleNotFoundError: No module named 'mgear.core.shifter'

I think I fixed it by going into the guide.py file in each custom componentā€™s folder:
C:\Users\Me\Documents\maya\modules\scripts\mgearCustomModules\spine_horizontal_01\guide.py
and just changed:

import settingsUI as sui
to
from . import settingsUI as sui

Everything seems to be fine so far :v:

1 Like

Thanks for writing this out! I had to do this today too, and remembered ā€œsettingsUIā€ from your post.

I made those custom components quite a few versions back, so some things have changed.

Also I edited your post to add backticks so the code formats as code. :raised_hands:

1 Like