Report this

What is the reason for this report?

Unexpected error: No such file or directory: 'ffprobe', while using pydub in Digital Ocean

Posted on May 12, 2025

I have an app that processes audio files and converts them to ‘wav’ format. This works locally on my Mac, however in DigitalOcean, when recording audio, i get the below error, followed by a 500:

warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning) Unexpected error: [Errno 2] No such file or directory: 'ffprobe'

Not sure why this error arises because pydub works correctly when I run the application locally



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey there,

That error means ffprobe isn’t installed on your DigitalOcean server.

It works locally because your Mac has it by default, but for Droplets, you’ll need to install it manually.

Just SSH into your Droplet and run:

sudo apt update && sudo apt install ffmpeg -y

That’ll install both ffmpeg and ffprobe, and your pydub audio processing should work just like it does locally.

Let me know if you’re still getting errors after that!

- Bobby

Heya,

The error you’re seeing on your DigitalOcean server:

Unexpected error: [Errno 2] No such file or directory: 'ffprobe'

means that the pydub library is trying to use ffprobe to process audio files, but ffprobe (a tool that comes with ffmpeg) is not installed on your DigitalOcean server.

Run the following commands on your droplet:

sudo apt update
sudo apt install ffmpeg -y

This will install both ffmpeg and ffprobe, and pydub will then be able to use them.

Heya, @c19cee53301743a5b5a88333eb1e2e

ffprobe is not installed on your DigitalOcean droplet. You can install it with apt :

sudo apt update && sudo apt install ffmpeg -y

You can also avoid system-level dependencies entirely by switching to pure Python audio processing libraries if your use case isn’t too complex.

For example, libraries like wave, soundfile (via pysoundfile), or audioread can handle many audio format conversions without requiring ffmpeg or ffprobe.

Regards

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.