Import Error

Error 1

# Error: ImportError: file <maya console> line 8: Bad magic number in "your path\xgToolsUI_user.pyc"

Cause: This happens because the .pyc (compiled Python) files you are using were generated for a different Maya version (different Python version). They are not compatible with the Maya version you are currently running.

Solution:

  • Make sure you have downloaded and installed the correct Groomer’s Tool package for your specific Maya version.

  • Delete any old or leftover .pyc files, then restart Maya.


Error 2

# Error: ImportError: file <maya console> line 1: Bad magic number in "xgtc" : b'a\r\r\n'

Cause: This also means the installed Groomer’s Tool files are incompatible with your current Maya version.

Solution:

  1. Verify that you are using the correct Groomer’s Tool version for your Maya version.

  2. Go to:

    Documents\maya\<Your Maya Version>\prefs\scripts
  3. Find and delete the xgtc folder.

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

Last updated