Skip to content

Upgrade from Gym to Gymnasium #91

@anuk909

Description

@anuk909

Is your feature request related to a problem? Please describe.
Yes. The project currently uses the gym library, which is no longer actively maintained (since 2021 https://github.com/openai/gym). This creates compatibility and long-term support issues. Many tools and environments are shifting to gymnasium, which is a drop-in replacement maintained by the Farama Foundation. I'm concerned that continuing to use gym may lead to future breakages or prevent integration with newer tools.

Describe the solution you'd like
I would like to upgrade the project from gym to gymnasium. This change should be mostly straightforward, as gymnasium is designed to be a backward-compatible replacement. This upgrade will ensure ongoing compatibility and access to future updates and features.

Describe alternatives you've considered

  • Staying with gym: This option leaves us vulnerable to future issues as the library becomes increasingly outdated.

  • Switching to another RL library entirely: This would involve significantly more work and is unnecessary given that gymnasium is an actively maintained continuation of gym.

Additional context
I’ve already created a proof of concept that performs this upgrade, including migrating from Poetry to UV for faster dependency management. I’d be happy to submit a PR if the maintainers are open to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions