Open grumm9690 opened 3 years ago
As described in the requirements, Windows support has been DEPRECATED and removed in 2.0.2.0. One known good past version is 1.50.1.68.
As i described in the issue, i can't install 1.50.1.68 version, that's why i want to install 2.0,2.13 version. Though i found few fixes for the errors i'm getting when installing/trying to import mujoco-py 1.50.1.68, but i'm still stuck on
distutils.errors.CompileError: command 'C:\\ProgramFiles(x86)\\MicrosoftVisualStudio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
error.
I'm having the same issue. When I import the environment I get this,
`CompileError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit status 2
cl : Command line warning D9025 : overriding '/W3' with '/w' cl : Command line warning D9002 : ignoring unknown option '-fopenmp'`
Can you solve the problem?the upstairs
正如我在问题中描述的, 我不能安装 1.50.1.68 版本, 这就是为什么我想安装 2.0, 2.13 版本。虽然我在安装/尝试导入 mujoco-py 1.50.1.68 时发现的错误几乎没有修复方法,但我仍然停留在错误上。
distutils.errors.CompileError: command 'C:\\ProgramFiles(x86)\\MicrosoftVisualStudio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
你只要把这个加入到环境变量中就可以
I'm having the same issue. When I import the environment I get this,
`CompileError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit status 2
cl : Command line warning D9025 : overriding '/W3' with '/w' cl : Command line warning D9002 : ignoring unknown option '-fopenmp'`
The error indicates that the path for compiling mujoco-py is too long. One needs to download the source directly and install it according to this.
The other error
ImportError: DLL load failed while importing cymj: The specified module could not be found..
which was the original topic of this discussion is problem of python version since 3.8. (the above mentioned tutorial uses 3.7.6). Since python 3.8, only "trusted dlls" are loaded. Hence, one has to add the location of the installed mujoco version to the list of allowed DLLs:
os.add_dll_directory("....... //.mujoco//mjpro150//bin")
(For others version accordingly.)
os.add_dll_directory("....... //.mujoco//mjpro150//bin")
this helped!. Thanks
The other error
ImportError: DLL load failed while importing cymj: The specified module could not be found..
which was the original topic of this discussion is problem of python version since 3.8. (the above mentioned tutorial uses 3.7.6). Since python 3.8, only "trusted dlls" are loaded. Hence, one has to add the location of the installed mujoco version to the list of allowed DLLs:os.add_dll_directory("....... //.mujoco//mjpro150//bin")
(For others version accordingly.)
Thanks for your answer. I recommend that you add this comand in 'mujoco-py/mujoco-py/builder.py' after imported lib (extracted file github). After 'python setup.py' in native x64 VS and import mujoco_py in python, you don't need add os.add_dll_directory... in every script.
The other error
ImportError: DLL load failed while importing cymj: The specified module could not be found..
which was the original topic of this discussion is problem of python version since 3.8. (the above mentioned tutorial uses 3.7.6). Since python 3.8, only "trusted dlls" are loaded. Hence, one has to add the location of the installed mujoco version to the list of allowed DLLs:os.add_dll_directory("....... //.mujoco//mjpro150//bin")
(For others version accordingly.)
Worked for me, thank you.
I'm having the same issue. When I import the environment I get this,
CompileError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit status 2 cl : Command line warning D9025 : overriding '/W3' with '/w' cl : Command line warning D9002 : ignoring unknown option '-fopenmp'
The error indicates that the path for compiling mujoco-py is too long. One needs to download the source directly and install it according to this.
The other error
ImportError: DLL load failed while importing cymj: The specified module could not be found..
which was the original topic of this discussion is problem of python version since 3.8. (the above mentioned tutorial uses 3.7.6). Since python 3.8, only "trusted dlls" are loaded. Hence, one has to add the location of the installed mujoco version to the list of allowed DLLs:os.add_dll_directory("....... //.mujoco//mjpro150//bin")
(For others version accordingly.)
Thanks a lot!
Hai ! I suggest you use Ubuntu instead of Windows ,because newest mujoco is not used in Windows while Ubuntu has few issues.
------------------ 原始邮件 ------------------ 发件人: "openai/mujoco-py" @.>; 发送时间: 2023年2月7日(星期二) 晚上8:37 @.>; @.**@.>; 主题: Re: [openai/mujoco-py] ImportError: DLL load failed while importing cymj: The specified module could not be found. (#638)
I'm having the same issue. When I import the environment I get this, CompileError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit status 2 cl : Command line warning D9025 : overriding '/W3' with '/w' cl : Command line warning D9002 : ignoring unknown option '-fopenmp'
The error indicates that the path for compiling mujoco-py is too long. One needs to download the source directly and install it according to this.
The other error ImportError: DLL load failed while importing cymj: The specified module could not be found.. which was the original topic of this discussion is problem of python version since 3.8. (the above mentioned tutorial uses 3.7.6). Since python 3.8, only "trusted dlls" are loaded. Hence, one has to add the location of the installed mujoco version to the list of allowed DLLs: os.add_dll_directory("....... //.mujoco//mjpro150//bin") (For others version accordingly.)
Thanks a lot!
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
I'm having the same issue. When I import the environment I get this,
CompileError: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit status 2 cl : Command line warning D9025 : overriding '/W3' with '/w' cl : Command line warning D9002 : ignoring unknown option '-fopenmp'
The error indicates that the path for compiling mujoco-py is too long. One needs to download the source directly and install it according to this.
The other error
ImportError: DLL load failed while importing cymj: The specified module could not be found..
which was the original topic of this discussion is problem of python version since 3.8. (the above mentioned tutorial uses 3.7.6). Since python 3.8, only "trusted dlls" are loaded. Hence, one has to add the location of the installed mujoco version to the list of allowed DLLs:os.add_dll_directory("....... //.mujoco//mjpro150//bin")
(For others version accordingly.)
os.add_dll_directory("....... //.mujoco//mjpro150//bin"), in which file?
Describe the bug For some reason, while I try to import mujoco-py, it tries to build mujoco-py.cymj extenstion and fails it.
To Reproduce Run one of examples (body_interaction.py in my case).
Expected behavior Runing mujoco's examples and improting mujoco-py correctly.
Error Messages
Desktop (please complete the following information):
Environment
echo $LD_LIBRARY_PATH
: $LD_LIBRARY_PATHecho $HOME
: $HOMEecho $USER
: $USERAdditional context I know that Windows support was deleted in mujoco-py 2.0.2.0, but I was following guide that should've make it work. Also when I try to install mujoco-py 1.50.1.68 I'm getting another error (and it's main reason why I don't just install that version instead of installing 2.0.2.0+):