maya-usd icon indicating copy to clipboard operation
maya-usd copied to clipboard

Unable to load most recent plugin

Open antopilo opened this issue 1 year ago • 3 comments

Describe the bug After installing MayaUSD_0.24.0_Maya2024.1_Windows from the release section, Maya 2024.1 fails to load the plugin.

Steps to reproduce Steps to reproduce the behavior:

  1. Install MayaUSD_0.24.0_Maya2024.1_Windows.exe
  2. Launch Maya 2024.1
  3. Navigate to the plugin settings window
  4. Enable MayaUSD
  5. Check output log in the script editor

Expected behavior The plugin should be able to load.

Attachments

// Error: file: C:/Program Files/Autodesk/Maya2024/scripts/others/pluginWin.mel line 316: Unable to dynamically load : C:/Program Files/Autodesk/MayaUSD/Maya2024/0.24.0_202306271239-a402544/mayausd/MayaUSD/plugin/adsk/plugin/mayaUsdPlugin.mll
// The specified procedure could not be found.
// Error: file: C:/Program Files/Autodesk/Maya2024/scripts/others/pluginWin.mel line 316: Unable to dynamically load : C:/Program Files/Autodesk/MayaUSD/Maya2024/0.24.0_202306271239-a402544/mayausd/MayaUSD/plugin/adsk/plugin/mayaUsdPlugin.mll
// The specified procedure could not be found.
// Error: file: C:/Program Files/Autodesk/Maya2024/scripts/others/pluginWin.mel line 316: Unable to dynamically load : C:/Program Files/Autodesk/MayaUSD/Maya2024/0.24.0_202306271239-a402544/mayausd/MayaUSD/plugin/adsk/plugin/mayaUsdPlugin.mll
// The specified procedure could not be found.
// Error: file: C:/Program Files/Autodesk/Maya2024/scripts/others/pluginWin.mel line 316: Unable to dynamically load : C:/Program Files/Autodesk/MayaUSD/Maya2024/0.24.0_202306271239-a402544/mayausd/MayaUSD/plugin/adsk/plugin/mayaUsdPlugin.mll
// The specified procedure could not be found.
// Error: file: C:/Program Files/Autodesk/Maya2024/scripts/others/pluginWin.mel line 934: Unable to dynamically load : C:/Program Files/Autodesk/MayaUSD/Maya2024/0.24.0_202306271239-a402544/mayausd/MayaUSD/plugin/adsk/plugin/mayaUsdPlugin.mll
// The specified procedure could not be found.

Specs (if applicable):

  • OS & version: Windows 11
  • Maya version Maya 2024.1
  • Maya USD commit release
  • Pixar USD commit release

antopilo avatar Sep 26 '23 18:09 antopilo

Hi @antopilo, we have seen similar issues in the past, usually related to environment variables. a couple of things to check here:

Check to make sure your python and system Paths aren't conflicting with mayausd. you shouldn't have anything usd on your PATH & PYTHONPATH at system level, as Maya sets all of the necessary env vars at the session start.

If that doesn't solve the problem, I would recommend double checking your mayausd.mod file (you can find this file under "C:\Program Files\Common Files\Autodesk Shared\Modules\Maya\2024"). All of the paths should point to a common root directory, that being the installed location of mayausd.

Hope it helps! :)

santosg87 avatar Sep 27 '23 13:09 santosg87

Issue synced internally to EMSUSD-820

maya-usd-git-sync[bot] avatar Nov 08 '23 15:11 maya-usd-git-sync[bot]

If you encounter a similar problem in the future, my issue was primarily caused by the PATH environment variable. It included a path to some USD libraries that were present alongside the libraries installed with the plugins. Once I removed these paths from the PATH environment variable, the plugin loaded without any issues. Therefore, it's important to eliminate any paths related to USD libraries that are not part of the libraries the plugin is attempting to use. Generally, the relevant libraries for the plugin are located in the installation directory, typically under C:/Program Files/Autodesk/MayaUSD.

jeancolasp avatar Jan 20 '24 14:01 jeancolasp