Skip to content

OSError: /usr/local/lib/python3.11/dist-packages/torchtext/lib/libtorchtext.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSs #2288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
SanjayDevarajan03 opened this issue Apr 10, 2025 · 1 comment

Comments

@SanjayDevarajan03
Copy link

🐛 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]

@malfet malfet transferred this issue from pytorch/pytorch Apr 10, 2025
@malfet
Copy link
Contributor

malfet commented Apr 10, 2025

Moved to torchtext, though repo is not actively maintained right now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants