Open hsharsh opened 3 months ago
If you are switching between PyTorch versions, did you make sure to correctly uninstall all existing installations of torch-cluster
and re-install them? Usually, an error like Symbol not found: __ZN5torch3jit17parseSchemaOrNameERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb
means that torch-cluster
is build on a different PyTorch version than the one you are running it on.
I definitely am running a fresh venv
for the install. But your comment got me thinking that this might be a problem with pyproject.toml
which was recently added to fix the torch
dependency issue for setup. If I understand this correctly, this probably installs torch==2.4.0 as the build dependency.
[build-system]
requires = ["setuptools", "torch"]
build-backend = "setuptools.build_meta"
If I specify the version of torch to use, everything seems to work fine:
[build-system]
requires = ["setuptools", "torch==2.3.0"]
build-backend = "setuptools.build_meta"
Maybe it would be nice to specify the version of torch being used for the build automatically but I don't know if this is something you need/want.
I had to use the --no-build-isolation
flag to use the preinstalled pytorch.
I am trying to create a torch repo which has a C++ backend and I wanted to use pytorch_cluster as a reference for it. I have installed pytorch_cluster with pip from the cloned repo
But when I try to import pytorch_cluster, it seems like there are some discrepancies with the installation?
When I try the same thing with
torch==2.4.0
, it seems to work fine. The problem here is that I am also going to usetorch_geometric
as dependency in my library but the wheels fortorch==2.4.0
don't exist fortorch_geometric
, as that version is not supported yet.Environment details: Python: 3.11.9 OS: Darwin Kernel Version 23.5.0 pip: 24.0