Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A question about environment configuration #3

Open
WangQHui opened this issue Dec 1, 2022 · 1 comment
Open

A question about environment configuration #3

WangQHui opened this issue Dec 1, 2022 · 1 comment

Comments

@WangQHui
Copy link

WangQHui commented Dec 1, 2022

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
Copy link
Owner

cathyhxh commented Dec 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants