question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

can't run with this error: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSs

See original GitHub issue

😵 Installation

Hi!

I installed the PyG according to the documentation(https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html). tried to run some sample code to test if I installed successfully, then I encountered this issue.

Traceback (most recent call last): File “test_dataloader.py”, line 54, in <module> from torch_geometric.data import Data File “/usr/local/lib/python3.8/dist-packages/torch_geometric/init.py”, line 4, in <module> import torch_geometric.data File “/usr/local/lib/python3.8/dist-packages/torch_geometric/data/init.py”, line 1, in <module> from .data import Data File “/usr/local/lib/python3.8/dist-packages/torch_geometric/data/data.py”, line 3, in <module> from torch_geometric.typing import OptTensor, NodeType, EdgeType File “/usr/local/lib/python3.8/dist-packages/torch_geometric/typing.py”, line 4, in <module> from torch_sparse import SparseTensor File “/usr/local/lib/python3.8/dist-packages/torch_sparse/init.py”, line 15, in <module> torch.ops.load_library(importlib.machinery.PathFinder().find_spec( File “/usr/lib/python3/dist-packages/torch/_ops.py”, line 104, in load_library ctypes.CDLL(path) File “/usr/lib/python3.8/ctypes/init.py”, line 373, in init self._handle = _dlopen(self._name, mode)

OSError: /usr/local/lib/python3.8/dist-packages/torch_sparse/_version_cuda.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSs

I tried to search previous issues, there is someplace mentioned about that system cuda and PyTorch cuda mismatch. I check mine, they both at 11.1, so I think it may not be the root cause of my issue.

Can anyone help me with this? Is there any other possibility? I have been stuck here for 4 days and have no clue about next move. Thank you so much for any advice!

Environment

  • PyG version (torch_geometric.__version__): 2.0.3
  • PyTorch version: (torch.__version__): 1.9
  • OS (e.g., Linux): Linux
  • Python version (e.g., 3.9): 3.8
  • CUDA/cuDNN version: cuda 11.1 (nvcc version also 11.1)
  • How you installed PyTorch and PyG (conda, pip, source): pip
  • Any other relevant information (e.g., version of torch-scatter):

Additional context

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
faye33commented, Mar 8, 2022

@rusty1s I followed version corresbondences on [https://pytorch-geometric.com/whl/], thus torch-1.6.0 and torch-scatter-2.0.5 should match. And your doubt about the 1.6 version of Pytorch is correct to some extent, cause that error does not occur when I use 1.4 . (chose 1.4 because my cuda version is 10.0, kind of old.) I will try Pytorch 1.10 as you suggested for testing and give an update later. Thank you.

0reactions
rusty1scommented, Mar 14, 2022

Thanks for confirming. I hope you are good to go now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to solve the pytorch_geometric install error. Undefined ...
This problem occurred in my anaconda virtual environment, which I installed in the following path. /home/anaconda3/envs/python-3.9.
Read more >
runtime symbol lookup error - Google Groups
I try to use google-glog 0.3.3 in Linux Mint 17.1 as simple as follows, #include <glog/logging.h> int main(int argc, char* argv[]) ...
Read more >
Link Error - Undefined symbol __imp__ ...
I recently upgraded to CVI 8.5 and when I tried to recompile my .dll I am getting an Undefined symbol __imp__MessagBoxA@16 referenced in....
Read more >
or "undefined symbol: PyUnicodeUCS2\_..." errors - PDFTron
For example, if your Python version was 2.7.16 and you received the undefined symbol: PyUnicodeUCS2_ error when running the samples, execute:.
Read more >
Undefined symbol after updating thc-hydra
I am also get this error after upgrade Hydra on Kali Linux. The solution is simple. Just install libmongoc-dev.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found