[rllib] upgrade to gymnasium v1.2.2#59530
Conversation
Signed-off-by: Mark Towers <mark@anyscale.com>
Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
There was a problem hiding this comment.
Code Review
This pull request upgrades the gymnasium dependency from version 1.1.1 to 1.2.2. The change is applied consistently across all relevant files, including setup.py, requirements.txt, and numerous dependency lock files. The version bump is in line with the PR's goal to move to a version that no longer supports Python 3.9. The changes appear correct and comprehensive. No issues were found in the provided patches.
|
most rllib tests are not even triggered.. I will just get this merged for now. |
|
actually, let me manually trigger some.. |
|
smoke test here: https://buildkite.com/ray-project/postmerge/builds/15032 |
|
why is gymnasium a requirement for llm and other non-rllib components of ray? |
|
|
Hi @aslonnie — it looks like the Windows build is currently failing due to a dependency resolution issue with gymnasium==1.2.2. I’ve included the relevant logs below for context: [2025-12-18T22:49:58Z] Downloading fastapi-0.121.0-py3-none-any.whl.metadata (28 kB)
--
[2025-12-18T22:49:58Z] ERROR: Cannot install gymnasium==1.2.2 because these package versions have conflicting dependencies.
[2025-12-18T22:49:58Z]
[2025-12-18T22:49:58Z] The conflict is caused by:
[2025-12-18T22:49:58Z] The user requested gymnasium==1.2.2
[2025-12-18T22:49:58Z] The user requested (constraint) gymnasium==1.2.2
[2025-12-18T22:49:58Z]
[2025-12-18T22:49:58Z] Additionally, some packages in these conflicts have no matching distributions available for your environment:
[2025-12-18T22:49:58Z] gymnasium
[2025-12-18T22:49:58Z]
[2025-12-18T22:49:58Z] To fix this you could try to:
[2025-12-18T22:49:58Z] 1. loosen the range of package versions you've specified
[2025-12-18T22:49:58Z] 2. remove package versions to allow pip to attempt to solve the dependency conflict
[2025-12-18T22:49:58Z]
[2025-12-18T22:49:58Z] ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
[2025-12-18T22:50:08Z] The command 'powershell -Command $ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; bash ci/ray_ci/windows/build_base.sh' returned a non-zero code: 1
[2025-12-18T22:50:08Z] 2025/12/18 22:50:08 build docker: exit status 1
[2025-12-18T22:50:08Z] 🚨 Error: The command exited with status 1Would it be possible to temporarily revert the gymnasium version to the previous one, thanks! |
This reverts commit e4758d3.
|
should be fixed on master with #59572 now. |
…"" This reverts commit c604b8f.
as we do not need to support python 3.9 anymore --------- Signed-off-by: Mark Towers <mark@anyscale.com> Signed-off-by: Lonnie Liu <lonnie@anyscale.com> Co-authored-by: Mark Towers <mark@anyscale.com> Co-authored-by: Mark Towers <mark.m.towers@gmail.com>
This reverts commit e4758d3. Signed-off-by: yicheng <yicheng@anyscale.com>
…"" This reverts commit c604b8f. Signed-off-by: yicheng <yicheng@anyscale.com>
## Description bump gymnasium to 1.2.2 in byod-rllib follow up on: * ray-project#59530 related: * ray-project#59572 Signed-off-by: Kamil Kaczmarek <kamil@anyscale.com> Signed-off-by: jasonwrwang <jasonwrwang@tencent.com>
## Description bump gymnasium to 1.2.2 in byod-rllib follow up on: * ray-project#59530 related: * ray-project#59572 Signed-off-by: Kamil Kaczmarek <kamil@anyscale.com>
as we do not need to support python 3.9 anymore --------- Signed-off-by: Mark Towers <mark@anyscale.com> Signed-off-by: Lonnie Liu <lonnie@anyscale.com> Co-authored-by: Mark Towers <mark@anyscale.com> Co-authored-by: Mark Towers <mark.m.towers@gmail.com> Signed-off-by: peterxcli <peterxcli@gmail.com>
## Description bump gymnasium to 1.2.2 in byod-rllib follow up on: * ray-project#59530 related: * ray-project#59572 Signed-off-by: Kamil Kaczmarek <kamil@anyscale.com> Signed-off-by: peterxcli <peterxcli@gmail.com>
as we do not need to support python 3.9 anymore