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

examples\mappo\mappo_simple_spread.py运行报错 #41

Open
nessessary opened this issue Jun 9, 2024 · 0 comments
Open

examples\mappo\mappo_simple_spread.py运行报错 #41

nessessary opened this issue Jun 9, 2024 · 0 comments

Comments

@nessessary
Copy link

nessessary commented Jun 9, 2024

git show
Date: Sat Jun 8 23:49:32 2024 +0800
用pip install -e .安装后, 执行mappo_simple_spread.py报错如下
Traceback (most recent call last):
File "I:\workc\MyWorkSource\wk\study\xuance\examples\mappo\mappo_simple_spread.py", line 289, in
runner = Runner(args)
File "I:\workc\MyWorkSource\wk\study\xuance\examples\mappo\mappo_simple_spread.py", line 72, in init
self.agent_keys = self.args.agent_keys = self.envs.agent_keys[0]
AttributeError: 'DummyVecMultiAgentEnv' object has no attribute 'agent_keys'
查看DummyVecMultiAgentEnv源码没有agent_keys相关, 本人小白, 想学习mappo, 希望作者帮忙解决一下。
用pip install xuance安装后跑文档里的快速开始例子没有问题
import xuance
runner = xuance.get_runner(method='mappo',
env='mpe',
env_id='simple_spread_v3',
is_test=True)
runner.run()
里面用的vectorize='Dummy_Pettingzoo'; 不知和DummyVecMultiAgentEnv有什么区别?

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

1 participant