添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

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

Whenever I try to load any audiofile with librosa I get the following error:

Python 3.4.3 (default, Nov 17 2016, 01:08:31)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.

import librosa
filename = librosa.util.example_audio_file()
librosa.load(filename)
Traceback (most recent call last):
File "", line 1, in
File "/mnt/c/Dev/MegsAnalysis/flask/lib/python3.4/site-packages/librosa/core/audio.py", line 149, in load
y.append(frame)
File "/mnt/c/Dev/MegsAnalysis/flask/lib/python3.4/site-packages/audioread/ffdec.py", line 252, in exit
self.close()
File "/mnt/c/Dev/MegsAnalysis/flask/lib/python3.4/site-packages/audioread/ffdec.py", line 237, in close
self.proc.kill()
File "/usr/lib/python3.4/subprocess.py", line 1691, in kill
self.send_signal(signal.SIGKILL)
File "/usr/lib/python3.4/subprocess.py", line 1681, in send_signal
os.kill(self.pid, sig)
ProcessLookupError: [Errno 3] No such process

I have ffmpeg which I have verified works and all other dependencies installed. I am at a total loss of how to resolve this any could use any and all help

yeah this error also happens when I try to close it

Python 3.4.3 (default, Nov 17 2016, 01:08:31)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.

import audioread
obj = audioread.audio_open("test.wav")
obj.close()
Traceback (most recent call last):
File "", line 1, in
File "/mnt/c/Dev/MegsAnalysis/flask/lib/python3.4/site-packages/audioread/ffdec.py", line 237, in close
self.proc.kill()
File "/usr/lib/python3.4/subprocess.py", line 1691, in kill
self.send_signal(signal.SIGKILL)
File "/usr/lib/python3.4/subprocess.py", line 1681, in send_signal
os.kill(self.pid, sig)
ProcessLookupError: [Errno 3] No such process

wontfix Issues that we don't want to deal with: out of scope, intended behavior, deprecations, etc. labels Mar 26, 2017

@chausies yes: libsndfile does not support mp3 (though there's an open PR now), and that's a deal-breaker for many librosa users.

When libsndfile does get mp3 support, we'll revisit the load implementation and see if it makes sense to swap out the dependencies.

This issue is officially fixed for audioread on Windows Subsystem for Linux as of today:
beetbox/audioread#51

It may be a bit before the pypi version is updated though.