Skip to content

Instantly share code, notes, and snippets.

@netskink
Last active July 16, 2018 14:55
Show Gist options
  • Save netskink/aa7fcf935fdfd522bd34aa458fc03904 to your computer and use it in GitHub Desktop.
Save netskink/aa7fcf935fdfd522bd34aa458fc03904 to your computer and use it in GitHub Desktop.
eror with librosa
Downloading and Extracting Packages
audioread-2.1.5 | 28 KB | ####################################### | 100%
certifi-2018.4.16 | 142 KB | ####################################### | 100%
librosa-0.6.1 | 1.5 MB | ####################################### | 100%
libiconv-1.15 | 2.0 MB | ####################################### | 100%
conda-4.5.8 | 624 KB | ####################################### | 100%
resampy-0.2.1 | 330 KB | ####################################### | 100%
x264-20180712 | 5.0 MB | ####################################### | 100%
ffmpeg-2.8.6 | 55.2 MB | ####################################### | 100%
joblib-0.12 | 167 KB | ####################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
OSError Traceback (most recent call last)
<ipython-input-35-8766f92dd9ae> in <module>()
----> 1 data, sampling_rate = librosa.load('/tmp/100795.mp3')
~/anaconda3/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type)
110
111 y = []
--> 112 with audioread.audio_open(os.path.realpath(path)) as input_file:
113 sr_native = input_file.samplerate
114 n_channels = input_file.channels
~/anaconda3/lib/python3.6/site-packages/audioread/__init__.py in audio_open(path)
109 from . import ffdec
110 try:
--> 111 return ffdec.FFmpegAudioFile(path)
112 except DecodeError:
113 pass
~/anaconda3/lib/python3.6/site-packages/audioread/ffdec.py in __init__(self, filename, block_size)
148
149 # Read relevant information from stderr.
--> 150 self._get_info()
151
152 # Start a separate thread to read the rest of the data from
~/anaconda3/lib/python3.6/site-packages/audioread/ffdec.py in _get_info(self)
204
205 if 'no such file' in line:
--> 206 raise IOError('file not found')
207 elif 'invalid data found' in line:
208 raise UnsupportedError()
OSError: file not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment