You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this bug or I do something wrong?
The code from your README.md file..
importgymimportrwareenv=gym.make("rware-tiny-2ag-v1")
obs=env.reset() # a tuple of observationsactions=env.action_space.sample() # the action space can be sampledprint(actions) # (1, 0)n_obs, reward, done, info=env.step(actions)
print(done) # [False, False]print(reward) # [0.0, 0.0]env.render()
The output:
Traceback (most recent call last):
File "/Users/perchik/PycharmProjects/Try_OpenAI_GYM/main.py", line 3, in <module>
env = gym.make("rware-tiny-2ag-v1")
File "/Users/perchik/opt/anaconda3/envs/Try_OpenAI_GYM/lib/python3.10/site-packages/gym/envs/registration.py", line 662, in make
env = env_creator(**_kwargs)
File "/Users/perchik/opt/anaconda3/envs/Try_OpenAI_GYM/lib/python3.10/site-packages/rware/warehouse.py", line 247, in __init__
self._use_slow_obs()
File "/Users/perchik/opt/anaconda3/envs/Try_OpenAI_GYM/lib/python3.10/site-packages/rware/warehouse.py", line 313, in _use_slow_obs
[
File "/Users/perchik/opt/anaconda3/envs/Try_OpenAI_GYM/lib/python3.10/site-packages/rware/warehouse.py", line 344, in <listcomp>
"local_message": spaces.MultiBinary(
File "/Users/perchik/opt/anaconda3/envs/Try_OpenAI_GYM/lib/python3.10/site-packages/gym/spaces/multi_binary.py", line 45, in __init__
assert (np.asarray(input_n) > 0).all() # n (counts) have to be positive
AssertionError
Why so? Can you help?
Thanks in advance
The text was updated successfully, but these errors were encountered:
Is this bug or I do something wrong?
The code from your README.md file..
The output:
Why so? Can you help?
Thanks in advance
The text was updated successfully, but these errors were encountered: