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

[Feature Request] check_env does not work with gymnasium environments #1476

Closed
1 task done
haydenstites opened this issue Apr 29, 2023 · 1 comment
Closed
1 task done
Labels
more information needed Please fill the issue template completely

Comments

@haydenstites
Copy link

haydenstites commented Apr 29, 2023

🚀 Feature

The check_env environment checker should work natively with gymnasium environments in addition to gym environments. I'm not sure if this could be considered a bug or not now that SB3 supports gymnasium.

User receives the error:
AssertionError: The observation space must inherit from gym.spaces cf https://github.com/openai/gym/blob/master/gym/spaces/
when checking a gymnasium environment.

Motivation

Since full gymnasium support was added a few weeks back, I've been using SB3 for my workflow. I would be nice to be able to use the environment checker with gymnasium environments to sidestep problems before they occur.

Pitch

No response

Alternatives

No response

Additional context

Pull

Checklist

  • I have checked that there is no similar issue in the repo
@haydenstites haydenstites added the enhancement New feature or request label Apr 29, 2023
@araffin araffin added the more information needed Please fill the issue template completely label Apr 29, 2023
@araffin
Copy link
Member

araffin commented Apr 29, 2023

Hello,
please fill the issue template completely.
You must have sb3 v2.0+ for gymnasium support.

@araffin araffin removed the enhancement New feature or request label Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more information needed Please fill the issue template completely
Projects
None yet
Development

No branches or pull requests

2 participants