Skip to content
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

" AttributeError: 'RetroEnv' object has no attribute 'em' " stuck with this error. need some assistance :) #24

Open
harshdeepkukreja opened this issue May 10, 2022 · 1 comment

Comments

@harshdeepkukreja
Copy link

No description provided.

@rambo1111
Copy link

I'm getting the same error on this code

# Reset game to starting state
obs = env.reset()
# Set flag to flase
done = False
for game in range(1): 
    while not done: 
        if done: 
            obs = env.reset()
        env.render()
        obs, reward, done, info = env.step(env.action_space.sample())
        time.sleep(0.01)
        print(reward)

env.close()
print(info)

you just have to start the env before with this code

# Starts up the game environment
env = retro.make(game='StreetFighterIISpecialChampionEdition-Genesis')

and remember that in retro we can only run one at a time
for running multiple env check this out --> https://github.com/MaxStrange/retrowrapper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants