maddpg icon indicating copy to clipboard operation
maddpg copied to clipboard

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

Open marwanihab opened this issue 6 years ago • 6 comments

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'```

marwanihab avatar Apr 08 '19 18:04 marwanihab

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

EastVolcano avatar Sep 05 '19 13:09 EastVolcano

Have you solve it?

Vetelus avatar Jan 29 '21 07:01 Vetelus

Looking for an answer to this as well.

dperr5910 avatar Aug 02 '21 14:08 dperr5910

大家有解决方案了吗

yanwaiwai avatar Jun 08 '22 07:06 yanwaiwai

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.

666github100 avatar Nov 14 '22 09:11 666github100

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.

TairanHu487 avatar Jun 24 '23 13:06 TairanHu487