Search code examples
openai-gym

some problems about open ai gym retro


I have installed clang in windows system and Gym Retro by

pip3 install gym-retro

When I try to run

env = retro.make(game='SonicTheHedgehog-Genesis', state='GreenHillZone.Act1', record='.')

I got an error:

FileNotFoundError: Game not found: SonicTheHedgehog-Genesis. Did you make sure to import the ROM?

Any help will be deeply appreciated.


Solution

  • For openai-retro version '0.7.0' you have to access the functions using .data field.

    import gym
    import retro
    
    for game in retro.data.list_games():
       print(game, retro.data.list_states(game))