undefined symbol when importing torchaudio with pytorch
See original GitHub issueHi, 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
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:15 (4 by maintainers)
Top Results From Across the Web
Undefined symbol pytorch 1.7.0 and above
Usually you would get this error message if you are trying to import custom extensions before importing PyTorch, which doesn't seem to be...
Read more >Error importing Torchaudio - audio - PyTorch Forums
Hi all, I can't import Torchaudio, this is my setup: macOS ... python3.10/site-packages/torchaudio/lib/libtorchaudio.so, 0x0006): Symbol not ...
Read more >FAQ — PyTorch master documentation
Undefined symbol errors from PyTorch/ATen ... Fix: The fix is to import torch before you import your extension. This will make the symbols...
Read more >Successfully built torchaudio but failed to load - PyTorch Forums
_name, mode) OSError: ~/.local/lib/python3.10/site-packages/torchaudio/lib/libtorchaudio.so: undefined symbol: gsm_create.
Read more >Torchaudio and torchtext installed but failed to import - audio
import torch >>> import torchaudio as ta Traceback (most recent call last): File "<stdin>", ... undefined symbol: __kmpc_reduce_nowait.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@NumesSanguis PyTorch 1.8.0 and torchaudio 0.8.0 work together. In fact PyTorch 1.8.0 is a strict requirement for torchaudio 0.8.0. For
conda
,pytorch
channel is the official distribution channel, butconda-forge
is not and we do not know how the packages inconda-forge
are maintained. I guess in your case, things got mixed up. Glad to hear that now it’s working.using -U option simply solved problem for me
pip install -U torch torchaudio --no-cache-dir