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

Transition from gym to gymnasium #9

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

hunoutl
Copy link
Contributor

@hunoutl hunoutl commented Nov 23, 2022

There is no longer a team working on gym maintenance (previously openai).

The team that has been maintaining Gym since 2021 has moved all future development to Gymnasium, a drop in replacement for Gym (import gymnasium as gym), and this repo isn't planned to receive any future updates. Please consider switching over to Gymnasium as you're able to do so.

A transition to gymnasium will eventually be mandatory. So it's a good idea to start doing it.
At first glance, switching from one library to another should be done without problems.

I make a try on GripperEnv and it worked. Some change where made in AbstractEnv.py (sofagym) to match the new gymnasium API.
There are some warnings to warn about future changes to the API for the next gymnasium releases.
I begun. Overall, the first changes (binding) bring new concept that I find rather practical.
I continued with another environment and I was able to observe a side effect. I will continue to investigate and will gradually add the new environments under gymnasium.

Copy link
Collaborator

@EtienneMenager EtienneMenager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utilité du basetemplate dans la PR?

@hunoutl
Copy link
Contributor Author

hunoutl commented Jan 10, 2023

Bonne remarque, aucune (en plus l'env n'est pas fonctionnel encore...)
Je vais corriger et proposer l'ajout dans une autre PR

@hunoutl
Copy link
Contributor Author

hunoutl commented Jan 16, 2023

Stable Baseline3 can't be use with gymnasium (aka gym v0.26 or v0.27) for now. It's a big problem for RL community.
Hopefully, there are working on it with this Pull Request.
They put it forward on their documentation so I imagine that the merge will be for soon.
The state of the PR seems to be able to run the basic gym envs, I will do tests for sofagym.
If it doesn't work, I will do a PR only for gym v0.24 with sofa scenes corrected for sofa v22.12.

@hugtalbot
Copy link

hugtalbot commented Jan 16, 2023

Stable Baseline3 can't be use with gymnasium (aka gym v0.26 or v0.27) for now. It's a big problem for RL community. Hopefully, there are working on it with this Pull Request. They put it forward on their documentation so I imagine that the merge will be for soon. The state of the PR seems to be able to run the basic gym envs, I will do tests for sofagym. If it doesn't work, I will do a PR only for gym v0.24 with sofa scenes corrected for sofa v22.12.

Poke @scarponiv

@hunoutl hunoutl mentioned this pull request Jan 18, 2023
@hunoutl
Copy link
Contributor Author

hunoutl commented Apr 6, 2023

News :
PR : #1327
DOC : feat-gymnasium-support

@alxbilger
Copy link
Member

News : PR : #1327 DOC : feat-gymnasium-support

Thanks @hunoutl. I got the news this week

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.

4 participants