Closed itstyren closed 11 months ago
There is currently an incompatibility between the PettingZoo and RLLib examples, as they require different versions of Gym/Gymnasium. This means that the examples are broken and it is hard to test them on our side.
I cannot immediately see why the player_0 wouldn't be present in the infos, other than them being deleted (due to a terminal state) before they are accessed. Unfortunately we cannot easily test this on our side.
For what is worth, we don't use the infos internally, and your fix would be fine in terms of functionality.
It appears to be an issue with PettingZoo, which has been resolved in this latest update: https://github.com/Farama-Foundation/PettingZoo/pull/1082.
Hi, thanks for this fantastic project. I'm new to the field of MARL and when attempting to run the provided example, I encountered the following error message. It would be greatly appreciated if someone could assist me with this?
Issue Type
Bug Report
Bug Description
Encountered a
KeyError
while attempting to access agent information in thepettingzoo.utils.env
module, using provided pettingzoo.Steps to Reproduce
pip install dm-meltingpot
andpip install -r examples/requirements.txt
Expected Behavior
Send Meltingpot substrates to PettingZoo's ParallelEnv and train model using PPO algorithm.
Actual Behavior:
Instead, I encountered a KeyError along with the following error message:
Environment:
Additional information
To run this example, I also change the line 35
pettingzoo/utils.py
toAnd the env name should be
commons_harvest__open
instead ofcommons_harvest_open
.Possible solution
I've discovered that by commenting out line 190 in
site-packages/pettingzoo/utils/env.py
file, the error doesn't occur. However, I'm hesitant to consider this as the proper solution.