Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

2.4K
Views
Error in importing environment OpenAI Gym

I am trying to run an OpenAI Gym environment however I get the following error:

import gym
env = gym.make('Breakout-v0')

ERROR

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/ale_py/gym/environment.py:11: DeprecationWarning: Importing atari-py roms won't be supported in future releases of ale-py.
  import ale_py.roms as roms
A.L.E: Arcade Learning Environment (version +a54a328)
[Powered by Stella]
Traceback (most recent call last):
  File "/Users/username/Desktop/OpenAI Gym Stuff/OpenAI_Exp.py", line 2, in <module>
    env = gym.make('Breakout-v0')
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gym/envs/registration.py", line 200, in make
    return registry.make(id, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gym/envs/registration.py", line 105, in make
    env = spec.make(**kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/gym/envs/registration.py", line 75, in make
    env = cls(**_kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/ale_py/gym/environment.py", line 123, in __init__
    self.seed()
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/ale_py/gym/environment.py", line 171, in seed
    raise error.Error(
gym.error.Error: Unable to find game "Breakout", did you import Breakout with ale-import-roms?
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

pip install gym[atari,accept-rom-license]==0.21.0
over 4 years ago · Santiago Trujillo Report

0

It can be solved with conda:

  1. install gym version 0.19.0, by,

    conda install -c conda-forge gym=0.19.0;
    
  2. install atari_py by

    conda install -c conda-forge atari_py;
    
  3. download the Roms, and unpack the RAR.

  4. open a terminal, active your environment, and input:

    python -m atari_py.import_roms \<path to folder\>, 
    

    which will copy the ROMs in the folder specified to the pkg folder.

over 4 years ago · Santiago Trujillo Report

0

This worked for me via terminal:

pip install gym[atari]
pip install autorom[accept-rom-license]

After installing gym, it is 80 games. After installing gym[atari], it is 267 games. And you have to accept the specific licenses to activate additional games.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!