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

Rendering Problem for gym>=0.25.0 #9

Open
zjowowen opened this issue Aug 4, 2022 · 2 comments
Open

Rendering Problem for gym>=0.25.0 #9

zjowowen opened this issue Aug 4, 2022 · 2 comments
Assignees

Comments

@zjowowen
Copy link

zjowowen commented Aug 4, 2022

Hi!

OpenAi gym remove the rendering.py for supporting pygame.
"from gym.envs.classic_control import rendering" would fail in environment.py.

openai/gym#2599

@thomashirtz
Copy link
Owner

Oh, that is not good ...
I saw the conversation on gym, it doesn't seem to exist any fix, is there ?
e.g. openai/gym#2806 (comment)

@zjowowen
Copy link
Author

No, there seems to have no available rendering API in the latest gym==0.25.1.
They decided to remove it to support and suggest using pygame.
However, there certainly would be learning and transfer time costs for recoding the rendering method.

By the way, it's really amazing that gym, of such great popularity, has not upgraded to 1.0.0 yet, which means that they still hold the right to change their API as they want.
Anyway, such changes would certainly cause troubles to rl environment depending on it.

I am currently a mantainer of RL library opendilab DI-engine. My recent work is to upgrade the denpendency of gym for DI-engine from 0.20.0 to 0.25.0.
https://github.com/opendilab/DI-engine/pull/434
Some other interesting rl environments meet the same rendering trouble as your gym-hybird does, such as slimevolleyball.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants