starry-sky6688 / MADDPG

Pytorch implementation of the MARL algorithm, MADDPG, which correspondings to the paper "Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments".
516 stars 80 forks source link

action_shape.append(content.n) AttributeError: 'Box' object has no attribute 'n' #1

Closed azyslzp closed 3 years ago

azyslzp commented 4 years ago

Hi, when I first run the python main.py --scenario-name=simple_tag --evaluate-episodes=10, I met the problem as : action_shape.append(content.n) AttributeError: 'Box' object has no attribute 'n' Thanks a lot~

starry-sky6688 commented 3 years ago

Hi, I'm sorry that I also don't know why, this code can run successfully on my meachine.

'content.n' is the number of actions for one agent, maybe because of the version of the partical environment?

MISTCARRYYOU commented 3 years ago

This issue can be solved by uninstalling the current openai PE and install the new openai PE in starry's link.

MISTCARRYYOU commented 3 years ago

By the way, and the gym version should be controlled to gym==0.10.5

tekier commented 2 years ago

This issue can be solved by uninstalling the current openai PE and install the new openai PE in starry's link.

Hi, I am currently experiencing the same issue. What exactly is OpenAI PE and how can I find it? :-)

a2nath commented 1 month ago

Same issue on v0.26.2