Module Not Found Error

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

Cause: This usually happens if:

  • You are running Maya in a non-English language version.

  • The xgtc folder is not located in a directory that Maya searches by default.


  1. Run the following in Maya’s Python Script Editor:

    import maya.cmds as cmds
    scriptsPath = cmds.internalVar(userScriptDir=True)
    print(scriptsPath)
  2. Maya will print out the correct user scripts path.

  3. Copy the entire xgtc folder into that path.

  4. Restart Maya and try launching Groomer’s Tool again.


Solution 2 (Alternative)

If Solution 1 does not fix it, you can add the scripts path manually:

  1. Run the script from Solution 1 to get your correct scripts path.

  2. Go to your *Documents\maya<Your Maya Version>* folder.

  3. Locate the Maya.env file. Right-click → Edit.

  4. Add this line (replace with your printed path):

    MAYA_SCRIPT_PATH = C:\Users\blues\OneDrive\Documents\maya\2022\scripts
  5. Save the file and restart Maya.

Last updated