0

Creating an app to download audio/video from youtube and I want it to be an executable. Everything works fine running the python version, but when I create an .exe file I get this error:

  File "C:\...\interpreter\lib\site-packages\moviepy\audio\io\ffmpeg_audiowriter.py", line 74, in write_frames
    self.proc.stdin.write(frames_array.tobytes())
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

  ...

  File "C:\...\download music\py file\downloading.py", line 22, in download
    mp4_file.write_audiofile(settings.path + filename + ".mp3", logger=None)
  File "<decorator-gen-45>", line 2, in write_audiofile
  File "C:\...\interpreter\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
    return f(clip, *a, **k)
  File "C:\...\interpreter\lib\site-packages\moviepy\audio\AudioClip.py", line 206, in write_audiofile
    return ffmpeg_audiowrite(self, filename, fps, nbytes, buffersize,
  File "<decorator-gen-9>", line 2, in ffmpeg_audiowrite
  File "C:\...\interpreter\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
    return f(clip, *a, **k)
  File "C:\...\interpreter\lib\site-packages\moviepy\audio\io\ffmpeg_audiowriter.py", line 170, in ffmpeg_audiowrite
    writer.write_frames(chunk)
  File "C:\...\interpreter\lib\site-packages\moviepy\audio\io\ffmpeg_audiowriter.py", line 117, in write_frames
    raise IOError(error)
OSError: [Errno 32] Broken pipe

Any help would be appreciated

It should've converted the file from mp4 to mp3.

UnRealPro
  • 13
  • 1

0 Answers0