ffelten / MASAC

Jax and Torch Multi-Agent SAC on PettingZoo API
MIT License
64 stars 6 forks source link

ImportError: cannot import name 'AgentID' from 'pettingzoo.utils.env' & cannot import simple_spread_v3 from pettingzoo.mpe #3

Closed lhw0719 closed 1 week ago

lhw0719 commented 1 week ago

Hello, your code is amazing, but i still encounter a few bugs. As you said in README.md, your code is is based on the SAC implementation from cleanRL repo, so i create the same virtual environment as cleanRL v1.0.0, but i still encounter the two bugs above. Can you please give me the detailed requirements.txt for that code to help me fix these bugs? My current requirements.txt (which is the same as cleanRL v1.0.0) is in the attached file. My python version is 3.8.20, pettingzoo version is 1.18.1. Looking forward to your reply. Thank you. requirements.txt

ffelten commented 1 week ago

Hey,

Thank you for the kind words.

I haven't really played with this for over a year now. But if I remember well, the poetry.lock file contains what you're looking for :)

lhw0719 commented 1 week ago

Thank you very much for your answer. I realised that this was a stupid question because I didn't read the README.md carefully.I didn't know about the tool poetry before and had been using pip and conda for the installation of the virtual environment, which led to the error. Now the code is working fine.