Kautenja / gym-super-mario-bros

An OpenAI Gym interface to Super Mario Bros. & Super Mario Bros. 2 (Lost Levels) on The NES
Other
678 stars 133 forks source link

gym.error.UnregisteredEnv: No registered env with id: SuperMarioBrosNoFrameskip-1-1-v0 #92

Closed nuomizai closed 4 years ago

nuomizai commented 5 years ago

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~

Kautenja commented 4 years ago

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.