EpicGames / MetaHuman-DNA-Calibration

https://epicgames.github.io/MetaHuman-DNA-Calibration/
Other
433 stars 116 forks source link

python interpreter _py3dna import error #56

Open cysoo23 opened 1 month ago

cysoo23 commented 1 month ago

When attempting to run dna_demo.py from the Python interpreter, I included the environment setup code block at the beginning of the script. Unfortunately, I encountered an "ImportError: DLL load failed while importing _py3dna:" error message. How can I solve this?

n0phx commented 1 month ago

This could be due to the restrictions introduced in Python 3.8 and upwards, which require the usage of os.add_dll_directory . With the latest release of MetaHuman-DNA-Calibration, we have added some fallback paths which will automatically invoke add_dll_directory with the paths present on PATH, making it compatible with the earlier behavior. Please try again with the latest release.