安装atari游戏包时,使用 ale-import-roms ROMS\ 时,报错如下:
File "D:\Anaconda3\install\envs\tensorflow\lib\site-packages\ale_py\scripts\import_roms.py", line 25, in import_romsrom = 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 = Noneif rom is not None:supported[rom] = pathelse:unsupported.append(path)
保存再次运行上述命令即可。