-
Notifications
You must be signed in to change notification settings - Fork 90
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
LocalAudioFile function fails to load files #47
Comments
I have the same problem. |
Make sure you have ffmpeg installed and en-ffmpeg points to your ffmpeg installation. I think this is the error you're supposed to see: That OSError is thrown when the subprocess module tries to execute a command without a shell, but the command isn't found. You can test it like this:
The stack trace shows an error at line 88 of echonest/remix/support/ffmpeg.py, after it called subprocess.Popen with shell=False to execute the ffmpeg command. So that explains why we just got the OSError and not the more helpful message. If you change shell to True in your local ffmpeg.py you should see the real error. The ffmpeg.py file has logic to handle different error messages thrown by the ffmpeg process, which is strange since it doesn't seem it would ever make it there. If you look at the blame on Github, the change from shell=True to shell=False was made in September 2014, a couple of years after the logic to handle the different ffmpeg errors was added. So this has probably been happening since the change to shell= It sounds like using shell=False is the way to go. So we could leave that but show the intended error message by doing something like this in ffmpeg.py:
|
…mpeg test. This closes echonest#47
…mpeg test. This closes echonest#47
…not found and fix ffmpeg test
When I add or use the LocalAudioFile("") function, and pass the file path parameter to the function, the following error is produced. Regardless of the file or the path, the error is always reproduced. This is the case on both Linux and Mac computers. Regardless of .wav or .mp3 files, the same error keeps popping up.
The text was updated successfully, but these errors were encountered: