openai / multiagent-particle-envs

Code for a multi-agent particle environment used in the paper "Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments"
https://arxiv.org/pdf/1706.02275.pdf
MIT License
2.4k stars 790 forks source link

AttributeError: 'NoneType' object has no attribute 'set_current' #110

Open Pegasus133 opened 3 weeks ago

Pegasus133 commented 3 weeks ago

Is there a following error when running python bin/interactive.py --scenario simple.py this command? Traceback (most recent call last): File "d:/python/MADDPG/multiagent-particle-envs-master/bin/interactive.py", line 36, in env.render() File "d:\python\MADDPG\multiagent-particle-envs-master\bin..\multiagent\environment.py", line 261, in render results.append(self.viewers[i].render(return_rgb_array = mode=='rgb_array')) File "d:\python\MADDPG\multiagent-particle-envs-master\bin..\multiagent\rendering.py", line 89, in render self.window.switch_to() File "D:\python\Anaconda3\envs\python36\lib\site-packages\pyglet\window\win32__init__.py", line 305, in switch_to self.context.set_current() AttributeError: 'NoneType' object has no attribute 'set_current'