-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
[Bug Report] Rom not found after installing AutoRom #1160
Comments
Can you give the full stack trace? We have testing in our CI for both linux/mac and python 3.8-3.11 which successfully installs the ROMs and tests them, I’ll check what versions are installed there though just to be sure |
Oh what it might be is that we don’t explicitly test on M1 macs currently, but I believe that is now possible in GitHub actions so I could test it out |
@elliottower that was fast! 😄 |
The tests all passed on the different Mac versions (11, 12, and 13 with m1) so I think it must be something on your end |
Could you rerun import gymnasium
gymnasium.make("ALE/Pong-v5") |
if I install the gymnasium rom license (pip install 'gymnasium[accept-rom-license]'), and try the make() method, it does create the env. But using the tennis_v3.env() provided in the docs, it still gives the error provided in the description above. |
@elliottower It seems like ale-py is doing something different from PettingZoo when finding the rom which is part of the issue |
Adding on, a good place to start debugging this is probably here. I can start looking into this later. |
@MrCley I've looked into this and for some reason I cannot replicate this. Is this still happening on your end? |
Hi @jjshoots, yes it still happens :( I've made another project (also Python 3.11), cloned the repo and ran the tests ( |
@MrCley I assume you've done |
yes, I ran the tests both before and after running |
@MrCley I assume you're using some form of virtual env? If so, could you print out the contents of
|
hey @jjshoots, just checked and there is no roms folder in there: |
@MrCley Apologies for the repeated slow responses. That does not look good... import importlib.resources as r
r.files("multi_agent_ale_py")
r.files("AutoROM") Also, could you verify that |
Describe the bug
When trying to run the Atari examples in the docs, the same error is shown (for all games):
It says that the rom is not installed and suggests installing AutoROM, which is already installed (pip list below).
Full stack trace:
Traceback (most recent call last):
File "/Users/mrcley/Documents/py/marl_atari/src/train.py", line 3, in
env = tennis_v3.env(render_mode="human")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mrcley/Documents/py/marl_atari/env/lib/python3.11/site-packages/pettingzoo/atari/base_atari_env.py", line 25, in env_fn
env = raw_env_fn(**kwargs)
^^^^^^^^^^^^^^^^^^^^
File "/Users/mrcley/Documents/py/marl_atari/env/lib/python3.11/site-packages/pettingzoo/atari/tennis/tennis.py", line 91, in raw_env
return BaseAtariEnv(
^^^^^^^^^^^^^
File "/Users/mrcley/Documents/py/marl_atari/env/lib/python3.11/site-packages/pettingzoo/atari/base_atari_env.py", line 34, in BaseAtariEnv
return parallel_to_aec_wrapper(ParallelAtariEnv(**kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mrcley/Documents/py/marl_atari/env/lib/python3.11/site-packages/pettingzoo/atari/base_atari_env.py", line 109, in init
raise OSError(
OSError: rom tennis is not installed. Please install roms using AutoROM tool (https://github.com/Farama-Foundation/AutoROM) or specify and double-check the path to your Atari rom using the
rom_path
argument.Thanks!
Code example
System info
M1 macOs Ventura 13.0.1
Python 3.11.6
pip list:
ale-py==0.8.1
AutoROM==0.6.1
AutoROM.accept-rom-license==0.6.1
certifi==2023.11.17
charset-normalizer==3.3.2
click==8.1.7
cloudpickle==3.0.0
Farama-Notifications==0.0.4
gymnasium==0.29.1
idna==3.6
importlib-resources==6.1.1
multi-agent-ale-py==0.1.11
numpy==1.26.3
pettingzoo==1.24.3
pygame==2.3.0
requests==2.31.0
Shimmy==0.2.1
tqdm==4.66.1
typing_extensions==4.9.0
urllib3==2.1.0
Additional context
AutoROM works fine in another project (same Python version) that is not using PettingZoo but is also using Gymnasium 0.29.1.
Checklist
The text was updated successfully, but these errors were encountered: