*env: python 3.9.23
Package Version
cloudpickle 3.1.1
contourpy 1.3.0
cycler 0.12.1
farama-notifications 0.0.4
fonttools 4.60.1
gymnasium 1.1.1
importlib-metadata 8.7.0
importlib-resources 6.5.2
kiwisolver 1.4.7
magent2 0.3.3
matplotlib 3.9.4
numpy 1.26.4
packaging 25.0
pettingzoo 1.25.0
pillow 11.3.0
pygame 2.6.1
pyparsing 3.2.5
python-dateutil 2.9.0.post0
six 1.17.0
typing-extensions 4.15.0
zipp 3.23.0
Question: When I run this code that I would got these errors, Why it was happened?
from magent2.environments import battle_v4
env = battle_v4.env(map_size=16, render_mode='human')
env.reset()
for agent in env.agent_iter():
observation, reward, termination, truncation, info = env.last()
action = policy(observation, agent)
env.step(action)
ERROR:
Traceback (most recent call last):
File "c:\A\RL\marl\main.py", line 4, in <module>
env.reset()
File "C:\A\RL\marl\.venv\lib\site-packages\pettingzoo\utils\wrappers\order_enforcing.py", line 92, in reset
super().reset(seed=seed, options=options)
File "C:\A\RL\marl\.venv\lib\site-packages\pettingzoo\utils\wrappers\base.py", line 38, in reset
self.env.reset(seed=seed, options=options)
File "C:\A\RL\marl\.venv\lib\site-packages\pettingzoo\utils\wrappers\base.py", line 38, in reset
self.env.reset(seed=seed, options=options)
File "C:\A\RL\marl\.venv\lib\site-packages\pettingzoo\utils\conversions.py", line 306, in reset
self._observations, self.infos = self.env.reset(seed=seed, options=options)
ValueError: too many values to unpack (expected 2)
*env: python 3.9.23
Package Version
cloudpickle 3.1.1
contourpy 1.3.0
cycler 0.12.1
farama-notifications 0.0.4
fonttools 4.60.1
gymnasium 1.1.1
importlib-metadata 8.7.0
importlib-resources 6.5.2
kiwisolver 1.4.7
magent2 0.3.3
matplotlib 3.9.4
numpy 1.26.4
packaging 25.0
pettingzoo 1.25.0
pillow 11.3.0
pygame 2.6.1
pyparsing 3.2.5
python-dateutil 2.9.0.post0
six 1.17.0
typing-extensions 4.15.0
zipp 3.23.0
Question: When I run this code that I would got these errors, Why it was happened?
ERROR: