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

NoBackendError #9

Open
xiaoyongzhu opened this issue Aug 3, 2017 · 8 comments
Open

NoBackendError #9

xiaoyongzhu opened this issue Aug 3, 2017 · 8 comments

Comments

@xiaoyongzhu
Copy link

Just want to raise this issue in case someone also encountered this (and share my solution). I will get this no backend error:

Traceback (most recent call last):
  File "CNNClassifier.py", line 54, in <module>
    features,labels = extract_features(parent_dir,sub_dirs)
  File "CNNClassifier.py", line 25, in extract_features
    sound_clip,s = librosa.load(fn)
  File "/datadrive/xiaoyzhu/python2env/local/lib/python2.7/site-packages/librosa/core/audio.py", line 107, in load
    with audioread.audio_open(os.path.realpath(path)) as input_file:
  File "/datadrive/xiaoyzhu/python2env/local/lib/python2.7/site-packages/audioread/__init__.py", line 116, in audio_open
    raise NoBackendError()

In Ubuntu, I use
sudo apt-get install libav-tools

and this issue get solved.

@aqibsaeed
Copy link
Owner

Thank you. For the time being, I am leaving this issue opened.

@ahsan4415
Copy link

How solve this issue in window using anaconda??

@ahsan4415
Copy link

the error invalid literal for int() with base 10 in following line how can i fix it??
return np.array(features), np.array(labels,dtype = np.int)

@munirKarsli
Copy link

the error invalid literal for int() with base 10 in following line how can i fix it??
return np.array(features), np.array(labels,dtype = np.int)

i have same problem. Did anyone fix it?

@samisherif95
Copy link

is there anyway to fix this problem if you are working on a Mac using pycharm ??/ need help asap please.

@munirKarsli
Copy link

i didn't find anyway to fix this problem. I write new code for audio-classification. if you want you can look my github repo

@playma
Copy link

playma commented Mar 19, 2019

Just remove all .DS_store file in the data directory

@souzapaulino
Copy link

When I run, this error came up:

ValueError: Cannot feed value of shape (0, 0) for Tensor 'Placeholder_1:0', which has shape '(?, 10)'

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

7 participants