xbpeng / DeepMimic

Motion imitation with deep reinforcement learning.
https://xbpeng.github.io/projects/DeepMimic/index.html
MIT License
2.3k stars 487 forks source link

Python Fail to Import _DeepMimicCore on Windows 10 #76

Open donamin opened 5 years ago

donamin commented 5 years ago

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 commented 5 years ago

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

Zju-George commented 5 years ago

12 It may be something about missing .dll

vkozin97 commented 5 years ago

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 commented 5 years ago

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

kuochiyoug commented 5 years ago

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

Wastoon commented 3 years ago

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!

tinelion commented 1 year ago

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.

wdfdasss commented 10 months ago

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