beetbox / audioread

cross-library (GStreamer + Core Audio + MAD + FFmpeg) audio decoding for Python
MIT License
481 stars 108 forks source link

audioread.exceptions.NoBackendError #99

Open kevinniland opened 4 years ago

kevinniland commented 4 years ago

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.

sampsyo commented 4 years ago

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).

kevinniland commented 4 years ago

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

bum-bum-pav commented 4 months ago

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