Closed Open-AGI closed 2 years ago
python examples/body_interaction.py
I tested the py files in the examples/ of mujoco-py and they all worked normally.
but,I try run (env1) root@agi:/home/agi/Downloads/multi-agent-emergence-environments# bin/examine.py examples/hide_and_seek_quadrant.jsonnet examples/hide_and_seek_quadrant.npz
i get some err:
(env1) root@agi:/home/agi/Downloads/multi-agent-emergence-environments# bin/examine.py examples/hide_and_seek_quadrant.jsonnet examples/hide_and_seek_quadrant.npz
Inferred:
names: examples/hide_and_seek_quadrant.jsonnet examples/hide_and_seek_quadrant.npz
arguments: {}
Traceback (most recent call last):
File "/home/agi/Downloads/multi-agent-emergence-environments/bin/examine.py", line 91, in <module>
main()
File "/root/anaconda3/envs/env1/lib/python3.9/site-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/root/anaconda3/envs/env1/lib/python3.9/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/root/anaconda3/envs/env1/lib/python3.9/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/root/anaconda3/envs/env1/lib/python3.9/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/agi/Downloads/multi-agent-emergence-environments/bin/examine.py", line 56, in main
env, args_remaining_env = load_env(env_name, core_dir=core_dir,
File "/home/agi/Downloads/mujoco-worldgen/mujoco_worldgen/util/envs/flexible_load.py", line 84, in load_env
env = make_env(**args_to_pass)
File "/home/agi/Downloads/mujoco-worldgen/mujoco_worldgen/util/envs/flexible_load.py", line 27, in result_wrapper
return result(*args, **actual_kwargs)
File "/home/agi/Downloads/multi-agent-emergence-environments/mae_envs/envs/hide_and_seek.py", line 390, in make_env
env = AgentGeomObsMask2D(env, pos_obs_key='ramp_pos', mask_obs_key='mask_ar_obs',
File "/home/agi/Downloads/multi-agent-emergence-environments/mae_envs/wrappers/line_of_sight.py", line 75, in __init__
super().__init__(env)
File "/root/anaconda3/envs/env1/lib/python3.9/site-packages/gym/core.py", line 247, in __init__
self._warn_double_wrap()
File "/root/anaconda3/envs/env1/lib/python3.9/site-packages/gym/core.py", line 258, in _warn_double_wrap
raise error.DoubleWrapperError("Attempted to double wrap with Wrapper: {}".format(self.__class__.__name__))
gym.error.DoubleWrapperError: Attempted to double wrap with Wrapper: AgentGeomObsMask2D
Not sure about the tf implementation, but one of my gym packages somehow updated and got a different error (and then I reverted to gym==0.10.5 which gave me your error and that's the gym version you're using) which I then solved by reverting to gym==0.10.8.
I want it to support tf2, but I ran into some problems:
gym.error.DoubleWrapperError: Attempted to double wrap with Wrapper: AgentGeomObsMask2D
### Environment:
(env1) root@agi:/home/agi/Downloads/multi-agent-emergence-environments# uname -a