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

AssertionError: The environment must specify an action space. https://www.gymlibrary.dev/content/environment_creation/ #20

Open
grlinnn opened this issue Nov 20, 2022 · 1 comment

Comments

@grlinnn
Copy link

grlinnn commented Nov 20, 2022

Hello!

Recently, I faced a problem while executing the train.py

It says :
assert hasattr(
AssertionError: The environment must specify an action space. https://www.gymlibrary.dev/content/environment_creation/

When I look through the train.py, I didn't find something like " self.action_space = spaces.Discrete(4)" or so.

Is there any way to fix this issue?

Thank you very much! Sorry to bother you.

@ChanganVR
Copy link
Owner

You probably just need to downgrade the version of the gym package, although I don't remember which version I was using exactly.

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