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

Installation fail #123

Open
MFaisalZaki opened this issue Sep 13, 2024 · 1 comment
Open

Installation fail #123

MFaisalZaki opened this issue Sep 13, 2024 · 1 comment

Comments

@MFaisalZaki
Copy link

Hi I am trying the basic tutorial for plangym:

import plangym

env = plangym.make(name="ALE/RoadRunner-ram-v5")
state, obs, info = env.reset()

state = state.copy()
action = env.action_space.sample()

data = env.step(state=state, action=action)
new_state, observ, reward, end, truncated, info = data

And I am getting this error:

File "temp-venv/venv/lib/python3.12/site-packages/gymnasium/envs/registration.py", line 350, in _check_namespace_exists
    raise error.NamespaceNotFound(f"Namespace {ns} not found. {suggestion_msg}")
gymnasium.error.NamespaceNotFound: Namespace ALE not found. Have you installed the proper package for ALE?

List of installed packages:

ale-py==0.9.1
asttokens==2.4.1
cloudpickle==3.0.0
decorator==5.1.1
executing==2.1.0
Farama-Notifications==0.0.4
flogging==0.0.22
fragile-gym==1.21.1
gymnasium==0.29.1
imageio==2.35.1
ipython==8.27.0
jedi==0.19.1
matplotlib-inline==0.1.7
numpy==2.1.1
opencv-python==4.10.0.84
parso==0.8.4
pexpect==4.9.0
pillow==10.4.0
plangym @ git+https://github.com/FragileTech/plangym.git@7a772387bfcb40109d580c5b980a793168d1de63
prompt_toolkit==3.0.47
ptyprocess==0.7.0
pure_eval==0.2.3
pyglet==1.5.11
Pygments==2.18.0
PyVirtualDisplay==3.0
six==1.16.0
stack-data==0.6.3
traitlets==5.14.3
typing_extensions==4.12.2
wcwidth==0.2.13
xxhash==3.5.0

Python version py3.12

@Guillemdb
Copy link
Member

This is probably due to not having the Atari roms available in your environment.

Can you try installing all the extra dependencies with pip install -r requirements.lock? This file contains a list of all the dependencies needed to run all the environments.

If you are only interested in running Atari games, you could also take a look at the extra dependencies and run pip install plangym[nes]

I will try to improve the intallation tutorials over the weekend.

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

2 participants