Skip to content

Conversation

@luator
Copy link
Member

@luator luator commented Jul 16, 2025

Description

Since gym is not working anymore with recent Python versions, finally migrate the package to gymnasium.

Since migrating the environments contained in this package would be quite some work, simply remove them instead.
They were anyway mostly meant as examples and not really used anywhere as far as I now.
If someone actually still needs them, I would suggest to rather move them to a separate repo and maintain them there.

Resolves #115.

How I Tested

Unit tests.

@luator luator self-assigned this Jul 16, 2025
@luator luator added the enhancement New feature or request label Jul 16, 2025
luator added 2 commits July 16, 2025 17:41
Properly migrating them to Gymnasium would be quite some work.  They
were anyway mostly meant as examples and not really used anywhere as far
as I now.  So I think it's better to just remove them from this package.

If someone actually still needs them, I would suggest to rather move
them to a separate repo and maintain them there.
- Change all imports of gym to use gymnasium instead.
- `env.reset()` now returns a tuple of observation and info.
- Instead of `done`, `step()` now returns `terminated, truncated`.
- Update dependencies.
@luator luator merged commit 2effef1 into master Jul 21, 2025
8 of 9 checks passed
@luator luator deleted the fkloss/gym branch July 21, 2025 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port to gymnasium

2 participants