🐛 Describe the bug
import torchtext
OSError Traceback (most recent call last)
in <cell line: 0>()
8 import evaluate
9 import datasets
---> 10 import torchtext
5 frames
/usr/lib/python3.11/ctypes/init.py in init(self, name, mode, handle, use_errno, use_last_error, winmode)
374
375 if handle is None:
--> 376 self._handle = _dlopen(self._name, mode)
377 else:
378 self._handle = handle
OSError: /usr/local/lib/python3.11/dist-packages/torchtext/lib/libtorchtext.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSs
Versions
--2025-04-10 11:54:49-- https://raw.githubusercontent.com/pytorch/pytorch/main/torch/utils/collect_env.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24440 (24K) [text/plain]
Saving to: ‘collect_env.py’
collect_env.py 100%[===================>] 23.87K --.-KB/s in 0.002s
2025-04-10 11:54:49 (9.43 MB/s) - ‘collect_env.py’ saved [24440/24440]