You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I dont know why the same code and env can run on another server.
[2022-02-08 16:25:19,939] [ ERROR] - resample() takes 1 positional argument but 3 were given
Traceback (most recent call last):
File "/home/tianrking/anaconda3/envs/fastapi/lib/python3.7/site-packages/paddlespeech/cli/asr/infer.py", line 414, in execute
decode_method, force_yes, device)
File "/home/tianrking/anaconda3/envs/fastapi/lib/python3.7/site-packages/paddlespeech/cli/utils.py", line 335, in _warpper
return executor_func(self, *args, **kwargs)
File "/home/tianrking/anaconda3/envs/fastapi/lib/python3.7/site-packages/paddlespeech/cli/asr/infer.py", line 439, in call
self.preprocess(model, audio_file)
File "/home/tianrking/anaconda3/envs/fastapi/lib/python3.7/site-packages/paddlespeech/cli/asr/infer.py", line 256, in preprocess
self.sample_rate)
TypeError: resample() takes 1 positional argument but 3 were given
The text was updated successfully, but these errors were encountered:
I think it's caused by the Incompatible upgrade of librosa (the release 0.9.0 2 days ago, we use 0.8.1)
You can edit your code as the following, or install librosa 0.8.1, we will try to fix this soon
ENV
Ubuntu 18.04.6 LTS
paddleaudio 0.1.0 pypi_0 pypi
paddlenlp 2.2.4 pypi_0 pypi
paddlepaddle 2.2.2 pypi_0 pypi
paddlespeech 0.1.1 pypi_0 pypi
paddlespeech-ctcdecoders 0.1.1 pypi_0 pypi
paddlespeech-feat 0.1.0 pypi_0 pypi
I dont know why the same code and env can run on another server.
[2022-02-08 16:25:19,939] [ ERROR] - resample() takes 1 positional argument but 3 were given
Traceback (most recent call last):
File "/home/tianrking/anaconda3/envs/fastapi/lib/python3.7/site-packages/paddlespeech/cli/asr/infer.py", line 414, in execute
decode_method, force_yes, device)
File "/home/tianrking/anaconda3/envs/fastapi/lib/python3.7/site-packages/paddlespeech/cli/utils.py", line 335, in _warpper
return executor_func(self, *args, **kwargs)
File "/home/tianrking/anaconda3/envs/fastapi/lib/python3.7/site-packages/paddlespeech/cli/asr/infer.py", line 439, in call
self.preprocess(model, audio_file)
File "/home/tianrking/anaconda3/envs/fastapi/lib/python3.7/site-packages/paddlespeech/cli/asr/infer.py", line 256, in preprocess
self.sample_rate)
TypeError: resample() takes 1 positional argument but 3 were given
The text was updated successfully, but these errors were encountered: