question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BrokenPipeError: [Errno 32] Broken pipe

See original GitHub issue

When i run python3 -m manim example_scenes.py SquareToCircle -pl

this is what i get Animation 0: ShowCreationSquare: 0%| | 0/15 [00:00<?, ?it/s]/home/pacchu/_temp.local/share/Trash/files/manim/media/videos/example_scenes/480p15/partial_movie_files/SquareToCircle/00000_temp.mp4: No such file or directory

Traceback (most recent call last): File “/home/pacchu/.local/share/Trash/files/manim/manimlib/extract_scene.py”, line 153, in main scene = SceneClass(**scene_kwargs) File “/home/pacchu/.local/share/Trash/files/manim/manimlib/scene/scene.py”, line 54, in init self.construct() File “example_scenes.py”, line 81, in construct self.play(ShowCreation(square)) File “/home/pacchu/.local/share/Trash/files/manim/manimlib/scene/scene.py”, line 449, in wrapper func(self, *args, **kwargs) File “/home/pacchu/.local/share/Trash/files/manim/manimlib/scene/scene.py”, line 484, in play self.add_frames(self.get_frame()) File “/home/pacchu/.local/share/Trash/files/manim/manimlib/scene/scene.py”, line 570, in add_frames self.file_writer.write_frame(frame) File “/home/pacchu/.local/share/Trash/files/manim/manimlib/scene/scene_file_writer.py”, line 171, in write_frame self.writing_process.stdin.write(frame.tostring()) BrokenPipeError: [Errno 32] Broken pipe

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:14

github_iconTop GitHub Comments

20reactions
wknowleskellettcommented, Dec 3, 2019

Above that, does it say Unknown encoder 'libx264'?

My guess is that when you run ffmpeg -codecs 2> /dev/null | grep -e 264 that none of the lines contain ‘libx264’, but that there is still output. Basically, I got this problem because ffmpeg (used by manim) would fail to generate the video as requested and close, causing your broken pipe.

I see two possible solutions -

  1. For individuals with this problem: If my above command produced output for you which included the name of a codec (i.e. ‘h264’, change line 246 in ./manim/manimlib/scene/scene_file_writer.py from '-vcodec', 'libx264' to '-vcodec', 'the_codec_name_you_found'. This solved the problem for me (I used ‘h264’)
  2. For the overall repository, maybe we change the installation requirements somehow to make sure you have libx264 installed. This, or if it turns out everyone should have one called h264, the master could be updated to use h264.
7reactions
amilapsncommented, Mar 28, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to prevent errno 32 broken pipe? - python - Stack Overflow
The broken pipe error usually occurs if your request is blocked or takes too long and after request-side timeout, it'll close the connection...
Read more >
“[Errno 32] Broken pipe” in Python - LinuxPip
"Broken pipe" is essentially an IOError error (short for input/output error), which happened at the Linux system level. It usually occurs when ...
Read more >
Broken Pipe Error in Python - GeeksforGeeks
A broken Pipe Error is generally an Input/Output Error, which is occurred at the Linux System level. The error has occurred during the ......
Read more >
RAM overload crashing with "BrokenPipeError: [Errno 32 ...
Hi, Running detection with cellfinder_core and the process is being killed after ~250-300 planes. The input is a dask array (z: 4200, ...
Read more >
Broken Pipe Error in Python - Javatpoint
What causes "[Errno 32] Broken pipe" in Python? ... "Broken pipe" is usually considered an IOError (short for Input/Output Error) error, which occurred...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found