You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
torchtext is in maintenance mode, but there's a problem with the current dependencies which I think may warrant an update and minor version bump. This problem causes pip install torchtext to install a broken installation by default.
Summary
The problem is that the installing the most recent version of torchtext pulls in the latest version of torch (2.4.0) but it's incompatible with that version of torch. Looks like there's some shared object file which is referencing some symbol that was removed. Using torchtext 0.18.0 with torch 2.4.0 causes import torchtext to fail with the following error:
I am also running into this error with PyTorch 2.5 and 2.5.1, both with torchtext 0.18.0 on two different machines. Maybe I'm showing my ignorance, but I think there might be some issue with how it's getting environment information -- if I try to install from source, I get an error that import torch fails, but it's very much installed in the fresh venv I'm using.
🐛 Bug
torchtext
is in maintenance mode, but there's a problem with the current dependencies which I think may warrant an update and minor version bump. This problem causespip install torchtext
to install a broken installation by default.Summary
The problem is that the installing the most recent version of torchtext pulls in the latest version of torch (2.4.0) but it's incompatible with that version of torch. Looks like there's some shared object file which is referencing some symbol that was removed. Using torchtext 0.18.0 with torch 2.4.0 causes
import torchtext
to fail with the following error:You can repro in a Colab notebook by:
!pip uninstall -y torch torchtext
!pip install torchtext
.import torchtext
Solution
AFAICT, there are two potential solutions:
Either solution would require a bump in the minor version and a push to pypi.
The text was updated successfully, but these errors were encountered: