Farama-Foundation / Arcade-Learning-Environment

The Arcade Learning Environment (ALE) -- a platform for AI research.
GNU General Public License v2.0
2.12k stars 420 forks source link

Env ALE/Breakout-v5 not found #459

Closed edzhuang closed 2 years ago

edzhuang commented 2 years ago

Steps to recreate issue:

  1. Open a new Google Colab notebook
  2. %pip install gym
  3. %pip install gym[atari]
  4. import gym
  5. env = gym.make("ALE/Breakout-v5")
  6. The following output:
    
    ---------------------------------------------------------------------------
    KeyError                                  Traceback (most recent call last)
    [/usr/local/lib/python3.7/dist-packages/gym/envs/registration.py](https://localhost:8080/#) in spec(self, path)
    120         try:
    --> 121             return self.env_specs[id]
    122         except KeyError:

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'])

edzhuang commented 2 years ago

I downgraded to 0.7.4 of ale-py and it worked.

JesseFarebro commented 2 years ago

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.