pytorch-sentiment-analysis
pytorch-sentiment-analysis copied to clipboard
OSError: /usr/local/lib/python3.6/dist-packages/torchtext/_torchtext.so: undefined symbol:
I am trying to run your exercise and i am seeing this issue. Is there a known hack for this ?
root@supermicro-2xvega20:~/pytorch-sentiment-analysis# python3 4\ -\ Convolutional\ Sentiment\ Analysis.py
Traceback (most recent call last):
File "4 - Convolutional Sentiment Analysis.py", line 30, in
What version of PyTorch and torchtext are you using? You need to ensure they match up, see the version compatibility table in the README of https://github.com/pytorch/text.
I believe this issue is because you need PyTorch >=1.6
I have the latest versions that are supposed to be compatible, but still get this error. PyTorch 1.7.1 and torchtext 0.8.1.
@NA-Dev Do you still get the error with PyTorch 1.8 and torchtext 0.9? I think torchtext has had some issues with their binaries.
I had the same issue - upgraded to PyTorch 1.8 and torchtext 0.9 as suggested above. This fixed the problem.
Ive been having this issue on azure. Here is the conda spec that finally worked for me:
channels:
- default
- conda-forge
- pytorch
dependencies:
- pip>20.1
- python>=3.7,<3.9
- pytorch=1.8.0
- torchtext=0.9
- pip:
- torch==1.8
- transformers==4.11.0
- torchmetrics==0.5.1
- spacy==3.1.3
- pandas==1.3.3
- pytorch_lightning==1.4.8
- azureml-core>=1.31.0
- tqdm>=4.59,<4.60