gym.error.UnregisteredEnv: No registered env with id: SuperMarioBrosNoFrameskip-1-1-v0
nuomizai opened this issue · comments
I met a problem when I'm running
env = gym_super_mario_bros.make(env_id)
while my env_id = "SuperMarioBrosNoFrameskip-1-1-v0"
the complete error report is like this:
File "/home/linc/anaconda3/envs/pytorch/lib/python3.6/site-packages/gym/envs/registration.py", line 159, in spec
return self.env_specs[id]
KeyError: 'SuperMarioBrosNoFrameskip-1-1-v0'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/linc/zhaoyinuo/Super-Mario-Bros-RL/A3C/train-mario-curiosity.py", line 74, in
env = create_mario_env(args.env_name, args.reward_type)
File "/home/linc/zhaoyinuo/Super-Mario-Bros-RL/A3C/common/atari_wrapper.py", line 189, in create_mario_env
env = gym_super_mario_bros.make(env_id)
File "/home/linc/anaconda3/envs/pytorch/lib/python3.6/site-packages/gym/envs/registration.py", line 183, in make
return registry.make(id, **kwargs)
File "/home/linc/anaconda3/envs/pytorch/lib/python3.6/site-packages/gym/envs/registration.py", line 124, in make
spec = self.spec(path)
File "/home/linc/anaconda3/envs/pytorch/lib/python3.6/site-packages/gym/envs/registration.py", line 169, in spec
raise error.UnregisteredEnv('No registered env with id: {}'.format(id))
gym.error.UnregisteredEnv: No registered env with id: SuperMarioBrosNoFrameskip-1-1-v0
Does anyone know how to solve it? Thank u~
there is no frame skip environment, that is a feature of the Atari gym environments. You'll have to apply frameskipping at a later processing stage.