OSError: [WinError 193] %1 不是有效的 Win32 应用程序。
Opened this issue · 10 comments
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "C:\Users\LXV\Desktop\RLCode\IDAQ_Public-main\IDAQ_Public-main\rlkit\envs\__init__.py", line 54, in <module>
importlib.import_module('rlkit.envs.' + module)
File "C:\Users\LXV\anaconda3\envs\focal_reproduction2\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\LXV\Desktop\RLCode\IDAQ_Public-main\IDAQ_Public-main\rlkit\envs\ant.py", line 3, in <module>
from rlkit.envs.mujoco_env import MujocoEnv
File "C:\Users\LXV\Desktop\RLCode\IDAQ_Public-main\IDAQ_Public-main\rlkit\envs\mujoco_env.py", line 4, in <module>
import mujoco_py
File "C:\Users\LXV\Desktop\RLCode\IDAQ_Public-main\IDAQ_Public-main\rand_param_envs\mujoco_py\__init__.py", line 4, in <module>
from .mjviewer import MjViewer
File "C:\Users\LXV\Desktop\RLCode\IDAQ_Public-main\IDAQ_Public-main\rand_param_envs\mujoco_py\mjviewer.py", line 7, in <module>
from . import mjcore, mjconstants, glfw
File "C:\Users\LXV\Desktop\RLCode\IDAQ_Public-main\IDAQ_Public-main\rand_param_envs\mujoco_py\mjcore.py", line 6, in <module>
from .mjlib import mjlib
File "C:\Users\LXV\Desktop\RLCode\IDAQ_Public-main\IDAQ_Public-main\rand_param_envs\mujoco_py\mjlib.py", line 6, in <module>
from rand_param_envs.mujoco_py import config
File "C:\Users\LXV\Desktop\RLCode\IDAQ_Public-main\IDAQ_Public-main\rand_param_envs\__init__.py", line 1, in <module>
from rand_param_envs.base import MetaEnv
File "C:\Users\LXV\Desktop\RLCode\IDAQ_Public-main\IDAQ_Public-main\rand_param_envs\base.py", line 2, in <module>
from rand_param_envs.gym.envs.mujoco import MujocoEnv
File "C:\Users\LXV\Desktop\RLCode\IDAQ_Public-main\IDAQ_Public-main\rand_param_envs\gym\envs\mujoco\__init__.py", line 1, in <module>
from rand_param_envs.gym.envs.mujoco.mujoco_env import MujocoEnv
File "C:\Users\LXV\Desktop\RLCode\IDAQ_Public-main\IDAQ_Public-main\rand_param_envs\gym\envs\mujoco\mujoco_env.py", line 11, in <module>
from rand_param_envs import mujoco_py
File "C:\Users\LXV\Desktop\RLCode\IDAQ_Public-main\IDAQ_Public-main\rand_param_envs\mujoco_py\__init__.py", line 4, in <module>
from .mjviewer import MjViewer
File "C:\Users\LXV\Desktop\RLCode\IDAQ_Public-main\IDAQ_Public-main\rand_param_envs\mujoco_py\mjviewer.py", line 7, in <module>
from . import mjcore, mjconstants, glfw
File "C:\Users\LXV\Desktop\RLCode\IDAQ_Public-main\IDAQ_Public-main\rand_param_envs\mujoco_py\mjcore.py", line 6, in <module>
from .mjlib import mjlib
File "C:\Users\LXV\Desktop\RLCode\IDAQ_Public-main\IDAQ_Public-main\rand_param_envs\mujoco_py\mjlib.py", line 21, in <module>
mjlib = cdll.LoadLibrary(os.path.abspath(libfile))
File "C:\Users\LXV\anaconda3\envs\focal_reproduction2\lib\ctypes\__init__.py", line 442, in LoadLibrary
return self._dlltype(name)
File "C:\Users\LXV\anaconda3\envs\focal_reproduction2\lib\ctypes\__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 不是有效的 Win32 应用程序。
Process finished with exit code 1
It seems like a problem with mujoco-py. Can you try different versions of mujoco-py, like 2.0.2.9, 2.0.2.5, or 2.0.2.13? You can also try opening a new .py file which only imports mujoco_py to track if the problem is indeed with mujoco-py.
I may not chech Github very frequently. You can email jin-zhan20@mails.tsinghua.edu.cn for faster responses.
It seems like a problem with mujoco-py. Can you try different versions of mujoco-py, like 2.0.2.9, 2.0.2.5, or 2.0.2.13? You can also try opening a new .py file which only imports mujoco_py to track if the problem is indeed with mujoco-py.
I do not think this is a problem about mujoco-py.Because it seems that mujoco_py is imported form rand_param_envs which is in your own code.And I do not see anything about mujoco in the enviroment.yaml.
It seems like a problem with mujoco-py. Can you try different versions of mujoco-py, like 2.0.2.9, 2.0.2.5, or 2.0.2.13? You can also try opening a new .py file which only imports mujoco_py to track if the problem is indeed with mujoco-py.
I do not think this is a problem about mujoco-py.Because it seems that mujoco_py is imported form rand_param_envs which is in your own code.And I do not see anything about mujoco in the enviroment.yaml.
Both I and other researchers have successfully run IDAQ on Linux, but we have not tested it on Windows, so currently I have no clear idea on how to debug this. Maybe you can try replacing the rand_param_envs folder with the version in https://github.com/LanqingLi1993/FOCAL-ICLR/tree/master/rand_param_envs. If the problem still exists, please check your mujoco installation on Windows, perhaps this page can provide some help: https://zhuanlan.zhihu.com/p/104178775.
Hello. I hope this message finds you well. I am very interested in your paper and have been attempting to reproduce the code from the [IDAQ_Public repository] on both Windows and Linux systems. However, I have encountered a recurring issue that I have not been able to resolve.
The specific error message I receive is:
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for mujoco-py
Failed to build mujoco-py
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (mujoco-py)
Following your advice, I tried using different versions of mujoco-py such as 2.0.2.9, 2.0.2.5, and 2.0.2.13, but I continue to encounter the same error.
I would greatly appreciate any guidance or suggestions you might have to help resolve this issue. Your assistance would be invaluable in helping me move forward with my research.
Hello. I hope this message finds you well. I am very interested in your paper and have been attempting to reproduce the code from the [IDAQ_Public repository] on both Windows and Linux systems. However, I have encountered a recurring issue that I have not been able to resolve.
The specific error message I receive is: note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for mujoco-py Failed to build mujoco-py ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (mujoco-py) Following your advice, I tried using different versions of mujoco-py such as 2.0.2.9, 2.0.2.5, and 2.0.2.13, but I continue to encounter the same error.
I would greatly appreciate any guidance or suggestions you might have to help resolve this issue. Your assistance would be invaluable in helping me move forward with my research.
Hi, it seems like an issue with mujoco-py installation. From the current error report, I cannot find out what is wrong. Is there any other error reports following it? Also, you can try to follow https://github.com/openai/mujoco-py to setup it.
It seems to be a problem with Cython. Please try Cython==0.29.36, as discussed in openai/mujoco-py#773.
No more idea for this. Maybe trying different versions of mujoco_py can help.