-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
[rllib] Upgrade to OpenAI Gym 0.10.3 #1601
Conversation
Test FAILed. |
Hi @butchcom, what version of Gym are you using? It seems that this patch isn't passing our tests. |
I'm using version 0.9.7 (the newest), which was released just recently. In this release, the underscored method names were removed (see Changelog). |
I see - perhaps we should consider updating the Gym version in tests. @ericl? |
Upgrading makes sense. I believe we pinned to a previous version since the release was broken but presumably that's fixed. |
@ericl you may be referring to #1486, but if I understand the testing setup correctly, #1460 already introduced the new Gym version afterwards. Interestingly, the old Gym version is still used in https://github.com/ray-project/ray/blob/master/docker/examples/Dockerfile. Also, https://github.com/ray-project/ray/blob/master/python/ray/rllib/dqn/common/wrappers.py will probably also need to be updated. |
Ah Travis tests don't actually touch the RLlib code, but Jenkins does. So #1460 didn't actually do anything wrt Gym. That being said, if you're up for it, you can remove the pin in the docker file and push again to see if the tests will pass. |
Ok, will try |
Test FAILed. |
Looks like
|
It seems that way... Maybe https://github.com/openai/gym/blob/master/gym/envs/registration.py#L52 is the cause. Will investigate this further tomorrow. |
Test FAILed. |
Test FAILed. |
The basic tests (in https://github.com/ray-project/ray/blob/master/python/ray/rllib/test/test_supported_spaces.py) seem to work now. The examples don't work with the new Gym version, though. I'll update these as well, along with https://github.com/ray-project/ray/blob/master/python/ray/rllib/dqn/common/wrappers.py. |
Test PASSed. |
Great, the upgrade seems to work. Now the only remaining warnings are of the kind: |
hm where is the warning being raised? |
The new Gym version added a The rllib algorithms will work without explicitly defining |
I see - so the fix would be to use uint8 dtypes for the visual wrappers and float32 for others? If so, that seems reasonable. |
That's right. Then I'll implement it prior to the merge |
Test PASSed. |
Test PASSed. |
Tried it out, this is fine. |
works on Linux + Mac py3.6 and tests pass, so I'll merge this. @butchcom, thanks a bunch for contributing this! |
What do these changes do?
Upgrade rllib to to be compatible with OpenAI Gym 0.10.3.