Skip to content
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

Issue with libc version #346

Open
will-leeson opened this issue Oct 23, 2023 · 2 comments
Open

Issue with libc version #346

will-leeson opened this issue Oct 23, 2023 · 2 comments

Comments

@will-leeson
Copy link

I have recently reinstalled pytorch_geometric and pytorch_sparse.
After installing version 2.4.0, I get the following warning when I import pytorch_geometric

/path/to/.conda/envs/gnn/lib/python3.10/site-packages/torch_geometric/typing.py:101: UserWarning: An issue occurred while importing 'torch-sparse'. Disabling its usage. Stacktrace: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by /path/to/.conda/envs/gnn/lib/python3.10/site-packages/torch_sparse/_metis_cuda.so)
  warnings.warn(f"An issue occurred while importing 'torch-sparse'. "

Previously, I had been using pytorch_geometric version 2.3.1 and I did not get this warning. Unfortunately, I am not able to install glibc 2.29 as these are on CentOS servers which I don't have privileges on.
Is there a possible workaround? The version of glibc on the machines is 2.17

@rusty1s
Copy link
Owner

rusty1s commented Oct 24, 2023

The current workaround would be to either (1) install an earlier version of torch-sparse and stay on an earlier PyTorch version, or (2) install torch-sparse from source (this may take a while).

@HelloWorldLTY
Copy link

Hi, (2) works for me. Thanks a lot.

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

3 participants