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

Environment doesn't exist Error #78

Open
semihtasbas opened this issue Apr 2, 2022 · 1 comment
Open

Environment doesn't exist Error #78

semihtasbas opened this issue Apr 2, 2022 · 1 comment

Comments

@semihtasbas
Copy link

Hello,
I receive below error and I used your offical setup. Can you help me about it ?

import gym
env = gym.make('procgen:procgen-coinrun-v0')
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\PC\anaconda3\envs\procgen\lib\site-packages\gym\envs\registration.py", line 676, in make
return registry.make(id, **kwargs)
File "C:\Users\PC\anaconda3\envs\procgen\lib\site-packages\gym\envs\registration.py", line 490, in make
versions = self.env_specs.versions(namespace, name)
File "C:\Users\PC\anaconda3\envs\procgen\lib\site-packages\gym\envs\registration.py", line 220, in versions
self._assert_name_exists(namespace, name)
File "C:\Users\PC\anaconda3\envs\procgen\lib\site-packages\gym\envs\registration.py", line 297, in _assert_name_exists
raise error.NameNotFound(message)
gym.error.NameNotFound: Environment procgen:procgen-coinrun doesn't exist.

@NikEyX
Copy link

NikEyX commented Apr 12, 2022

I encountered the same when I updated my entire environment today to python 3.10. Maybe the registration doesn't work properly?

Anyways, the below makes it work

import procgen # registers env
env = gym.make("procgen-coinrun-v0") #should work now, notice there is no more "procgen:"

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