Reading in pydub AudioSegment from url. BytesIO returning “OSError [Errno 2] No such file or directory” on heroku only; fine on localhost
EDIT 1 for anyone with the same error: installing ffmpeg did indeed solve that BytesIO error EDIT 1 for anyone still willing to help: my problem is now that when I AudioSegment.export("filename.mp3", format="mp3"), the file is made, but has size 0 bytes -- details below (as "EDIT 1") EDIT 2: All problems now solved. Files can be read in as AudioSegment using BytesIO I found buildpacks to ensure ffmpeg was installed correctly on my app, with lame support for exporting proper mp3 files Answer below Original question I have pydub working nicely locally to crop a particular mp3 file based on