-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix not-registered env #705
Conversation
Hey. For completeness sake, could you fill in the PR template with link to the said PR? @araffin I am leaving this for you for now as you are more in loop with Gym related updates :) |
The PR description is now updated according to the given template. |
Hello, |
@araffin I asked modanesh to create an updated PR based on mine to take over getting this merged, I closed my PR. @modanesh can you please update all the docs like antonin requested, update the branch to master, make sure tests pass, and cap the version of gym at the currently release one? (we can do more PRs for future versions of Gym as they release) @araffin is there anything else that needs to be done here? |
Hey just a quick note: openai/gym#2531 was an issue with the gym's master and I have not encountered any issues with the Perhaps it's worth merging this PR as is, and putting adopting ALE-v5 environments and docs changes to separate PRs? |
@@ -32,8 +32,9 @@ jobs: | |||
pip install .[extra,tests,docs] | |||
# Use headless version | |||
pip install opencv-python-headless | |||
# Tmp fix: ROM missing in the newest atari-py version | |||
pip install atari-py==0.2.5 | |||
# Add Atari ROMs |
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.
After the changes to the setup.py
as shown below, we should just remove these three lines.
@@ -116,7 +116,7 @@ | |||
# For render | |||
"opencv-python", | |||
# For atari games, | |||
"atari_py~=0.2.0", | |||
"ale-py~=0.7", |
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.
Could we do
"ale-py~=0.7.1",
"autorom[accept-rom-license]~=0.4.2",
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.
I think we should include autorom yes, otherwise it will be confusing.
Closing in favor of #734 |
* fix Atari in CI * fix dtype and atari extra * Update setup.py * remove 3.6 * note about how to install Atari * pendulum-v1 * atari v5 * black * fix pendulum capitalization * add minimum version * moved things in changelog to breaking changes * partial v5 fix * env update to pass tests * mismatch env version fixed * Fix tests after merge * Include autorom in setup.py * Blacken code * Fix dtype issue in more robust way * Fix GitLab CI: switch to Docker container with new black version * Remove workaround from GitLab. (May need to rebuild Docker for this though.) * Revert to v4 * Update setup.py * Apply suggestions from code review * Remove unnecessary autorom * Consistent gym versions Co-authored-by: J K Terry <justinkterry@gmail.com> Co-authored-by: Anssi <kaneran21@hotmail.com> Co-authored-by: Antonin RAFFIN <antonin.raffin@ensta.org> Co-authored-by: modanesh <mohamad4danesh@gmail.com> Co-authored-by: Adam Gleave <adam@gleave.me>
Description
In the
tests/test_run.py
, thePendulum-v0
is changed toPendulum-v1
. Because of the required gym version, there are noPendulum-v0
registered, so it throws an error. That is also the same case fortests/test_utils.py
, where theBreakoutNoFrameskip-v5
is used while the only two valid versions are:BreakoutNoFrameskip-v0
andBreakoutNoFrameskip-v4
.Motivation and Context
Fixing test errors of PR #572
Types of changes
Checklist:
make format
(required)make check-codestyle
andmake lint
(required)make pytest
andmake type
both pass. (required)make doc
(required)Note: You can run most of the checks using
make commit-checks
.Note: we are using a maximum length of 127 characters per line