UNAVAILABLE: Internal: TypeError: pad_center() takes 1 positional argument but 2 were given
At:
/usr/local/lib/python3.8/dist-packages/torchlibrosa/stft.py(193): __init__
/usr/local/lib/python3.8/dist-packages/torchlibrosa/stft.py(645): __init__
It seems like torchlibrosa=0.0.9 has some problem with torch=1.10.0+cu111.
Another problem is that in according to the documentation torchlibrosa=0.0.9 (or torchlibrosa in general) is not depends on any torch version.
According to the setup.py file (https://github.com/qiuqiangkong/torchlibrosa/blob/master/setup.py) these are the required packages:
install_requires=[
'numpy',
'librosa>=0.9.0'
]
No torch version is required.
When I open new environment that only has torchlibrosa=0.0.9 installed in it and run the example from the REAME file:
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/pydevconsole.py", line 364, in runcode
coro = func()
File "<input>", line 1, in <module>
File "/Applications/PyCharm.app/Contents/plugins/python/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'torch'
To conclude, it seems like there two problems:
The documentation of torchlibrosa doesn't mention torch as a "must" requirement even though it should be a must requirement
There is a problem with torchlibrosa=0.0.9 that is working with torch=1.10.0+cu111
I have a container that contain the following packages:
When I change the versions
torch, torchaudio
to:I receive the following error:
It seems like
torchlibrosa=0.0.9
has some problem withtorch=1.10.0+cu111
. Another problem is that in according to the documentationtorchlibrosa=0.0.9
(ortorchlibrosa
in general) is not depends on anytorch
version. According to thesetup.py
file (https://github.com/qiuqiangkong/torchlibrosa/blob/master/setup.py) these are the required packages:No
torch
version is required. When I open new environment that only hastorchlibrosa=0.0.9
installed in it and run the example from the REAME file:The following error is raised:
To conclude, it seems like there two problems:
torchlibrosa
doesn't mentiontorch
as a "must" requirement even though it should be a must requirementtorchlibrosa=0.0.9
that is working withtorch=1.10.0+cu111