openai / maddpg

Code for the MADDPG algorithm from the paper "Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments"
https://arxiv.org/pdf/1706.02275.pdf
MIT License
1.66k stars 494 forks source link

TypeError: set_color() got multiple values for argument 'alpha' in Simple-Crypto #30

Open marwanihab opened 5 years ago

marwanihab commented 5 years ago

Running the train.py using the simple crypto scenario gives me this error, I have tried printing out the value of the alpha but all I got was only one value so how to solve this ?

`Traceback (most recent call last): File "train.py", line 193, in train(arglist) File "train.py", line 153, in train env.render() File "/Users/Maro31/bachelor/multiagent-particle-envs/multiagent/environment.py", line 235, in render geom.set_color(*entity.color, alpha=0.5) TypeError: set_color() got multiple values for argument 'alpha'```

EastVolcano commented 5 years ago

I got the same error too, but I have no solutions. Have you solve it?

Vetelus commented 3 years ago

Have you solve it?

dperr5910 commented 3 years ago

Looking for an answer to this as well.

yanwaiwai commented 2 years ago

大家有解决方案了吗

666github100 commented 2 years ago

I think the problem is the parameter setting of world.dim_c in simple_crypto.py.In this file,I tried changing the parameter of world.dim_c to 3, the program didn't report errors and the anmination demonstration effect is normal.

TairanHu487 commented 1 year ago

I changed multiagent-particle-envs/multiagent/environment.py,Line 234 to geom.set_color(entity.color[0],entity.color[1],entity.color[2],0.5),and it could run correctly.