Open octopusinvitro opened 2 years ago
Thanks for the nice summary of the situation and the info about autorom
. Indeed this looks like a very straightforward fix provided there are no issues with the rom licenses. I haven't had a change to look at that yet, but I agree that needs to be reviewed before we can add it here.
Linking #87 for visibility
No worries, and thanks for taking a look!
The Pong tutorial works with the currently pinned versions of
gym
andatari-py
in therequirements.txt
file. However,atari-py
(which was the Open AI fork of the ALE), was deprecated in September 2021: https://github.com/openai/atari-pyThe replacement is the original ALE, through the
ale-py
module: https://github.com/mgbellemare/Arcade-Learning-EnvironmentIn September 2021,
atari-py
was finally replaced withale-py
in thegym
official repository: https://github.com/openai/gym/pull/2348In the gym release notes of October 2021, it specifies the correct way to install the ROMs from now on:
this will update these libraries while still making the tutorial work with no further changes.
Alternatively, this can be done instead:
this will install AutoROM independently and then in the docs the user has to be informed to run:
This will also make the tutorial run with no further changes.
Regarding
cmake
, there is no need to install it anymore, as it was needed foratari-py
. However,ffmpeg
is still needed by gym'sMonitor
wrapper, as it produces videos of the agent’s learning.I am happy to raise a PR for whichever of the two options if you want to go ahead with the update. I didn't want to do the PR directly because I don't know if it will be a problem for the numpy tutorials to accept this license. The commit in the numpy tutorials repo where the versions of
gym
andatari-py
where pinned references a PR in theatari-py
repository, which as mentioned before, has been deprecated.Cheers!
P.S. Regarding this issue, it is now indeed trivial to update the library as all that needs to be done is install
gym
with theaccept-rom-license
extra, and everything will work, provided there is no issue for this tutorials to accept the license.