Open
Description
🐛 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 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:
OSError: /usr/local/lib/python3.10/dist-packages/torchtext/lib/libtorchtext.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSs
You can repro in a Colab notebook by:
- uninstalling torch/torchtext.
!pip uninstall -y torch torchtext
- installing torchtext
!pip install torchtext
. - importing torchtext
import torchtext
Solution
AFAICT, there are two potential solutions:
- Update torchtext to be compatible with torch 2.4.0. I suspect this isn't on the table, since torchtext is in maintenance mode.
- Update torchtext to specify that it requires torch<2.4.0.
Either solution would require a bump in the minor version and a push to pypi.
Metadata
Assignees
Labels
No labels
Activity