kzl / decision-transformer

Official codebase for Decision Transformer: Reinforcement Learning via Sequence Modeling.
MIT License
2.33k stars 440 forks source link

No registered env with id: halfcheetah-medium-v2 #44

Open boykac opened 2 years ago

boykac commented 2 years ago

python download_d4rl_datasets.py -> Traceback (most recent call last): File "download_d4rl_datasets.py", line 12, in env = gym.make(name) File "/public/home/chenxn1/anaconda3/envs/decision-transformer-gym/lib/python3.8/site-packages/gym/envs/registration.py", line 145, in make return registry.make(id, **kwargs) File "/public/home/chenxn1/anaconda3/envs/decision-transformer-gym/lib/python3.8/site-packages/gym/envs/registration.py", line 89, in make spec = self.spec(path) File "/public/home/chenxn1/anaconda3/envs/decision-transformer-gym/lib/python3.8/site-packages/gym/envs/registration.py", line 131, in spec raise error.UnregisteredEnv('No registered env with id: {}'.format(id)) gym.error.UnregisteredEnv: No registered env with id: halfcheetah-medium-v2

cwf1005 commented 1 year ago

You should install d4rl, and import d4rl before gym.make()

ShuboLiu commented 1 year ago

After I import d4rl first, this error remians. Can anyone help me with it?

tangtaotao123 commented 10 months ago

maybe you didn't install mlrl

arks22 commented 9 months ago

I had the same problem, but after installing D4RL using this method from the D4RL README, I was able to download the data sets such as halhcheetah-midium-v2 and others. https://github.com/Farama-Foundation/D4RL#setup Perhaps you should also make sure that MuJoCo2.1.0 is downloaded correctly.

Hope this helps.