Open3d: ImportError: /lib64/libm.so.6: version 'GLIBC_2.27' not found

Created on 8 Nov 2019  路  8Comments  路  Source: intel-isl/Open3D

ImportError: /lib64/libm.so.6: version 'GLIBC_2.27' not found
When I tried to install Open3D from source on a ppc64le system, I was able to compile and install it using make, but I wasn't able to import it and use it in Python because of a GLIBC issue. It seems that Open3D works for GLIBC versions up to 2.27 but not 2.28, since the GLIBC version is 2.28 on my system.
To Reproduce
Steps to reproduce the behavior:

  1. git clone --recursive https://github.com/intel-isl/Open3D
  2. cd Open3D; mkdir build; cd build
  3. cmake -DPYTHON_EXECUTABLE=`which python` -DCMAKE_INSTALL_PREFIX=~/ ..
  4. make -j$(nproc)
  5. make install-pip-package
  6. python -c "import open3d"

Expected behavior
When I import Open3D in Python, it gives me this error:

$ python -c "import open3d"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/.conda/envs/test/lib/python3.6/site-packages/open3d/__init__.py", line 35, in <module>
    from .open3d import * # py2 py3 compatible
ImportError: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /home/.conda/envs/test/lib/python3.6/site-packages/open3d/open3d.cpython-36m-powerpc64le-linux-gnu.so)

Environment:

  • OS: CentOS 7,
  • ppc64le architecture
  • Python version: 3.6
  • Open3D version: latest
  • Is this remote workstation?: yes
  • How did you install Open3D?: build_from_source
$ ldd --version
ldd (GNU libc) 2.28
Copyright (C) 2018 Free Software Foundation, Inc.

$ gcc --version
gcc (GCC) 8.3.1 20190304 (Advance-Toolchain-at12.0) [revision 269374]
Copyright (C) 2018 Free Software Foundation, Inc.

Additional context
Additionally, is it possible to provide a conda package that can be used on ppc64le systems? Currently when I try to use conda to install Open3D, it cannot find the package that would work for my system.
When I use conda install -c open3d-admin open3d, it gives me this error:

PackagesNotFoundError: The following packages are not available from current channels:

  - open3d
builinstall issue possible bug

Most helpful comment

I met the same question after pip install, and I solved it by specifying a version.

python -m pip install open3d==0.9, and seems 1.0 is not compatible with my system.

All 8 comments

Hi @ytyfeng have you solved the bug? I am having the same problem...

Hi @ytyfeng have you solved the bug? I am having the same problem...

Hi, @SarahChane98
Are you using IBM鈥檚 ppcle64 system as well?

For me, it was a dynamic linker problem. I used patchelf to link my python binary to the system's ld.so.2 file.

I met the same question after pip install, and I solved it by specifying a version.

python -m pip install open3d==0.9, and seems 1.0 is not compatible with my system.

Hello,
I have the same problem. Is there any better solution than downgrading to open3d 0.9? I also read somewhere that upgrading os my help, but neither of these solutions suits me because I am running my program on a cluster.

What is your GLIBC version?

ldd --version

Open3D requires GLIBC 2.27.

on my server only open3d=0.8 works. this is his specs:

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.6 LTS
Release:        16.04
Codename:       xenial

ldd --version
ldd (Ubuntu GLIBC 2.23-0ubuntu11.2) 2.23
Copyright (C) 2016 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.

Did you build from source? According to the documentation, the latest version requires Ubuntu 18.04+. http://www.open3d.org/docs/release/compilation.html#system-requirements

Thanks @ytyfeng, yes this is expected. as mentioned in https://github.com/intel-isl/Open3D#python-quick-start:

Pre-built pip and conda packages support Ubuntu 18.04+, macOS 10.14+ and Windows 10 (64-bit) with Python 3.5, 3.6, 3.7 and 3.8. If you have other Python versions or operating systems, please compile Open3D from source.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DKandrew picture DKandrew  路  3Comments

blackccpie picture blackccpie  路  3Comments

samarth-robo picture samarth-robo  路  3Comments

HaiyongJiang picture HaiyongJiang  路  3Comments

taochenshh picture taochenshh  路  3Comments