报错
报错提示如下:
Exception: ROM is missing for pong, see https://github.com/openai/atari-py#roms for instructions • 1
解决
依据提示去https://github.com/openai/atari-py#roms这个链接下面找解决办法。下载Roms.rar,然后解压执行:
python -m atari_py.import_roms <path to folder> • 1
我这里一开始运行的命令是:
python -m atari_py.import_roms /Users/hezhiqiang01/Downloads/Roms • 1
报错了:
Traceback (most recent call last): File "/Users/hezhiqiang01/Desktop/anaconda/anaconda3/envs/ACG/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/Users/hezhiqiang01/Desktop/anaconda/anaconda3/envs/ACG/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Users/hezhiqiang01/Desktop/anaconda/anaconda3/envs/ACG/lib/python3.6/site-packages/atari_py/import_roms.py", line 93, in <module> main() File "/Users/hezhiqiang01/Desktop/anaconda/anaconda3/envs/ACG/lib/python3.6/site-packages/atari_py/import_roms.py", line 89, in main import_roms(args.dirpath) File "/Users/hezhiqiang01/Desktop/anaconda/anaconda3/envs/ACG/lib/python3.6/site-packages/atari_py/import_roms.py", line 78, in import_roms _check_zipfile(f, save_if_matches) File "/Users/hezhiqiang01/Desktop/anaconda/anaconda3/envs/ACG/lib/python3.6/site-packages/atari_py/import_roms.py", line 23, in _check_zipfile process_f(innerf) File "/Users/hezhiqiang01/Desktop/anaconda/anaconda3/envs/ACG/lib/python3.6/site-packages/atari_py/import_roms.py", line 67, in save_if_matches f.seek(0) io.UnsupportedOperation: seek
改为切换到Rom所在的目录下面,运行:
python -m atari_py.import_roms /Roms • 1
还是报错,最后debug源码,感觉是需要将里面的两个文件继续解压之后然后再运行:
python -m atari_py.import_roms /Users/hezhiqiang01/Downloads/Roms/ROMS • 1
就可以了,输入如下: