Comments (6)
I was also experiencing the same problem and, based on the previous answers, I wrote this short script to be used in colab. I hope someone finds it useful.
! wget http://www.atarimania.com/roms/Roms.rar
! mkdir /content/ROM/
! unrar e /content/Roms.rar /content/ROM/
! python -m atari_py.import_roms /content/ROM/
from atari-py.
Found a fix. Go to http://www.atarimania.com/rom_collection_archive_atari_2600_roms.html and download the .rar file with the roms. Extract that .rar file on your local machine. There are 2 zip files in the extracted folder. Then upload those 2 zip files to you colab project.. inside your colab notebook run the following
from google.colab import files
uploaded = files.upload()
This will give you a button to browse your local machine. Upload those 2 zip files.
Then in you colab notebook run the following
!python -m atari_py.import_roms .
Don't forget the . at the end. Then you can run atari gym.
from atari-py.
It's now possible to install Gym along with the ROMs like this:
pip install gym[atari,accept-rom-license]
This installs the autorom
package, which provides the AutoROM
command, and runs this command with the --accept-rom-license
option. AutoROM
downloads the ROMs and puts them in the right folders, so everything just works again, but now if Atari decides to sue someone for using their copyrighted ROMs, it will be you, not OpenAI (I'm not a lawyer, though!). 😆
from atari-py.
It seems this is a general issue with Colab+gym, I fail to create the pong environment, with the same code that worked flawlessly on Saturday.
from atari-py.
@0x15F9
You have no idea how many times I have come back to and used your solution! ❤️
Quite a lifesaver! 😄
Thanks a lot.
from atari-py.
Just copy and Run.
!wget http://www.atarimania.com/roms/Roms.rar
!unrar x /content/Roms.rar /content
!python -m atari_py.import_roms .
from atari-py.
Related Issues (20)
- Update atari-py from upstream ALE HOT 1
- OSError: [WinError 126] The specified module could not be found HOT 2
- OSError: [WinError 126] Cannot find the specified module HOT 1
- package license in pypi distribution HOT 1
- Compatilbility with Python 3.8? HOT 2
- Cannot find the game surround that is part of the Atari57 benchmark HOT 3
- why file dowloaded from Atari 2600 VCS ROM Collection is so big? my 450GB free space is not enoough HOT 2
- Breakout doesn't end after losing the game HOT 2
- Sticky Actions: Get Actually Executed Action HOT 3
- Publish wheels for 3.8 HOT 1
- Exception: ROM is missing for ms_pacman, see https://github.com/openai/atari-py#roms for instructions HOT 4
- Rom is missing, Fix that please X-X HOT 3
- error installing the ROM HOT 1
- NO error, but can still not run Pong-0 HOT 3
- ROM MD5s differ
- Unable to load ROMs with ale.loadROM() HOT 2
- Unable to import ROMS HOT 1
- Tetris.bin ROM file is broken or corrupted
- Fallthrough bug
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atari-py.