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

hello, happen error: raise NoBackendError() #2

Open
qqingdou opened this issue Apr 3, 2017 · 8 comments
Open

hello, happen error: raise NoBackendError() #2

qqingdou opened this issue Apr 3, 2017 · 8 comments

Comments

@qqingdou
Copy link

qqingdou commented Apr 3, 2017

when i run the train_set.py, the error happen bellow:
data, sample_rate = file_reader.read_audio_file() File "/usr/lib/python2.7/site-packages/baby_cry_detection-1.0-py2.7.egg/pc_methods/__init__.py", line 35, in read_audio_file audio_data, sr = librosa.load(self.file_name, sr=44100, mono=True, duration=5) File "/usr/lib/python2.7/site-packages/librosa-0.5.0-py2.7.egg/librosa/core/audio.py", line 107, in load with audioread.audio_open(os.path.realpath(path)) as input_file: File "/usr/lib/python2.7/site-packages/audioread/__init__.py", line 115, in audio_open raise NoBackendError() audioread.NoBackendError

@giulbia
Copy link
Owner

giulbia commented Apr 3, 2017

Hi,

If I rember correctly, I had the same error once at reading files. The problem was a hidden file (.DS_store, l'équivalent Mac OS X du Thumbs.db on Windows) in the folder where I was attempting to read audio files. Removing it should solve the problem.

@qqingdou
Copy link
Author

qqingdou commented Apr 3, 2017

Hi, I am not find this file named .DS_store on Linux System..

@giulbia
Copy link
Owner

giulbia commented Apr 3, 2017

With ls -la you can find out if there's anything that is not an audio file in the folder and remove it.

@qqingdou
Copy link
Author

qqingdou commented Apr 4, 2017

i used ls -la command to search file in the folder, there is nothing except ogg files list.
it may be other error, let me try again and solve it, thanks

@qqingdou
Copy link
Author

qqingdou commented Apr 7, 2017

Hi, i have resolved the error "audioread.NoBackendError", but another error happen bellow:
Traceback (most recent call last):
File "train_set.py", line 83, in
main()
File "train_set.py", line 63, in main
avg_features = feature_engineer.feature_engineer(audio_data=data)
File "/usr/lib/python2.7/site-packages/baby_cry_detection-1.0-py2.7.egg/pc_methods/feature_engineer.py", line 112, in feature_engineer
), axis=0)
ValueError: all the input array dimensions except for the concatenation axis must match exactly

@giulbia
Copy link
Owner

giulbia commented Apr 8, 2017

So what was the problem for the first error ?

Which commit have you downloaded? I've made modifications, I can't say what's wrong like that.

@qqingdou
Copy link
Author

qqingdou commented Apr 8, 2017

I have installed ffmpeg, So the first error "audioread.NoBackendError" disappeared.

When i run “python train_set.py" again, the error happened below:
ValueError: all the input array dimensions except for the concatenation axis must match exactly

@giulbia
Copy link
Owner

giulbia commented May 9, 2017

I think is the same issue someone else is having. Which commit have you cloned ?

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

2 participants