You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Error: DLL load failed while importing _ayonUsdResolver: The specified module could not be found.
# # Traceback (most recent call last):
# # File "<maya console>", line 5, in <module>
# # File "E:\dev\ayon-usd\client\ayon_usd\downloads\Maya2024_2_Py310_Win_Windows_AMD64\ayonUsdResolver\lib\python\usdAssetResolver\AyonUsdResolver\__init__.py", line 2, in <module>
# # Tf.PreparePythonModule()
# # File "C:\Program Files\Autodesk\MayaUSD\Maya2024\0.27.0_202402071410-bf4bd3e\mayausd\USD\lib\python\pxr\Tf\__init__.py", line 88, in PreparePythonModule
# # module = importlib.import_module(
# # File "C:\Program Files\Autodesk\Maya2024\Python\lib\importlib\__init__.py", line 126, in import_module
# # return _bootstrap._gcd_import(name[level:], package, level)
# # ImportError: DLL load failed while importing _ayonUsdResolver: The specified module could not be found.
It fails on line: from usdAssetResolver import AyonUsdResolver
However, if you load the mayaUsd plug-in and create an empty stage (mayaUsdProxyShape). Then these imports work fine.
Workaround ✅
However this code does work, without having mayaUsd plug-in loaded nor a stage opened.
Describe the bug
This will fail with an error:
Stack trace:
It fails on line:
from usdAssetResolver import AyonUsdResolver
However, if you load the
mayaUsd
plug-in and create an empty stage (mayaUsdProxyShape). Then these imports work fine.Workaround ✅
However this code does work, without having
mayaUsd
plug-in loaded nor a stage opened.Describe yourself
TD
To Reproduce
How did you discover the bug?
I ran that code when testing resolver.
Expected behaviour
Preferably, we can make AYON USD Resolver in Maya less picky about the import order.
Looking at the provided "workaround" I wonder if there's anything we should do to enforce the default resolver since that seemed to fix the import?
Screenshots
No response
Hardware Setup
n/a
Software Setup
Maya 2024.2
User Type
TD
Additional Environment Details
No response
What platform are you running on?
Windows 10
Additional context
No response
Is there an existing issue with this?
Are there any labels you wish to add?
The text was updated successfully, but these errors were encountered: