DeepMimic icon indicating copy to clipboard operation
DeepMimic copied to clipboard

Python Fail to Import _DeepMimicCore on Windows 10

Open donamin opened this issue 5 years ago • 8 comments

I'm getting this error when running DeepMimicCore.py: Traceback (most recent call last): File "E:/Aalto University/ProjectSources/DeepMimic/DeepMimic.py", line 9, in <module> from env.deepmimic_env import DeepMimicEnv File "E:\Aalto University\ProjectSources\DeepMimic\env\deepmimic_env.py", line 3, in <module> from DeepMimicCore import DeepMimicCore File "E:\Aalto University\ProjectSources\DeepMimic\DeepMimicCore\DeepMimicCore.py", line 13, in <module> from . import _DeepMimicCore ImportError: DLL load failed: The specified module could not be found.

I also tried with Bullet 2.88 but it's not solved. This is my DeepMimicCore folder after building the DeepMimicCore solution. image

donamin avatar Aug 13 '19 18:08 donamin

Update: I tried installing Anaconda Python but didn't fix the problem. I'm building _DeepMimicCore.pyd using Visual Studio Community 2019.

donamin avatar Aug 13 '19 23:08 donamin

#12 It may be something about missing .dll

Zju-George avatar Aug 15 '19 02:08 Zju-George

After seemingly sucсessful build of DeepMimicCore and running the example from ReadMe I have the same problem:

(DeepMimicEnv) C:\Users\KozinV\Documents\Android Walking\DeepMimic>python DeepMimic.py --arg_file args/run_humanoid3d_spinkick_args.txt Traceback (most recent call last): File "DeepMimic.py", line 9, in <module> from env.deepmimic_env import DeepMimicEnv File "C:\Users\KozinV\Documents\Android Walking\DeepMimic\env\deepmimic_env.py", line 3, in <module> from DeepMimicCore import DeepMimicCore File "C:\Users\KozinV\Documents\Android Walking\DeepMimic\DeepMimicCore\DeepMimicCore.py", line 13, in <module> from . import _DeepMimicCore ImportError: DLL load failed: Не найден указанный модуль.

My DeepMimicCore directory has also a package directory and a package.config file, because I used the NuGet for building the solution. Dont think that's the reason for this issue. image

Have anybody already solved this?

vkozin97 avatar Aug 20 '19 16:08 vkozin97

Seems like I've resolved this particular issue. What worked for me is adding the folder containing "freeglut.dll", "glew32.dll" and "glfw3.dll" to my Path system variable

vkozin97 avatar Aug 21 '19 12:08 vkozin97

I tested with my project and it also has same problem. But I test with only include with built glew32.dll will be fine. And now it runs nice and well! deep mimic

kuochiyoug avatar Aug 22 '19 19:08 kuochiyoug

Update: I tried installing Anaconda Python but didn't fix the problem. I'm building _DeepMimicCore.pyd using Visual Studio Community 2019.

Hi, buddy, have you solved this problem till now? Could you do me a favor, cause I am just suffering the same problem as you. Thanks a lot!

Wastoon avatar Jun 09 '21 05:06 Wastoon

Seems like I've resolved this particular issue. What worked for me is adding the folder containing "freeglut.dll", "glew32.dll" and "glfw3.dll" to my Path system variable

This works for me,after do this and reboot. thanks a lot.

tinelion avatar Oct 29 '22 09:10 tinelion

Check that you are linking to glew-2.1.0\bin\Release\x64 and not glew-2.1.0\lib\Release\x64

wdfdasss avatar Nov 30 '23 01:11 wdfdasss