Super-mario-bros-A3C-pytorch icon indicating copy to clipboard operation
Super-mario-bros-A3C-pytorch copied to clipboard

env.py :AttributeError: 'Monitor' object has no attribute 'pipe'??Pls

Open ctywny opened this issue 5 years ago • 6 comments

ctywny avatar Feb 18 '20 07:02 ctywny

line26: def record(self, image_array): self.pipe.stdin.write(image_array.tostring())

ctywny avatar Feb 18 '20 07:02 ctywny

Perhaps because that the "ffmpeg" is not installed

jokerlegends avatar Mar 31 '20 12:03 jokerlegends

Perhaps because that the "ffmpeg" is not installed

how to install FFmpeg ?

EhsanMohd avatar May 03 '20 16:05 EhsanMohd

try "pip install ffmpeg" , if it doesn't work and you just wanna test things out replace line 53 in env.py with "pass" , you would still be able to see the rendered environment from gym. plus if it's too fast try adding a delay right after "env.render()" in test.py

Christopher-Lucas-Prime avatar May 06 '20 23:05 Christopher-Lucas-Prime

Hello, I followed your instructions above, but still did not solve the previous problem. Is that why?

qiaoxianfeng avatar Aug 14 '20 06:08 qiaoxianfeng

Go here download ffmpeg build and then add the \bin path to environment variable. @qiaoxianfeng

ZhaoQianfeng avatar Jan 27 '21 07:01 ZhaoQianfeng