carrierwave-audio icon indicating copy to clipboard operation
carrierwave-audio copied to clipboard

Sox::Error (no such file)

Open rosshatokay opened this issue 7 years ago • 5 comments

Upon trying to process a conversion:

include CarrierWave::Audio process :convert => [{output_format: :mp3}]

Rails logs this error

Sox::Error (No such file or directory - sox --type mp3...

How can I resolve this?

rosshatokay avatar May 15 '17 15:05 rosshatokay

That seems like Sox is not installed. Have you installed Sox on your OS?

TrevorHinesley avatar May 15 '17 16:05 TrevorHinesley

Hey, thanks for replying. I'll install it right now, but will this work in a production environment?

rosshatokay avatar May 15 '17 17:05 rosshatokay

Yes you'll need to install it on your production machine. If you're using Heroku, they don't allow you to install other packages I don't think.

TrevorHinesley avatar May 15 '17 17:05 TrevorHinesley

I'm assuming that I'd have to use a custom heroku buildpack?,

if this is at all the optimal way of going through audio conversions, or are there any other libraries for that?

rosshatokay avatar May 15 '17 17:05 rosshatokay

Sorry for the late reply! Don't remember getting notified. Most likely you'll need a buildpack yes. And yes this is pretty standard, we've been using this in production for more than two years.

TrevorHinesley avatar Aug 05 '18 18:08 TrevorHinesley