NotImplementedError: Cannot load filter definition for kaiser_best

512 views
Skip to first unread message

Justin Wilson

unread,
Jun 3, 2018, 1:06:57 PM6/3/18
to librosa
Hi. Thanks for your time helping me on this one. Running with tensorflow 1.3.0, librosa 0.5.1, and python 2.7. I'm trying to run train.py for a WaveNet implementation. 

I get a NotImplementedError as below. More details on my errors at https://github.com/ibab/tensorflow-wavenet/issues/344

step 5816 - loss = 1.737, (1.248 sec/step)
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/playpen/wilson/tensorflow-wavenet/wavenet/audio_reader.py", line 163, in thread_main
    for audio, filename, category_id in iterator:
  File "/playpen/wilson/tensorflow-wavenet/wavenet/audio_reader.py", line 60, in load_generic_audio
    audio, _ = librosa.load(filename, sr=sample_rate, mono=True)
  File "/home/wilson/.local/lib/python2.7/site-packages/librosa/core/audio.py", line 155, in load
  File "/home/wilson/.local/lib/python2.7/site-packages/librosa/core/audio.py", line 281, in resample
  File "/home/wilson/.local/lib/python2.7/site-packages/resampy/core.py", line 102, in resample
  File "/home/wilson/.local/lib/python2.7/site-packages/resampy/filters.py", line 167, in get_filter
NotImplementedError: Cannot load filter definition for kaiser_best

Brian McFee

unread,
Jun 3, 2018, 3:11:30 PM6/3/18
to librosa
This looks like resampy was not properly installed -- the error is coming from a failure to load the pre-computed filter coefficients, which are shipped as data files in the resampy package.

How did you install resampy? (And which version?)

Justin Wilson

unread,
Jun 3, 2018, 3:56:53 PM6/3/18
to librosa
Hi Brian! Thanks for your help. I suppose that I installed with librosa (pip install librosa)

>>> librosa.show_versions()
INSTALLED VERSIONS
------------------
python: 2.7.12 (default, Dec  4 2017, 14:50:18)
[GCC 5.4.0 20160609]

librosa: 0.5.1

audioread: 2.1.5
numpy: 1.14.2
scipy: 1.0.1
scikit-learn: None
joblib: 0.11
decorator: 4.0.6
six: 1.11.0
resampy: 0.2.0

numpydoc: None
sphinx: None
sphinx_rtd_theme: None
sphinxcontrib-versioning: None
matplotlib: 1.5.1
numba: 0.35.0

Brian McFee

unread,
Jun 8, 2018, 9:47:51 AM6/8/18
to librosa
Does the problem persist if you reinstall resampy?

Side note: there was a minor revision released this week, so you might want to upgrade anyway.
Reply all
Reply to author
Forward
0 new messages