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

gym.error.NameNotFound: Environment Pong doesn't exist in namespace ALE. #15

Open
wenzhangliu opened this issue Dec 14, 2023 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@wenzhangliu
Copy link
Collaborator

When I run a demo of Atari after correctly installing xuance, it raises an error:

raise error.NameNotFound( gym.error.NameNotFound: Environment Pong doesn't exist in namespace ALE.

@wenzhangliu
Copy link
Collaborator Author

This issue can be solved by running

pip install gym[accept-rom-license]

@wenzhangliu wenzhangliu added the help wanted Extra attention is needed label Dec 14, 2023
@ToiLaKiet
Copy link

ToiLaKiet commented Dec 2, 2024

i'm trying to implement the Pong-v0 environment, i have already done your method but nothing happens can you show me what i should do next?
raise error.NameNotFound( f"Environment {name} doesn't exist{namespace_msg}. {suggestion_msg}"
This is the bug i have encountered.

@wenzhangliu
Copy link
Collaborator Author

You can try to use "ALE/Pong-v5" as the env_id.

@ToiLaKiet
Copy link

ToiLaKiet commented Dec 2, 2024

Can you elaborate on ALE namespace? What is the module so that I can import it. I'm sorry for asking such questions because I am quite new to this. In addition, I would rather use Pong-v0 as my code works within its structure. Thank you a lot.

@wenzhangliu
Copy link
Collaborator Author

I mean, you can use "ALE/Pong-v5" instead of "Pong-v0". For example:

env = gym.make("ALE/Pong-v5")  

However, this depends on the version of Gym you're using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants