cathyhxh / CTDS

Apache License 2.0
8 stars 4 forks source link

A question about environment configuration #3

Open WangQHui opened 1 year ago

WangQHui commented 1 year ago

Hello, when i test the magym environment there has a question: [ERROR 10:24:10] pymarl Failed after 0:00:00! Traceback (most recent calls WITHOUT Sacred internals): File "E:/WQH/CTDS-main/pymarl/src/main.py", line 36, in my_main run(_run, config, _log) File "E:\WQH\CTDS-main\pymarl\src\run.py", line 51, in run run_sequential_teach(args=args, logger=logger) File "E:\WQH\CTDS-main\pymarl\src\run.py", line 229, in run_sequential_teach env_info = runner.get_env_info() File "E:\WQH\CTDS-main\pymarl\src\runners\episode_runner_teach.py", line 37, in get_env_info return self.env.get_env_info() File "E:\WQH\CTDS-main\pymarl\src\envs__init.py", line 192, in get_env_info "obs_perfect_shape": self.get_obs_perfect_size(), File "E:\WQH\CTDS-main\pymarl\src\envs__init__.py", line 131, in get_obs_perfect_size return self._env.get_obs_perfect_size() File "D:\Anaconda3\envs\magym\lib\site-packages\gym\core.py", line 237, in getattr return getattr(self.env, name) File "D:\Anaconda3\envs\magym\lib\site-packages\gym\core.py", line 237, in getattr__ return getattr(self.env, name) AttributeError: 'Checkers' object has no attribute 'get_obs_perfect_size' How can i fix it?

cathyhxh commented 1 year ago

Thank you for your comments. I have updated the code version and you can try it again.