-
Notifications
You must be signed in to change notification settings - Fork 179
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
torch_sparse/_convert_cpu.so: undefined symbol: _ZNK2at6Tensor5zero_Ev #248
Comments
This is related to a potentially false intallation of
|
There is the same issue when running the Colab Notebooks tutorials. |
Colab notebooks are fixable as suggested here: pyg-team/pytorch_geometric#3484 |
Great, thanks a lot ! |
it works!! |
but the problem remains my torch version is 1.10.0+cu102 |
You also need to uninstall and update |
This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved? |
I'm trying to solve the same problem under command I used: |
Can you install via
|
Hey! I am having the same problem. And I tried to resolve this issue using the solution mentioned in this thread. Following is the error that I receive: /home/anshal/anaconda3/envs/pointcept/lib/python3.10/site-packages/torch_geometric/typing.py:31: UserWarning: An issue occurred while importing 'torch-scatter'. Disabling its usage. Stacktrace: /home/anshal/anaconda3/envs/pointcept/lib/python3.10/site-packages/torch_scatter/_scatter_cuda.so: undefined symbol: _ZNK3c107SymBool10guard_boolEPKcl I installed pytorch version 2.0.1, cuda 11.7 and torch-scatter 2.1.1 |
I also have the same issue: OSError: .conda/envs/GIGN/lib/python3.9/site-packages/torch_sparse/_version_cpu.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSs |
This usually indicates a version conflict, so something with your CUDA and PyTorch version does not match with the installed version coming from |
I have cuda 11.7 installed on my laptop. And in the conda environment I have pytorch 2.0.1 for cuda 11.7, torch-scatter (2.1.1+pt20cu117). And I used the following command to install pytorch-scatter, pytorch-sparse and pytorch cluster: |
How did you install PyTorch? It is preferred that you install it from the official binaries (not from something like |
I installed Pytorch using the instructions on their site. I used the following: |
Thanks for sharing. Can you try to run install |
OSError: /home/lijuncai/app/anaconda3/envs/ljc/lib/python3.9/site-packages/torch_cluster/_grid_cuda.so: undefined symbol: _ZNK3c1010TensorImpl36is_contiguous_nondefault_policy_implENS_12MemoryFormatE |
I found the solution here. |
I also have the same issue: My torch_version is 2.2.1+cu121 |
code:
In [1]: import torch
In [2]: from torch_geometric.data import Data
error:
OSError Traceback (most recent call last)
in ()
----> 1 from torch_geometric.data import Data
~/anaconda3/lib/python3.7/site-packages/torch_geometric/init.py in ()
5 from .debug import is_debug_enabled, debug, set_debug
6
----> 7 import torch_geometric.data
8 import torch_geometric.loader
9 import torch_geometric.transforms
~/anaconda3/lib/python3.7/site-packages/torch_geometric/data/init.py in ()
----> 1 from .data import Data
2 from .hetero_data import HeteroData
3 from .temporal import TemporalData
4 from .batch import Batch
5 from .dataset import Dataset
~/anaconda3/lib/python3.7/site-packages/torch_geometric/data/data.py in ()
1 from typing import (Optional, Dict, Any, Union, List, Iterable, Tuple,
2 NamedTuple, Callable)
----> 3 from torch_geometric.typing import OptTensor, NodeType, EdgeType
4 from torch_geometric.deprecation import deprecated
5
~/anaconda3/lib/python3.7/site-packages/torch_geometric/typing.py in ()
2
3 from torch import Tensor
----> 4 from torch_sparse import SparseTensor
5
6 # Types for accessing data ####################################################
~/anaconda3/lib/python3.7/site-packages/torch_sparse/init.py in ()
14 ]:
15 torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
---> 16 f'{library}_{suffix}', [osp.dirname(file)]).origin)
17
18 if torch.cuda.is_available(): # pragma: no cover
~/anaconda3/lib/python3.7/site-packages/torch/_ops.py in load_library(self, path)
108 # static (global) initialization code in order to register custom
109 # operators with the JIT.
--> 110 ctypes.CDLL(path)
111 self.loaded_libraries.add(path)
112
~/anaconda3/lib/python3.7/ctypes/init.py in init(self, name, mode, handle, use_errno, use_last_error)
354
355 if handle is None:
--> 356 self._handle = _dlopen(self._name, mode)
357 else:
358 self._handle = handle
OSError: /root/anaconda3/lib/python3.7/site-packages/torch_sparse/_convert_cpu.so: undefined symbol: _ZNK2at6Tensor5zero_Ev
I followed the Quick Start installation, with torch=1.10.0+cu102
The text was updated successfully, but these errors were encountered: