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 CustomGymEnv ('CustomAnt-v0') #1
Comments
multiprocessing/pool.py", line 608, in get
|
It might be due to a different gym version. We used 0.7.4 version of gym that time. |
No ''gaussian_mlp_inverse_policy.py'' in my rllab/sandbox/rocky/tf/policies, python ant_irl.py |
@lujiayou123 Sorry for the trouble. I have included the gaussain_mlp_inverse_policy.py file in my git. You will have to manually copy it to the sandbox/rocky/tf/policies folder and then the code should work fine. Thanks |
Although I copy the gaussain_mlp_inverse_policy.py file to the sandbox/rocky/tf/policies folder, I get the below error. @ahq1993
|
Thank you very much for releasing your code. When I run ant_data_collect.py with 'CustomAnt-v0' environment, some problem occured,
Traceback (most recent call last):
File "/home/xxx/anaconda3/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/xxx/anaconda3/lib/python3.6/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/home/xxx/inverse_rl_eairl/inverse_rl/utils/hyper_sweep.py", line 47, in kwargs_wrapper
return method(**args)
File "ant_data_collect.py", line 16, in main
env = TfEnv(CustomGymEnv('CustomAnt-v0', record_video=False, record_log=False, force_reset=False))
File "/home/xxx/inverse_rl_eairl/inverse_rl/envs/env_utils.py", line 123, in init
video_schedule=FixedIntervalVideoSchedule(50), force_reset=force_reset)
File "/home/xxx/inverse_rl_eairl/inverse_rl/envs/env_utils.py", line 35, in init
env = gym.envs.make(env_name)
File "/home/xxx/software/gym_origin_no_vel/gym/envs/registration.py", line 167, in make
return registry.make(id)
File "/home/xxx/software/gym_origin_no_vel/gym/envs/registration.py", line 119, in make
env = spec.make()
File "/home/xxx/software/gym_origin_no_vel/gym/envs/registration.py", line 86, in make
env = cls(**self._kwargs)
File "/home/xxx/inverse_rl_eairl/inverse_rl/envs/ant_env.py", line 209, in init
mujoco_env.MujocoEnv.init(self, f.name, 5)
File "/home/xxx/software/gym_origin_no_vel/gym/envs/mujoco/mujoco_env.py", line 42, in init
observation, _reward, done, _info = self.step(np.zeros(self.model.nu))
File "/home/xxx/software/gym_origin_no_vel/gym/core.py", line 62, in step
raise NotImplementedError
NotImplementedError
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "ant_data_collect.py", line 41, in
run_sweep_parallel(main, params_dict, repeat=4)
File "/home/xxx/inverse_rl_eairl/inverse_rl/utils/hyper_sweep.py", line 57, in run_sweep_parallel
pool.map(kwargs_wrapper, exp_args)
File "/home/xxx/anaconda3/lib/python3.6/multiprocessing/pool.py", line 266, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/home/xxx/anaconda3/lib/python3.6/multiprocessing/pool.py", line 644, in get
raise self._value
NotImplementedError
could you please tell me how to fix this problem.
Thanks
The text was updated successfully, but these errors were encountered: