semitable/robotic-warehouse

I had problems at the beginning

saiyuhang123 opened this issue · 1 comments

import rware
import gym

env = gym.make("rware-tiny-2ag-v1")

When I run the above code I get an error:
env = gym.make("rware-tiny-2ag-v1")
File "D:\anconda_env\envs\robotic_warehouse\lib\site-packages\gym\envs\registration.py", line 640, in make
env = env_creator(**_kwargs)
File "D:\anconda_env\envs\robotic_warehouse\lib\site-packages\rware\warehouse.py", line 247, in init
self._use_slow_obs()
File "D:\anconda_env\envs\robotic_warehouse\lib\site-packages\rware\warehouse.py", line 359, in _use_slow_obs
for _ in range(self.n_agents)
File "D:\anconda_env\envs\robotic_warehouse\lib\site-packages\rware\warehouse.py", line 359, in
for _ in range(self.n_agents)
File "D:\anconda_env\envs\robotic_warehouse\lib\site-packages\gym\spaces\multi_binary.py", line 44, in init
assert (np.asarray(input_n) > 0).all() # n (counts) have to be positive
AssertionError
image-20240312163712957
The picture above is the package of my environment

gym==0.21.0