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.

Broken pipe error but not because FFMPEG, in stead `permission denied`

See original GitHub issue

I have been working with MANIM quite some time now and it all worked well. I haven’t worked on it for about two weeks and all of the sudden (with no serious changes on either manim or computer) I run into an error when I try to compile a video.

I get the following:


PS C:\Users\steve\OneDrive\Documenten\Nerds\Manim\manim> py -m manim .\example_scenes.py SquareToCircle -pl
Media will be written to ./media\. You can change this behavior with the --media_dir flag.
Animation 0: ShowCreationSquare:   7%|########7
1/15 [00:00<00:02,  5.89it/s]C:\Users\steve\OneDrive\Documenten\Nerds\Manim\manim\media\videos\example_scenes\480p15\partial_movie_files\SquareToCircle\00000_temp.mp4: Permission denied

Traceback (most recent call last):
  File "C:\Users\steve\OneDrive\Documenten\Nerds\Manim\manim\manimlib\extract_scene.py", line 155, in main
    scene = SceneClass(**scene_kwargs)
  File "C:\Users\steve\OneDrive\Documenten\Nerds\Manim\manim\manimlib\scene\scene.py", line 53, in __init__
    self.construct()
  File ".\example_scenes.py", line 83, in construct
    self.play(ShowCreation(square))
  File "C:\Users\steve\OneDrive\Documenten\Nerds\Manim\manim\manimlib\scene\scene.py", line 406, in wrapper
    func(self, *args, **kwargs)
  File "C:\Users\steve\OneDrive\Documenten\Nerds\Manim\manim\manimlib\scene\scene.py", line 463, in play
    self.progress_through_animations(animations)
  File "C:\Users\steve\OneDrive\Documenten\Nerds\Manim\manim\manimlib\scene\scene.py", line 439, in progress_through_animations
    self.add_frames(self.get_frame())
  File "C:\Users\steve\OneDrive\Documenten\Nerds\Manim\manim\manimlib\scene\scene.py", line 543, in add_frames
    self.file_writer.write_frame(frame)
  File "C:\Users\steve\OneDrive\Documenten\Nerds\Manim\manim\manimlib\scene\scene_file_writer.py", line 186, in write_frame
    self.writing_process.stdin.write(frame.tostring())
BrokenPipeError: [Errno 32] Broken pipe

Now I have found other issues regarding the Broken Pipe issue, but as far as I can tell, this was always because of the FFMPEG codec. But in the above we find:

1/15 [00:00<00:02, 5.89it/s]C:\Users\steve\OneDrive\Documenten\Nerds\Manim\manim\media\videos\example_scenes\480p15\partial_movie_files\SquareToCircle\00000_temp.mp4: Permission denied

As if this map is unreachable. I already tried to change the MEDIA DIR, but same error occurs. Also, when I render an image, so use -ps, no error occurs at all.

Any thoughts?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
WilloughbySeagocommented, Dec 14, 2020

It was the antivirus, thanks for the encouragement, its fixed now

0reactions
kl43bcommented, Sep 16, 2021

I am having exactly the same issue but I am not sure I have any AV. I am on macOS Catalina. Any ideas?

Might be ransomware protection (on your OS I think the default protection is XProtect). You could try a project folder outside of your “home” folder. While this isn’t a permanent solution, if this works then at least manim’s install is probably okay.

In my experience, ransomware blocking has been less informative, but it’s getting better. A few weeks ago ffmpeg just died on me with no explanation; today I got an alert and was prompted to allow ffmpeg access to my protected folders (and now it works like it should).

edit: Also…apply updates for everything; something over the last few weeks may have fixed it for me today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python ffmpeg subprocess: Broken pipe - Stack Overflow
My problem is, that I don't get ffmpeg working with the subprocess module. I always get the error BrokenPipeError: [Errno 32] Broken pipe...
Read more >
FFMPEG permission denied trying to covert video - Ask Ubuntu
First, run the following commands to fix the file not found error: ; Next, it appears you don't have write permission on your...
Read more >
2013-May.txt - FFmpeg
That's exactly all the files just before ffmpeg itself! > > I know the error has to do with a library. However, I'm...
Read more >
ChangeLog.txt - Slackware
The package does not require any external dependencies to run. Note that on 32bit ... Packages were still for Slackware 11.x. libgpg-error: removed....
Read more >
Index of Networking & Security - Gentoo Forums
Page:1 · "[SOLVED] Apache 2.4 -deny access to IP's that are not banned" Page:1 ... "Broken Pipe on Air-Gapped (and Verifying Your Mirror)"...
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