Skip to content

undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSsb #248

@c4hm

Description

@c4hm

Hi,

I already had the problem with PyTorch 2.5 and now with PyTorch 2.6: I get an undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSsb error when I import torch_cluster. I'm using a cpu only version of PyTorch. I've tried it with PyTorch from conga-forge and with PyTorch from download.pytorch.org (installed with pip). I got exactly the same error message:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pt26/lib/python3.11/site-packages/torch_cluster/__init__.py", line 18, in <module>
torch.ops.load_library(spec.origin)
File "/tmp/pt26/lib/python3.11/site-packages/torch/_ops.py", line 1357, in load_library
ctypes.CDLL(path)
File "/tmp/pt26/lib/python3.11/ctypes/__init__.py", line 376, in __init__
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: /tmp/pt26/lib/python3.11/site-packages/torch_cluster/_version_cpu.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKSsb```

I appreciate any hints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions