Why can't torchtext find a symbol _ZN2at6detail10noopDeleteEPv?
Why can't torchtext find this symbol?
(synthesis) miranda9~/ultimate-utils $ python ~/type-parametric-synthesis/src/main.py --reproduce_10K --serial --debug --num_workers 0



Traceback (most recent call last):
  File &quot;/home/miranda9/type-parametric-synthesis/src/main.py&quot;, line 32, in &lt;module&gt;
    from data_pkg.data_preparation import get_dataloaders, get_simply_type_lambda_calc_dataloader_from_folder
  File &quot;/home/miranda9/type-parametric-synthesis/src/data_pkg/data_preparation.py&quot;, line 10, in &lt;module&gt;
    from torchtext.vocab import Vocab, vocab
  File &quot;/home/miranda9/miniconda3/envs/synthesis/lib/python3.9/site-packages/torchtext/__init__.py&quot;, line 5, in &lt;module&gt;
    from . import vocab
  File &quot;/home/miranda9/miniconda3/envs/synthesis/lib/python3.9/site-packages/torchtext/vocab.py&quot;, line 13, in &lt;module&gt;
    from torchtext._torchtext import (
ImportError: /home/miranda9/miniconda3/envs/synthesis/lib/python3.9/site-packages/torchtext/_torchtext.so: undefined symbol: _ZN2at6detail10noopDeleteEPv



Reinstall torchtext with the current version of pytorch:
e.g.
conda install -y torchtext -c pytorch

or for older versions of pytorch torchtext ImportError in colab
conda install -y torchtext==0.8.0 -c pytorch

Though in general it seems in my experience that torchtext install the right version of pytorch on its own...
Ref: https://github.com/PyTorchLightning/pytorch-lightning/issues/4533
