Import Error: DLL load failed while importing _pydna: The specified module could not be found. From Quixel Bridge to Maya Export.

arain_danishnazir
Participant Participant
2,792 Views
5 Replies
Message 1 of 6

Import Error: DLL load failed while importing _pydna: The specified module could not be found. From Quixel Bridge to Maya Export.

arain_danishnazir
Participant
Participant

I want to export my Meta Human from Quixel Bridge I have exported my Meta Human with UAsset + Source Asset. Export is shown to be successful. But nothing appears in Maya. I have checked the console and this is the error I am getting: 

Import Error: DLL load failed while importing _pydna: The specified module could not be found.

 

I am using Windows 11 and Maya 2024 student version. I tried to install pydna package with mayapy -m pip install pydna. The installation was successful but still I am getting the same error. 

 

Full Console Data:

 

file -f -new;
// untitled
commandPort -securityWarning -name commandportDefault;
onSetCurrentLayout "General";
# DHI.modules.maya.util : Preparing paths and loading DHI Plugins
# DHI.modules.maya.util : Running on Windows 
Importing DHI external libraries
# DHI.modules.maya.util : Running Maya version 2017
# DHI.modules.maya.util : Fetching libraries from folder D:/Quixel Bridge/Megascans Library/support/plugins/maya/7.0/MSLiveLink/DHI/lib/Windows/python2
# DHI.modules.maya.util : Lib folder not on path... Adding
# DHI.modules.maya.util : Running on Windows 
# modules.maya.util : Running Maya version 2017
Loading plugin:  D:/Quixel Bridge/Megascans Library/support/plugins/maya/7.0/MSLiveLink/DHI/plugins/Windows/2017/embeddedRL4.mll
Error loading plugin embeddedRL4
Loading plugin:  D:/Quixel Bridge/Megascans Library/support/plugins/maya/7.0/MSLiveLink/DHI/plugins/Windows/2017/MayaUE4RBFPlugin2017.mll
Error loading plugin MayaUE4RBFPlugin2017
Loading plugin:  D:/Quixel Bridge/Megascans Library/support/plugins/maya/7.0/MSLiveLink/DHI/plugins/Windows/2017/MayaUERBFPlugin.mll
Error loading plugin MayaUERBFPlugin
saveShelf MSPlugin "C:/Users/Danish Nazir Arain/Documents/maya/2024/prefs/shelves/shelf_MSPlugin";
// 1
Quixel Bridge Plugin started successfully.
// Bifrost: Pre-loaded mayaUsdPlugin to access proper Maya USD libraries.
// Loading Bifrost version 2.7.0.0-202302170226-ac4d174
// Bifrost: Loading library: Amino, from: Autodesk.
// Bifrost: Loading library: AminoMayaTranslation, from: Autodesk.
// Bifrost: Loading library: bif, from: Autodesk.
// Bifrost: Loading library: bifrostObjectMayaTranslations, from: Autodesk.
// Bifrost: Loading library: geometries, from: Autodesk.
// Bifrost: Loading library: fluids, from: Autodesk.
// Bifrost: Loading library: particles, from: Autodesk.
// Bifrost: Loading library: file, from: Autodesk.
// Bifrost: Loading library: mpm, from: Autodesk.
// Bifrost: Loading library: modeling, from: Autodesk.
// Bifrost: Loading library: nucleus, from: Autodesk.
// Bifrost: Loading library: simulation, from: Autodesk.
// Bifrost: Loading library: riv_types, from: Autodesk.
// Bifrost: Loading library: riv, from: Autodesk.
// Bifrost: Loading library: scatter_pack, from: Autodesk.
// Bifrost: Loading library: graphs, from: Autodesk.
// Bifrost: Loading library: usd_pack, from: Autodesk.
// Bifrost: Loading library: usdMayaTranslations, from: Autodesk.
// Warning: file: C:\Users\Danish Nazir Arain\Documents\maya\2024\prefs\filePathEditorRegistryPrefs.mel line 4: filePathEditor: Attribute 'aiImage.filename' is invalid or is not designated 'usedAsFilename'.
// Warning: file: C:\Users\Danish Nazir Arain\Documents\maya\2024\prefs\filePathEditorRegistryPrefs.mel line 5: filePathEditor: Attribute 'aiPhotometricLight.aiFilename' is invalid or is not designated 'usedAsFilename'.
// Warning: file: C:\Users\Danish Nazir Arain\Documents\maya\2024\prefs\filePathEditorRegistryPrefs.mel line 6: filePathEditor: Attribute 'aiStandIn.dso' is invalid or is not designated 'usedAsFilename'.
// Warning: file: C:\Users\Danish Nazir Arain\Documents\maya\2024\prefs\filePathEditorRegistryPrefs.mel line 7: filePathEditor: Attribute 'aiVolume.filename' is invalid or is not designated 'usedAsFilename'.
// AbcExport v1.0 using Alembic 1.8.3 (built Feb 17 2023 07:53:30)
evalDeferred "shaderBallRendererMenuUpdate";
// Warning: line 1: filePathEditor: Attribute 'aiStandIn.dso' and label 'Standin' have been saved already.
// Warning: line 1: filePathEditor: Attribute 'aiVolume.filename' and label 'VDB' have been saved already.
// Warning: line 1: filePathEditor: Attribute 'aiImage.filename' and label 'Image' have been saved already.
// Warning: line 1: filePathEditor: Attribute 'aiPhotometricLight.aiFilename' and label 'IES' have been saved already.
import arnold
import mtoa
import mtoa.cmds.registerArnoldRenderer;mtoa.cmds.registerArnoldRenderer.registerArnoldRenderer()
updateRenderOverride;
import mtoa.viewport;mtoa.viewport.add_controls()
// AbcImport v1.0 using Alembic 1.8.3 (built Feb 17 2023 07:53:30)
updateRendererUI;
file -f -new;
// untitled
Found import data, importing...
Analytics Sent
Received data with DH Character descriptor. Initializing import!
# Traceback (most recent call last):
#   File "D:\Quixel Bridge\Megascans Library\support\plugins\maya\7.0\MSLiveLink\LiveLink.py", line 124, in InitializeImporter
#     from DHI.DHIImporterSetup import DHIImporterSetup
#   File "D:\Quixel Bridge\Megascans Library\support\plugins\maya\7.0\MSLiveLink\DHI\DHIImporterSetup.py", line 8, in <module>
#     from DHI.modules.dna.scene.builder.sceneBuilder import SceneBuilder, SceneBuilderError
#   File "D:\Quixel Bridge\Megascans Library\support\plugins\maya\7.0\MSLiveLink\DHI\modules\dna\scene\builder\sceneBuilder.py", line 7, in <module>
#     from DHI.modules.dna.dnaprovider import DNAProvider
#   File "D:\Quixel Bridge\Megascans Library\support\plugins\maya\7.0\MSLiveLink\DHI\modules\dna\dnaprovider.py", line 5, in <module>
#     from DHI.modules.dna.dnaholder import DNAHolder
#   File "D:\Quixel Bridge\Megascans Library\support\plugins\maya\7.0\MSLiveLink\DHI\modules\dna\dnaholder.py", line 1, in <module>
#     import dna
#   File "D:\Quixel Bridge/Megascans Library/support/plugins/maya/7.0/MSLiveLink/DHI/lib/Windows/python2\dna.py", line 15, in <module>
#     import _pydna
# ImportError: DLL load failed while importing _pydna: The specified module could not be found.

 

0 Likes
Accepted solutions (1)
2,793 Views
5 Replies
Replies (5)
Message 2 of 6

arain_danishnazir
Participant
Participant

Update: I tried dependencies walker, and it shows me a lot of dll files are missing. I searches for the dll files but people at Stack Overflow suggested I use Dependencies instead of Dependencies Walker as it gives false negatives. 

After using Dependencies, it shows me my python27.dll is missing. I don't know what to do next.

Message 3 of 6

arain_danishnazir
Participant
Participant

I installed python 2.7, dependencies show no conflict now. but still, I am getting the same error. 

Message 4 of 6

arain_danishnazir
Participant
Participant

After looking at the error line code and looking at dna.py that Swig generated. I know that this is a problem in finding my package or folder. I don't fully understand the code, but I know it's unable to find the module in the current directory. if statement is never true. else is running. I don't know where the else is supposed to import _pydna from. Am I suppose to pip install it somewhere?

 

If I run the statement in if I get this error in Maya. 

# ImportError: attempted relative import with no known parent package

 code.png

 

Message 5 of 6

arain_danishnazir
Participant
Participant
Accepted solution

I have contact Quixel support and they have informed me that Quixel Bridge for now doesn't support Maya 2024. Quixel FAQs 

0 Likes
Message 6 of 6

evanbung
Community Visitor
Community Visitor

This error occurs when you try to import a module using a relative import, but Python cannot find the module's parent package.A relative import is a way to import a module that is located in the same package or module as the importing module.

To fix this error "Attempted relative import with no known parent package", ensure you have a proper package structure in your project, which includes an __init__.py file in each directory you want to treat as a package. Verify that the directory containing your main script (the one you run) is included in the Python path (sys.path). If you prefer not to use packages, consider using absolute imports by specifying the full path to the module you want to import. Alternatively, reorganize your project structure to adhere to a clear package structure for relative imports to work correctly.

 

0 Likes