Gym: BrokenPipeError [Errno 32] Broken pipe----help help me

Created on 2 Feb 2018  路  4Comments  路  Source: openai/gym

anaconda:3.4.2
python: 3.5
OS: slse 12.3

this error from "gym/wrappers/monitoring/vider_recorder.py"
self.proc.stdin.write(frame.tobytes())

what can i do,thx

Most helpful comment

I fixed the problem by installing avconv/libav. I'm running OSX though and installed it with brew install libav

In the video recorder there is a section that says

if distutils.spawn.find_executable('avconv') is not None:
    self.backend = 'avconv'
elif distutils.spawn.find_executable('ffmpeg') is not None:
    self.backend = 'ffmpeg'

All 4 comments

I have the same problem.

I found out the reason for my case: I used get_image implementation from #841, and gl.glReadPixels doesn't seem to like it when width or height argument is an odd number. So I manually added:
width = 1024 height = 1024
This solves my problem for now, unless I run into something else later.

I fixed the problem by installing avconv/libav. I'm running OSX though and installed it with brew install libav

In the video recorder there is a section that says

if distutils.spawn.find_executable('avconv') is not None:
    self.backend = 'avconv'
elif distutils.spawn.find_executable('ffmpeg') is not None:
    self.backend = 'ffmpeg'

finally i use ubuntu

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cpatyn picture cpatyn  路  4Comments

Gawne picture Gawne  路  4Comments

david8373 picture david8373  路  4Comments

tylerlekang picture tylerlekang  路  3Comments

julian-ramos picture julian-ramos  路  4Comments