audioread icon indicating copy to clipboard operation
audioread copied to clipboard

audioread.exceptions.NoBackendError

Open kevinniland opened this issue 6 years ago • 3 comments

Getting the above error when attempting to run a script. The script in question is from the project https://github.com/thomas-bouvier/music-genre-recognition. When attempting to train the model by running main.py, I get the following traceback: Traceback (most recent call last): File "main.py", line 409, in <module> main(args) File "main.py", line 80, in main data_x, data_y = load_data(args.debug) File "main.py", line 333, in load_data signal, sr = librosa.load(path + "/" + subdir + "/" + file) File "C:\Users\kevin\AnacondaPython\Lib\site-packages\librosa\core\audio.py", line 119, in load with audioread.audio_open(os.path.realpath(path)) as input_file: File "C:\Users\kevin\AnacondaPython\Lib\site-packages\audioread\__init__.py", line 116, in audio_open raise NoBackendError() audioread.exceptions.NoBackendError

I have installed ffmpeg, as others have suggested from what I've seen online but I still get the aforementioned error. I am using Windows 10.

kevinniland avatar Nov 03 '19 16:11 kevinniland

Sorry; there’s not much we can do to help without more details about exactly what’s going on with the invocation of this library and about your system setup. You might want to consider making sure that ffmpeg is available on the command line (i.e., your PATH environment variable includes the location where it lives).

sampsyo avatar Nov 03 '19 16:11 sampsyo

ffmpeg is available on the command line, I've already checked that.

kevinniland avatar Nov 03 '19 16:11 kevinniland

ffmpeg is available on the command line, I've already checked that.

Did you remember the solution i am getting same error now. I am using python 3.9 and ffmpeg is available

bum-bum-pav avatar Feb 20 '24 09:02 bum-bum-pav