安装atari游戏包时,使用 ale-import-roms ROMS\ 时,报错如下:
File "D:\Anaconda3\install\envs\tensorflow\lib\site-packages\ale_py\scripts\import_roms.py", line 25, in import_roms
rom = ale_py.ALEInterface.isSupportedROM(path)
RuntimeError
解决方法:
打开文件:D:\Anaconda3\install\envs\tensorflow\lib\site-packages\ale_py\scripts\import_roms.py,找到25行位置,修改如下:
for path in romdir.glob("**/*.bin"):
try:
rom = ale_py.ALEInterface.isSupportedROM(path)
except:
rom = None
if rom is not None:
supported[rom] = path
else:
unsupported.append(path)
保存再次运行上述命令即可。