-
Notifications
You must be signed in to change notification settings - Fork 412
[Feature] Gymnasium 1.1 compatibility #2898
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/rl/2898
Note: Links to docs will display an error until the docs builds have been completed. ❌ 11 New Failures, 3 Pending, 3 Unrelated FailuresAs of commit 66a7806 with merge base 8ce11a8 ( NEW FAILURES - The following jobs have failed:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
pip3 install ale-py | ||
pip3 install sympy | ||
pip3 install "gymnasium[accept-rom-license,mujoco]<1.0" mo-gymnasium[mujoco] | ||
pip3 install "gymnasium[accept-rom-license,mujoco]>=1.1" mo-gymnasium[mujoco] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, gymnasium[accept-rom-license]
shouldn't exist for >=1.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks I edited that!
Hey @vmoens thanks for getting this out. After a lot of struggle, I was finally able to test this out on yesterday's nightly build using a reference from the sota/decision_transformer example and I'm running into an error that has me stuck thinking it's part of this transition to gymnasium 1.1. I'm largely just adapting this: rl/sota-implementations/decision_transformer/utils.py Lines 64 to 81 in c3310b8
Docs are sparse on custom environments but I was able to piece together through other examples that I needed to set the backed to gymnasium then register the env with EnvBase like so:
where MyCustomEnv is
I get the error:
|
Stack from ghstack (oldest at bottom):