Closed nicklhy closed 9 months ago
After debugging into some source code. I found that magent2/environments/magent_env.py::magent_parallel_env.reset
returns a single dict value. This might not be compatible with what pettingzoo expects in the above error msg.
self._observations, self.infos = self.env.reset(seed=seed, options=options)
Try: pip uninstall pettingzoo pip install pettingzoo==1.22
Try: pip uninstall pettingzoo pip install pettingzoo==1.22
Thanks for your reply. Downgrading pettingzoo to 1.22.0 solves my problem.
change dependencies = [ "numpy >=1.21.0", "pygame>=2.1.0", "pettingzoo>=1.22.0", ]
worked
I installed magent2 with
pip install magent2
and copy the missing .py files following this issue. Now I can import magent2 envs in python successfully. But when I tried to run the basic usage example as below. It just crashed.Related lib versions are listed below