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.
Solution 1 (Recommended)
Run the following in Maya’s Python Script Editor:
import maya.cmds as cmds scriptsPath = cmds.internalVar(userScriptDir=True) print(scriptsPath)
Maya will print out the correct user scripts path.
Copy the entire
xgtc
folder into that path.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:
Run the script from Solution 1 to get your correct scripts path.
Go to your *Documents\maya<Your Maya Version>* folder.
Locate the
Maya.env
file. Right-click → Edit.Add this line (replace with your printed path):
MAYA_SCRIPT_PATH = C:\Users\blues\OneDrive\Documents\maya\2022\scripts
Save the file and restart Maya.
Always double-check that the xgtc
folder is directly inside the scripts
folder (not nested inside another subfolder).
Last updated