DCASE-REPO / dcase2018_baseline

DCASE 2018 Baseline systems
MIT License
128 stars 78 forks source link

[Task 5] OSError: sndfile library not found #25

Closed eshalev4 closed 5 years ago

eshalev4 commented 5 years ago

I have freshly installed ubuntu bash on windows 10. I have installed all the requirements using pip. upon typing python task5.py I am getting the following error:

Traceback (most recent call last): File "task5.py", line 11, in import dcase_util File "/home/erezsh/.local/lib/python2.7/site-packages/dcase_util/init.py", line 6, in from . import containers File "/home/erezsh/.local/lib/python2.7/site-packages/dcase_util/containers/init.py", line 953, in from .audio import * File "/home/erezsh/.local/lib/python2.7/site-packages/dcase_util/containers/audio.py", line 8, in import soundfile File "/home/erezsh/.local/lib/python2.7/site-packages/soundfile.py", line 142, in raise OSError('sndfile library not found') OSError: sndfile library not found

What am I missing?

eshalev4 commented 5 years ago

Solved by installing with sudo apt-get install libsndfile1 maybe it should be added to the requierments of dcase_util?

toni-heittola commented 5 years ago

Note about this has been now added to the documentation of the dcase_util > https://dcase-repo.github.io/dcase_util/installation.html