Moviepy is a good library for editing videos on python. But it seems like there are few bugs with the library. One of them is associated with the audioclip.subclip method:
Name of Error: “AttributeError: ‘NoneType’ object has no attribute ‘stdout'”
To fix the error:
Solution 1: Upgrade the moviepy library to version 1.0.3
- Open terminal
- Type pip install moviepy –upgrade
Solution2: Update the source code of AudioFileClip.py
- Make sure you have moviepy version 1.0.1
- go to the moviepy directory:
cd /usr/local/lib/python3.7/dist-packages/moviepy/
- edit the AudioFileClip class at line 93
- comment these lines:
# def __del__(self):
# self.close()
Reference from: https://github.com/Zulko/moviepy/issues/938