Closed yuan-fei closed 3 years ago
Hi @yuan-fei , Thanks for your feedback. The atari_py package used to include Atari ROMs, but they're not included anymore since version 0.2.7. So you have two options:
A. You can revert back to an atari_py version before 0.2.7.
If you're using Anaconda:
conda activate tf2 # assuming your conda environment is named tf2
conda install -c conda-forge atari_py==0.2.6
I'll update the notebook to install this version.
B. You can manually download the ROMs and add them to Gym's registry. This is more cumbersome, but it's probably the right way to do things going forward.
In your Jupyter notebook, run the following code from this StackOverflow answer (just once):
import urllib.request
urllib.request.urlretrieve('http://www.atarimania.com/roms/Roms.rar','Roms.rar')
!pip install unrar
!unrar x Roms.rar
!mkdir rars
!mv HC\ ROMS.zip rars
!mv ROMS.zip rars
!python -m atari_py.import_roms rars
Thanks again for bringing this issue to my attention.
I tried option B and it works, thanks @ageron for the quick response!
I have
gym
,gym[atari]
,atari-py
installed already, but I'm still getting the error ' Unable to find game "MsPacman"' when running chapter 16 RL.