Farama-Foundation / D4RL

A collection of reference environments for offline reinforcement learning
Apache License 2.0
1.32k stars 282 forks source link

I can't use maze environments #140

Open joseluperez1999 opened 2 years ago

joseluperez1999 commented 2 years ago

Hi i'm trying to use maze2d-umaze-v1 dataset but i have the following error:

Traceback (most recent call last): File "test.py", line 20, in env = gym.make('maze2d-umaze-v1') File "C:\Users\user\miniconda3\envs\d3rlpyEnv2\lib\site-packages\gym\envs\registration.py", line 184, in make return registry.make(id, kwargs) File "C:\Users\user\miniconda3\envs\d3rlpyEnv2\lib\site-packages\gym\envs\registration.py", line 106, in make env = spec.make(kwargs) File "C:\Users\user\miniconda3\envs\d3rlpyEnv2\lib\site-packages\gym\envs\registration.py", line 76, in make env = cls(**_kwargs) File "C:\Users\user\miniconda3\envs\d3rlpyEnv2\lib\site-packages\d4rl\pointmaze\maze_model.py", line 175, in init mujoco_env.MujocoEnv.init(self, model_path=f.name, frame_skip=1) File "C:\Users\user\miniconda3\envs\d3rlpyEnv2\lib\site-packages\gym\envs\mujoco\mujoco_env.py", line 54, in init self.model = mujoco_py.load_model_from_path(fullpath) File "cymj.pyx", line 175, in mujoco_py.cymj.load_model_from_path Exception: Failed to load XML file: C:\Users\user\AppData\Local\Temp\tmp6wt_ahnc.xml. mj_loadXML error: b'XML parse error at line 0, column 0:\nFailed to open file\n'

Solutions?

Super1ce commented 2 years ago

Same problem and i can't use antmaze too.Have any solve now?

bear-power commented 10 months ago

I have same problem too.Is there any solution?