ModuleNotFoundError

ModuleNotFoundError: file C:/Users/blues/....py line 13: No module named 'xgToolsUI_user_sub'

SOLUTION1:

  • Chances are that you are using Maya in another language, or the xgtc folder is not placed in a directory that's in Maya's default path.

  • Please run this script in Maya Python Editor, then put the 'xgtc' folder in the path shown.

scriptsPath = cmds.internalVar(userScriptDir  = True)
print (scriptsPath)
  • Restart Maya


SOLUTION2:

  • Run the command from Solution 1 in Maya.

  • Go to your Documents\maya\version\ folder. Locate Maya.env file, right click -> edit.

  • Then add this line with the printed path from Maya. ​Save and restart your Maya.

MAYA_SCRIPT_PATH = C:\Users\blues\OneDrive\Documents\maya\2022\scripts
  • Restart Maya

Last updated