Closed edzhuang closed 2 years ago
I downgraded to 0.7.4 of ale-py and it worked.
Hmm, I can't think of any particular reason downgrading would have solved this issue. Sometimes if you have a non-standard installation things can break, e.g., installing packages in editable mode. It seems that reinstalling / downgrading solved the issue so I'm going to go ahead and close this.
Steps to recreate issue:
%pip install gym
%pip install gym[atari]
import gym
env = gym.make("ALE/Breakout-v5")
KeyError: 'ALE/Breakout-v5'
During handling of the above exception, another exception occurred:
DeprecatedEnv Traceback (most recent call last) 3 frames /usr/local/lib/python3.7/dist-packages/gym/envs/registration.py in spec(self, path) 127 if env_name == valid_env_spec._env_name] 128 if matching_envs: --> 129 raise error.DeprecatedEnv('Env {} not found (valid versions include {})'.format(id, matching_envs)) 130 else: 131 raise error.UnregisteredEnv('No registered env with id: {}'.format(id))
DeprecatedEnv: Env ALE/Breakout-v5 not found (valid versions include ['Breakout-v0', 'Breakout-v4'])