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

Add check when registering gym compatibility envs to avoid gymnasium warning #29

Conversation

pseudo-rnd-thoughts
Copy link
Member

@pseudo-rnd-thoughts pseudo-rnd-thoughts commented Jan 19, 2023

Currently, gymnasium requires shimmy as a core dependency of the project.
However, this has been noted as an issue for some projects - #23

Therefore, to fix this issue and for backward compatibility, gymnasium will register the compatibility environments which will request that users install shimmy[gym].
However, gymnasium.register will raise a warning if overwriting environments already registered with the same name.
To avoid this issue, we pop the registered environment before registering the environments in shimmy

@pseudo-rnd-thoughts pseudo-rnd-thoughts changed the title Remove gym compatibility to avoid gymnasium warning Add check when registering gym compatibility envs to avoid gymnasium warning Jan 19, 2023
@vercel
Copy link

vercel bot commented Feb 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
shimmy ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 16, 2023 at 2:35PM (UTC)

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

Successfully merging this pull request may close these issues.

None yet

1 participant