Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deep Q-Learning, Spaceinvaders, retro-gym #31

Open
Yaroina opened this issue Dec 17, 2018 · 2 comments
Open

Deep Q-Learning, Spaceinvaders, retro-gym #31

Yaroina opened this issue Dec 17, 2018 · 2 comments

Comments

@Yaroina
Copy link

Yaroina commented Dec 17, 2018

Hi!
I’m trying to run SpaceInvaders, but faced problem with:” Game not found: Did you make sure to import the ROM?”. Then I tried solution by MaximusWudy, with point and renaiming files to .a26 (as adviced at openai/retro). But when I try to run “python3 -m retro.import (…)” it always comes with error
Importing 130863 potential games…
Traceback (most recent call last):
File “//anaconda/lib/python3.5/runpy.py”, line 184, in _run_module_as_main
main”, mod_spec)
File “//anaconda/lib/python3.5/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “//anaconda/lib/python3.5/site-packages/retro/import/main.py”, line 4, in
main()
File “//anaconda/lib/python3.5/site-packages/retro/scripts/import_path.py”, line 18, in main
retro.data.merge(*potential_roms, quiet=False)
File “//anaconda/lib/python3.5/site-packages/retro/data/init.py”, line 404, in merge
known_hashes[sha] = (game, ext, os.path.join(path(), curpath))
UnboundLocalError: local variable ‘ext’ referenced before assignment
To be honest, I have no idea what to try next.

@noobmaster29
Copy link

noobmaster29 commented Jan 1, 2019

Here's my current solution:

  1. download this file: http://www.atarimania.com/rom_collection_archive_atari_2600_roms.html
  2. unzip and put the roms folder it in your working (notebook) folder
  3. After the first import cell:
    !python3 -m retro.import ./roms
    env = retro.make(game='SpaceInvaders-Atari2600')

It currently works for me.

Hope this helps :)

Forgot to add this reference: openai/retro#53

@LucasColas
Copy link

How to import ROM on Google Colab ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants