-
Notifications
You must be signed in to change notification settings - Fork 308
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
KeyError: 'render.modes' in GymEnv wrapping "CartPole-vX" #2321
Comments
I solved same problem by downgrading gym to 0.21.0
|
Garage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apparently, classic control environments in Gym have a different key for render modes in
env.metadata
.In fact:
While in the garage wrapper it expects to find
env.metadata['render.modes']
, as it is for other environments.garage/src/garage/envs/gym_env.py
Line 147 in c56513f
This results in a
KeyError
, unsurprisingly:Is it a problem of my version mix? I run with:
garage==2021.3.0
gym==0.23.1
Thank you all for the great work!
The text was updated successfully, but these errors were encountered: