Open AndreaFinazzi opened 2 years ago
I solved same problem by downgrading gym to 0.21.0
pip uninstall gym
pip install gym==0.21.0
Garage setup.py
specifies gym version 0.17.2. I wouldn't be surprised if some other versions work, but they've been changing the API a lot recently and I unfortunately don't have time to keep the wrapper up to date. Thanks for the the info @causeim
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. https://github.com/rlworkgroup/garage/blob/c56513f42be9cba2ef5426425a8ad36097e679c2/src/garage/envs/gym_env.py#L147This 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!