0

I have to develop an Alexa Skill that use Pydub for edit mp3 file.

Pydub requires ffmpeg and so I have add it in requirements.txt but now, when I try to run my skill, it give me "Sorry, I had trouble doing what you asked. Please try again.".

In CloudWatch the error is: [Errno 2] No such file or directory: 'ffprobe': 'ffprobe' but in requirements.txt there is the ffprobe import.

NB: In local the code runs successfully without any errors

Screenshot: Error in CloudWatch

  • `No such file or directory` is not an import error; it sounds like it's trying to do a regular `open()` on that filename. – John Gordon Jan 15 '20 at 17:40
  • Can also get that from an attempt to start an executable, if no program by that name exists. Which sounds like the problem here -- importing a `ffprobe` Python module won't install a `ffprobe` executable; the Python module is just a wrapper, you need to have the executable separately installed for it to work. – Charles Duffy Jan 15 '20 at 18:29
  • Does this answer your question? [How to Install ffmpeg on aws lambda machine?](https://stackoverflow.com/questions/47044448/how-to-install-ffmpeg-on-aws-lambda-machine) – rivamarco Jan 16 '20 at 10:40

1 Answers1

0

I had once a problem with ffprobe (No such file or directory), but when recording an animation using matplotlib. I solved it just by installing ffprobe and adding it to "path" in environment variables (on Windows). Maybe it could work for you.

M1RA1
  • 1
  • 3