pytorch_geometric: OSError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /home/user/anaconda3/envs/hbk_gcn/lib/python3.9/site-packages/torch_spline_conv/_basis_cuda.so)

📚 Installation

Environment

  • OS:ubuntu 16.04
  • Python version:3.9
  • PyTorch version:1.10
  • CUDA/cuDNN version:10.2
  • GCC version:
  • How did you try to install PyTorch Geometric and its extensions (wheel, source):
  • Any other relevant information:

Checklist

  • I followed the installation guide.
  • I cannot find my error message in the FAQ.
  • I set up CUDA correctly and can compile CUDA code via nvcc.
  • I do have multiple CUDA versions on my machine.

Additional context

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 19 (9 by maintainers)

Most upvoted comments

For now, the only workaround is to install an older version of torch-spline-conv or avoid to install it in the first place (it’s an optional dependency of PyG).

I solved it by degrading torch to 1.9.0, dont know if it helps

I think the main problem is that our wheels are compiled with Ubuntu 18.04 which comes with GLIBC 2.27 by default. Any chance you can upgrade to a higher version? Otherwise, you may need to install the extensions via manual compiling:

pip install torch-spline-conv

same error

OS : ubuntu 16.04 python : 3.9 pytorch: 1.10.2 CUDA 10.2 GCC version 5.4.0 PyG isntall : using “conda install pyg=2.0.4 -c pyg -c conda-forge” import torch_geometric successfully, but when I try to import torch_geometric.nn as pygnn, this error occurred

I solved this by “pin uninstall torch-spline-conv” and “pip install torch-spline-conv -f https://data.pyg.org/whl/torch-${TORCH}+${CUDA}.html

Yes, I think this is possible. Am I correct to assume that all we need to do is install glib via conda prior to building the package here?

I wish I could help, but unfortunately I know very little about GitHub Actions and building packages. My original idea was that you could specify glib as a conda dependency of pyg.

same error

  • OS : ubuntu 16.04
  • python : 3.8/3.9, try them both
  • pytorch: 1.10.0
  • CUDA 10.2
  • GCC version 7.5.0
  • PyG isntall : using “conda install pyg -c pyg -c conda-forge” import torch_geometric successfully, but when I try to import torch_geometric.nn, this error occurred