-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ffdec: Dynamic linker errors are misreported as "file not found" errors #60
Comments
Hi! This error is telling you that the MP3 file you passed in couldn’t be found on the filesystem. Can you check whether the file actually exists? If so, is there a way you can help us reproduce the problem? |
My repo is here: https://github.com/ShaeBrown/csc475/tree/deploy path = os.path.join(app.config['UPLOAD_FOLDER'], filename)
print(path)
print(os.path.isfile(path))
song, sr = librosa.core.load(path) os.path.isfile(path) prints as true so I'm sure the file is there. line = self.proc.stderr.readline()
...
...
if 'no such file' in line:
raise IOError('file not found') It only happens with mp3 files and not wav files. |
Huh! I'm not sure how to reproduce the problem if it only happens on Heroku. Maybe it can be attributed to a difference in ffmpeg versions? Please update this thread if there's anything I can do to look into it. |
Thanks, I'll try and do some more investigation.
The same issue seemed to appear here on stackoverflow. |
Strange! If there's some way to reproduce it in an environment you can control, one way to diagnose the problem might be to print out FFmpeg's output (i.e., the value of Maybe this is some weird effect of Heroku's filesystem sandboxing? |
The output of line is:
Seems that it is an issue with ffmpeg and the filesystem. Edit: |
Great; thank you for investigating! It looks like there's still something we can improve, however: we could help diagnose this by distinguishing between a case where the audio file isn't found and one of these dynamic linking errors. I'll keep the ticket open regarding that. |
fwiw, I ran in to this problem as well. It was very confusing. I thought I had a permission error, or something wrong with my path. |
Same issue here |
When reading mp3 files I get the following output:
I have the following packages:
ffmpeg is installed
The text was updated successfully, but these errors were encountered: