matiascodesal / maya-glTF

glTF 2.0 exporter for Autodesk Maya
MIT License
138 stars 31 forks source link

Error loading glTFTranslator plugin, Maya 2022 macOS #26

Open xinaesthete opened 2 years ago

xinaesthete commented 2 years ago

I'm very new to Maya - have just installed a trial of the current version from the website, in MacOS Big Sur. Following the instructions in the readme, I get an error No module named 'glTFExport'

PluginManager;
// Error: file: /Applications/Autodesk/maya2022/Maya.app/Contents/scripts/others/pluginWin.mel line 316: ModuleNotFoundError: file /Applications/Autodesk/maya2022/Maya.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py line 142: No module named 'glTFExport' // 
// Warning: file: /Applications/Autodesk/maya2022/Maya.app/Contents/scripts/others/pluginWin.mel line 316: Failed to run file: /Users/Shared/Autodesk/maya/2022/plug-ins/glTFTranslator.py // 
// Error: file: /Applications/Autodesk/maya2022/Maya.app/Contents/scripts/others/pluginWin.mel line 316:  (glTFTranslator) // 
// Error: file: /Applications/Autodesk/maya2022/Maya.app/Contents/scripts/others/pluginWin.mel line 316: ModuleNotFoundError: file /Applications/Autodesk/maya2022/Maya.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py line 142: No module named 'glTFExport' // 
// Warning: file: /Applications/Autodesk/maya2022/Maya.app/Contents/scripts/others/pluginWin.mel line 316: Failed to run file: /Users/Shared/Autodesk/maya/2022/plug-ins/glTFTranslator.py // 
// Error: file: /Applications/Autodesk/maya2022/Maya.app/Contents/scripts/others/pluginWin.mel line 316:  (glTFTranslator) // 
ProductInformation;
// Error: file: /Applications/Autodesk/maya2022/Maya.app/Contents/scripts/others/pluginWin.mel line 316: ModuleNotFoundError: file /Applications/Autodesk/maya2022/Maya.app/Contents/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py line 142: No module named 'glTFExport' // 
// Warning: file: /Applications/Autodesk/maya2022/Maya.app/Contents/scripts/others/pluginWin.mel line 316: Failed to run file: /Users/Shared/Autodesk/maya/2022/plug-ins/glTFTranslator.py // 
// Error: file: /Applications/Autodesk/maya2022/Maya.app/Contents/scripts/others/pluginWin.mel line 316:  (glTFTranslator) // 

I thought it might help to restart Maya, but it didn't.

MatthewHerbst commented 2 years ago

The installation instructions for the repo say to put the files in ~/Library/Preferences/Autodesk/maya/2022 but I found that they also needed to be in /Users/Shared/Autodesk/maya/2022. You can check by looking at the file path in the plugin manager. Hope this helps! Screen Shot 2022-02-17 at 11 19 07 AM

jjyang4213 commented 2 years ago

I had the same error. I'm not sure if this would apply to you, but all I needed to resolve the issue was to move the glTFExport.py file from the script folder into the plug-in folder so that both py files are in the same folder.

KolibriAnimation commented 6 months ago

Hello @jjyang4213 thanks, now load after I put them both in the same folder, but when I tried to export the file, there's no file. Did it work for you? (Maya 2024) :/