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

NotImplementedError with gym 0.17.2 #6

Open
2000222 opened this issue Jun 14, 2020 · 2 comments
Open

NotImplementedError with gym 0.17.2 #6

2000222 opened this issue Jun 14, 2020 · 2 comments

Comments

@2000222
Copy link

2000222 commented Jun 14, 2020

I just run " python mbexp.py -env reacher" with gym 0.17.2, but get the following traceback:
Traceback (most recent call last):
File "mbexp.py", line 64, in
main(args.env, "MPC", args.ctrl_arg, args.override, args.logdir)
File "mbexp.py", line 37, in main
cfg = create_config(env, ctrl_type, ctrl_args, overrides, logdir)
File "/home/ubuntu/data/handful-of-trials-pytorch/config/default.py", line 54, in create_config
cfg_module = cfg_source.CONFIG_MODULE()
File "/home/ubuntu/data/handful-of-trials-pytorch/config/reacher.py", line 99, in init
self.ENV = gym.make(self.ENV_NAME)
File "/home/ubuntu/miniconda3/lib/python3.7/site-packages/gym/envs/registration.py", line 145, in make
return registry.make(id, **kwargs)
File "/home/ubuntu/miniconda3/lib/python3.7/site-packages/gym/envs/registration.py", line 90, in make
env = spec.make(kwargs)
File "/home/ubuntu/miniconda3/lib/python3.7/site-packages/gym/envs/registration.py", line 60, in make
env = cls(
_kwargs)
File "/home/ubuntu/data/handful-of-trials-pytorch/env/reacher.py", line 18, in init
mujoco_env.MujocoEnv.init(self, os.path.join(dir_path, 'assets/reacher3d.xml'), 2)
File "/home/ubuntu/miniconda3/lib/python3.7/site-packages/gym/envs/mujoco/mujoco_env.py", line 64, in init
observation, _reward, done, _info = self.step(action)
File "/home/ubuntu/miniconda3/lib/python3.7/site-packages/gym/core.py", line 56, in step
raise NotImplementedError
NotImplementedError

Could anyone give me some solutions? Thank you.

@jingwu6
Copy link

jingwu6 commented Nov 5, 2020

Update: I guess I find the issue. Simply change the version of the gym by the following code:

pip install gym==0.8.2

I met the same issue when I ran this code. Hope someone can help us out.

@mbelalsh
Copy link

@jingwu6 Thanks. That worked. I also had to downgrade my mujoco-py version to 0.5.7.

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

3 participants