Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken dependency on pettingzoo #44

Open
Shmuma opened this issue Sep 8, 2024 · 2 comments
Open

Broken dependency on pettingzoo #44

Shmuma opened this issue Sep 8, 2024 · 2 comments

Comments

@Shmuma
Copy link

Shmuma commented Sep 8, 2024

Hi!

Version 0.3.3 depends on pettingzoo >= 1.23.1, but all the versions of pettingzoo above 1.22 are not compatible with MAgent2 environment creation and cause this: #31

To fix, you need to forcefully install the pettingzoo 1.22.3

@Shmuma Shmuma changed the title Wrong dependency on pettingzoo Broken dependency on pettingzoo Sep 8, 2024
@atstarke
Copy link
Collaborator

We just merged a fix. Please download again and let me know if your issue is resolved. Thanks!

@CengizHenk
Copy link

CengizHenk commented Nov 2, 2024

Hi.

This Problem does still exist.
(Python 3.12.4 via pyenv on a apple sillicon M1)

I tried pettingzoo 1.23.0, 1.23.1 and 1.24.3.
None of them is compatible and I get the following error:

pettingzoo/utils/conversions.py", line 284, in reset
    self._observations, self.infos = self.env.reset(seed=seed, options=options)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: too many values to unpack (expected 2)

when I try to execute "env.reset()" in

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)

Would be grateful for help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants