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

the "InvertedPendulumAdv-v1" environment is not registered by gym #4

Open
mujtabahasan opened this issue Jun 7, 2018 · 1 comment

Comments

@mujtabahasan
Copy link

Hi,
I am trying to reproduce the code but I am getting the following error :

/home/mujtaba.hasan/anaconda3/envs/rllab3-adv/lib/python3.5/site-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module.
"downsample module has been moved to the theano.tensor.signal.pool module.")
2018-06-07 16:53:29.812020 IST | Warning: skipping Gym environment monitoring since snapshot_dir not configured.
Traceback (most recent call last):
File "/home/mujtaba.hasan/anaconda3/envs/rllab3-adv/lib/python3.5/site-packages/gym/envs/registration.py", line 143, in spec
return self.env_specs[id]
KeyError: 'InvertedPendulumAdv-v1'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "adversarial/scripts/train_adversary.py", line 73, in
env = normalize(GymEnv(env_name, adv_fraction))
File "/home/mujtaba.hasan/Documents/RL/rllab-adv/rllab/envs/gym_env.py", line 54, in init
env = gym.envs.make(env_name)
File "/home/mujtaba.hasan/anaconda3/envs/rllab3-adv/lib/python3.5/site-packages/gym/envs/registration.py", line 167, in make
return registry.make(id)
File "/home/mujtaba.hasan/anaconda3/envs/rllab3-adv/lib/python3.5/site-packages/gym/envs/registration.py", line 118, in make
spec = self.spec(id)
File "/home/mujtaba.hasan/anaconda3/envs/rllab3-adv/lib/python3.5/site-packages/gym/envs/registration.py", line 153, in spec
raise error.UnregisteredEnv('No registered env with id: {}'.format(id))
gym.error.UnregisteredEnv: No registered env with id: InvertedPendulumAdv-v1

@honghuixuhenry
Copy link

File "adversarial/scripts/train_adversary.py", line 77, in
env = normalize(GymEnv(env_name, adv_fraction))
File "/Users/xuhonghui/Desktop/DRL_Attack/robust-adversarial-rl/rllab-adv/rllab/envs/gym_env.py", line 54, in init
env = gym.envs.make(env_name)
File "/anaconda3/envs/rllab3-adv/lib/python3.5/site-packages/gym/envs/registration.py", line 183, in make
return registry.make(id, **kwargs)
File "/anaconda3/envs/rllab3-adv/lib/python3.5/site-packages/gym/envs/registration.py", line 124, in make
spec = self.spec(path)
File "/anaconda3/envs/rllab3-adv/lib/python3.5/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: InvertedPendulumAdv-v1

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

2 participants