vbakshi
(vishal_learner)
November 6, 2023, 6:08pm
128
I am unfamiliar with the miniai
and torchaudio
libraries so I can’t help with specifics, but I searched around and found these two issues/solutions that might be related to your problem:
opened 04:00PM - 03 Oct 18 UTC
closed 04:34PM - 11 Feb 19 UTC
Hi,
When importing torchaudio with pytorch 0.4.1 I get an undefined symbol. It… does however work with v0.4.0. audio version: 7314b36
```
Successfully installed numpy-1.15.0 torch-cpu-0.4.1 torchaudio-0.1
(test_venv) [~]$ python -c "import torchaudio;"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "test_venv/lib/python3.6/site-packages/torchaudio/__init__.py", line 4, in <module>
import _torch_sox
ImportError: test_venv/lib/python3.6/site-packages/_torch_sox.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at5ErrorC1ENS_14SourceLocationESs
```
Thanks
Just found out the answer by reading discord fastai-audio channel. We need to update some torch related library.
Run this after installing fastaudio
!pip install torch torchvision torchaudio --upgrade
1 Like