Farama-Foundation / PettingZoo

An API standard for multi-agent reinforcement learning environments, with popular reference environments and related utilities
https://pettingzoo.farama.org
Other
2.45k stars 400 forks source link

[Bug Report] AgileRL tutorials broken #1181

Closed dm-ackerman closed 3 months ago

dm-ackerman commented 4 months ago

Describe the bug

AgileRL updated to version 0.1.20 a couple days ago. The changes break the example tutorials in PettingZoo

for example: python agilerl_maddpg.py

gives

Traceback (most recent call last):
  File "/opt/home/code/PettingZoo/tutorials/AgileRL/agilerl_maddpg.py", line 86, in <module>
    pop = initialPopulation(
  File "/opt/conda/lib/python3.9/site-packages/agilerl/utils/utils.py", line 245, in initialPopulation
    lr_actor=INIT_HP["LR_ACTOR"],
KeyError: 'LR_ACTOR'

I didn't try all of the the tutorials so I don't know what else is broken or what's involved in fixing them.

Code example

No response

System info

>>> import sys; sys.version
'3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]'
>>> pettingzoo.__version__
'1.24.3'

Additional context

Pinning the version to 0.1.19 works as a temporary fix but it would be nice to fix these.

Checklist

elliottower commented 3 months ago

Should be fixed in #1182