Closed johannesmols closed 2 years ago
Thanks! Could you please elaborate on what kind of librosa functions are not working with recent librosa versions?
Thanks! Could you please elaborate on what kind of librosa functions are not working with recent librosa versions?
The same problem is reproduced in my environment.
The error says AttributeError: module 'librosa' has no attribute 'output'
.
...
'LibriSpeech/train-clean-360/2628', 'LibriSpeech/train-clean-360/3972']
/home/ec2-user/voicefilter/utils/hparams.py:18: YAMLLoadWarning: calling yaml.load_all() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
for doc in docs:
0%| | 0/100000 [00:00<?, ?it/s]
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/lib64/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "generator.py", line 144, in train_wrapper
mix(hp, args, audio, num, s1_dvec, s1_target, s2, train=True)
File "generator.py", line 65, in mix
librosa.output.write_wav(target_wav_path, w1, srate)
AttributeError: module 'librosa' has no attribute 'output'
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "generator.py", line 154, in <module>
r = list(tqdm.tqdm(p.imap(train_wrapper, arr), total=len(arr)))
File "/home/ec2-user/.venv/voicefilter/lib64/python3.7/site-packages/tqdm/std.py", line 1170, in __iter__
for obj in iterable:
File "/usr/lib64/python3.7/multiprocessing/pool.py", line 748, in next
raise value
AttributeError: module 'librosa' has no attribute 'output'
This is the environment of my experiment, maybe x86_64 is a bit incomplete, but you can refer to it.
Newer packages of those libraries have changed things and the methods used in the code are no longer available. Setting specific versions in the requirements file avoids installing those versions.