Skip to content
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

audioread.NoBackendError when looping folder #91

Open
samisherif95 opened this issue Mar 10, 2019 · 4 comments
Open

audioread.NoBackendError when looping folder #91

samisherif95 opened this issue Mar 10, 2019 · 4 comments

Comments

@samisherif95
Copy link

samisherif95 commented Mar 10, 2019

So i have been trying to loop through a folder containing MP3 files and im using librosa in this loop to extract specific features from each mp3 file but each time i try to do that after looping through a few songs i get this error :

Traceback (most recent call last): File "/Users/samisherif/PycharmProjects/Test2/yarab.py", line 40, in <module> y, sr = librosa.load(songname, duration=15) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/librosa/core/audio.py", line 119, in load with audioread.audio_open(os.path.realpath(path)) as input_file: File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/audioread/__init__.py", line 116, in audio_open raise NoBackendError() audioread.NoBackendError

please i need help resolving this issue as soon as possible have been stuck on it for a while, Also im using MacOS if that makes a difference. Im also using Pycharm.

@sampsyo
Copy link
Member

sampsyo commented Mar 10, 2019

The first thing I might try is checking whether this happens on a specific file. It might not be supported by any of the backends you have.

@samisherif95
Copy link
Author

@sampsyo i tried just placing just one item in the folder still didnt work .............. i have a feeling its the looping that causes the problem. any other ideas ? Thank you for your time

@sampsyo
Copy link
Member

sampsyo commented Mar 10, 2019

No, sorry! To get help from other people, it's super-duper important to be able to narrow down the problem to something that can be reliably reproduced on someone else's machine. Good luck!

@littlePP24
Copy link

littlePP24 commented Mar 15, 2019

I encountered the same propblem in windows 10 ,first I install ffmpeg from pip,and then still get the same problem,but worked in linux. Then I downloan ffmpeg from this webside https://ffmpeg.zeranoe.com/builds/ unzip and add path to environment. run 'ffmpeg -version' in cmd. If it is ok. The problem will be solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants