openai / gym

A toolkit for developing and comparing reinforcement learning algorithms.
https://www.gymlibrary.dev
Other
34.82k stars 8.61k forks source link

Environment Pong doesn't exist. #3131

Closed IshitaB28 closed 2 years ago

IshitaB28 commented 2 years ago

I have been trying to make the Pong environment. Neither Pong nor PongNoFrameskip works. I also could not find any Pong environment on the github repo.

pseudo-rnd-thoughts commented 2 years ago

Have you installed atari? pip install "gym[atari, accept-rom-license]". Atari is part of a separate repo

IshitaB28 commented 2 years ago

I had installed gym[atari]. That did not work! Could you share the repo link please!

pseudo-rnd-thoughts commented 2 years ago

You also need to run gym[accept-rom-license] as the atari install does not automatically install the roms https://github.com/mgbellemare/Arcade-Learning-Environment

IshitaB28 commented 2 years ago

Hi, thanks a lot! This worked!

ParisaO commented 1 year ago

You also need to run gym[accept-rom-license] as the atari install does not automatically install the roms https://github.com/mgbellemare/Arcade-Learning-Environment

Hi, I am trying to run a code and I am getting this error:

File "/usr/local/lib/python3.10/dist-packages/gymnasium/envs/registration.py", line 380, in _check_name_exists
    raise error.NameNotFound(
gymnasium.error.NameNotFound: Environment `PongNoFrameskip` doesn't exist.

So I guess that I need to install the ROM file for the pong game, but I can't find the steps. I am confused how to install it. Could you help me?

edit: Solved by this command !pip install "gymnasium[atari, accept-rom-license]"

deep1305 commented 7 months ago

You also need to run gym[accept-rom-license] as the atari install does not automatically install the roms https://github.com/mgbellemare/Arcade-Learning-Environment

Hi, I am trying to run a code and I am getting this error:

File "/usr/local/lib/python3.10/dist-packages/gymnasium/envs/registration.py", line 380, in _check_name_exists
    raise error.NameNotFound(
gymnasium.error.NameNotFound: Environment `PongNoFrameskip` doesn't exist.

So I guess that I need to install the ROM file for the pong game, but I can't find the steps. I am confused how to install it. Could you help me?

edit: Solved by this command !pip install "gymnasium[atari, accept-rom-license]"

Thanks a lot.