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

Type Error 'int object is not subscriptable' #24

Open
amay1212 opened this issue Aug 20, 2018 · 1 comment
Open

Type Error 'int object is not subscriptable' #24

amay1212 opened this issue Aug 20, 2018 · 1 comment

Comments

@amay1212
Copy link

Im getting this error while running

env = gym.make('SuperMarioBros-1-1-v0')

Error :

[2018-08-20 08:38:48,607] Making new env: SuperMarioBros-1-1-v0
Traceback (most recent call last):
File "", line 1, in
File "/anaconda3/envs/universe-starter-agent/lib/python3.5/site-packages/gym/envs/registration.py", line 161, in make
return registry.make(id)
File "/anaconda3/envs/universe-starter-agent/lib/python3.5/site-packages/gym/envs/registration.py", line 119, in make
env = spec.make()
File "/anaconda3/envs/universe-starter-agent/lib/python3.5/site-packages/gym/envs/registration.py", line 86, in make
env = cls(**self._kwargs)
File "/anaconda3/envs/universe-starter-agent/lib/python3.5/site-packages/gym/envs/ppaquette_gym_super_mario/super_mario_bros.py", line 256, in init
num_levels=32)
File "/anaconda3/envs/universe-starter-agent/lib/python3.5/site-packages/gym/envs/ppaquette_gym_super_mario/nes_env.py", line 548, in init
NesEnv.init(self)
File "/anaconda3/envs/universe-starter-agent/lib/python3.5/site-packages/gym/envs/ppaquette_gym_super_mario/nes_env.py", line 48, in init
self.action_space = spaces.MultiDiscrete([1] * NUM_ACTIONS)
File "/anaconda3/envs/universe-starter-agent/lib/python3.5/site-packages/gym/spaces/multi_discrete.py", line 29, in init
print(array_of_param_array)
File "/anaconda3/envs/universe-starter-agent/lib/python3.5/site-packages/gym/spaces/multi_discrete.py", line 29, in
print(array_of_param_array)
TypeError: 'int' object is not subscriptable

@danielnbarbosa
Copy link

Try using gym 0.10.5. That's what worked for me: pip install gym==0.10.5

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