TypeError: 'int' object is not iterable
Zero2Love opened this issue · 1 comments
Hello!
I have deleted the env.py from the main dictionary, but come into this error when running the main.py. Do you have any idea about this issue? Thanks a lot!
File "E:/maddpg/scalable_maddpg-master/main.py", line 16, in
Env = envs.Environ(num_agents,max_edge)
File "E:\maddpg\scalable_maddpg-master\env\envs.py", line 23, in init
= self.create_env(num_agents)
File "E:\maddpg\scalable_maddpg-master\env\envs.py", line 37, in create_env
shared_viewer=False)
File "env\multiagent\environment.py", line 71, in init
self.observation_space.append(spaces.Box(low=-np.inf, high=+np.inf, shape=(obs_dim),))
File "C:\Users\Administrator\Anaconda3\lib\site-packages\gym\spaces\box.py", line 34, in init
gym.Space.init(self, shape, dtype)
File "C:\Users\Administrator\Anaconda3\lib\site-packages\gym\core.py", line 202, in init
self.shape = None if shape is None else tuple(shape)
TypeError: 'int' object is not iterable