zhangzhizza / Gym-Eplus

GNU General Public License v3.0
61 stars 28 forks source link

gym.error.UnregisteredEnv: No registered env with id: Eplus-demo-v1 #5

Closed lk1983823 closed 2 years ago

lk1983823 commented 2 years ago

gym version 0.21 run the example showing:

Traceback (most recent call last):
  File "/home/lksgcc/.pyenv/versions/anaconda3-5.0.1/envs/mujoco_py/lib/python3.8/site-packages/gym/envs/registration.py", line 158, in spec
    return self.env_specs[id]
KeyError: 'Eplus-demo-v1'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/media/lksgcc/new_disk/lk_git/3_Reinforcement_Learning/3_5_EnergyRL/Gnu-RL/test_env.py", line 4, in <module>
    env = gym.make('Eplus-demo-v1');
  File "/home/lksgcc/.pyenv/versions/anaconda3-5.0.1/envs/mujoco_py/lib/python3.8/site-packages/gym/envs/registration.py", line 235, in make
    return registry.make(id, **kwargs)
  File "/home/lksgcc/.pyenv/versions/anaconda3-5.0.1/envs/mujoco_py/lib/python3.8/site-packages/gym/envs/registration.py", line 128, in make
    spec = self.spec(path)
  File "/home/lksgcc/.pyenv/versions/anaconda3-5.0.1/envs/mujoco_py/lib/python3.8/site-packages/gym/envs/registration.py", line 203, in spec
    raise error.UnregisteredEnv("No registered env with id: {}".format(id))
gym.error.UnregisteredEnv: No registered env with id: Eplus-demo-v1