`GLIBC_2.29' not found
I have encountered an error when installing Kaolin:
File "/home/minhthan001/.conda/envs/tre/lib/python3.10/site-packages/kaolin/ops/batch.py", line 17, in <module>
from kaolin import _C
ImportError: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by /home/minhthan001/.conda/envs/tre/lib/python3.10/site-packages/kaolin/_C.so)
Even though, my environment already has glibc_2.29
(tre) [minhthan001@hpc-npriv-g001 TRELLIS]$ ldd --version
ldd (GNU libc) 2.29
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
I'm using torch 2.6.0, with Cuda 12.6
Please help. I have spent four straight days, but I still can not figure out the issue
Hi @Devininthelab , sorry you are struggling with your system. we had that in the past in CI. I can't recall how we resolved it but you might want to have a look at our Dockerfile (that we are using in the CI), specifically the apt-get install command lines:
- https://github.com/NVIDIAGameWorks/kaolin/blob/master/tools/linux/Dockerfile.base
- https://github.com/NVIDIAGameWorks/kaolin/blob/master/tools/linux/Dockerfile.install
Alternatively if you can use Docker, the dockerfiles should guarantee to have a working environment.
Hi @Caenorst,
Thanks for your help. However, I’m using other software that depends on Kaolin, so using those Dockerfiles might not work for my setup. However, could you advise what I could do on my side to make it easier for you to troubleshoot what’s causing this error?
Exactly the same question, help
What is your OS? (With version).
What is ldd --version returning?
What I'm suggesting is installing some of the packages we are installing in the dockerfiles.
@Caenorst
Hi my OS is this:
[minhthan001@hpc-npriv-g001 TRELLIS]$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: Rocky
Description: Rocky Linux release 8.9 (Green Obsidian)
Release: 8.9
Codename: GreenObsidian
ldd --version
(tre) [minhthan001@hpc-npriv-g001 TRELLIS]$ ldd --version
ldd (GNU libc) 2.29
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
hi, here is my glibc version and os version
CentOS Linux release 8.6.2205 (Core) ldd (GNU libc) 2.28
It's hard to install another version of glibc on current machine
@DongzeLi-CASIA Hi, have u fixed the issue?
@Caenorst Do you have any updates about this :(
Hi @Devininthelab , sorry I don't really have a clue about your case. Somehow it looks like your Glibc is not linked to your building environment. I'm really not sure why.
I had the same issue when installing with pip. I also tried building from source following the instructions in the doc, but got an error You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later..
However, building from source by first installing:
conda install -c conda-forge gcc_linux-64=9 gxx_linux-64=9
export CC=$CONDA_PREFIX/bin/x86_64-conda-linux-gnu-gcc
export CXX=$CONDA_PREFIX/bin/x86_64-conda-linux-gnu-g++
export CUDAHOSTCXX=$CXX
then python setup.py develop seems to work for me. You may try this too!
I fixed it by using the dynamic loader (ld-2.29.so) directly, and it works for me. Does this behavior depend on the OS version or distribution?
Stale issue, please reopen if still relevant