Skip to content

Instantly share code, notes, and snippets.

@sub-mod
Created July 15, 2019 19:41
Show Gist options
  • Save sub-mod/a79ee1c45a2d6ebefe815770f77a5656 to your computer and use it in GitHub Desktop.
Save sub-mod/a79ee1c45a2d6ebefe815770f77a5656 to your computer and use it in GitHub Desktop.
glibc ABI issue
docker run -it aicoe/tf-in-container:1.13.1-centos7 /bin/bash
[root@11174edc6cf7 /]#
[root@11174edc6cf7 /]# pip install ^C
[root@11174edc6cf7 /]# python -V
Python 2.7.5
[root@11174edc6cf7 /]# scl enable rh-python36
Need at least 3 arguments.
Run scl --help to get help.
[root@11174edc6cf7 /]# scl enable rh-python36 bash
[root@11174edc6cf7 /]# python -V
Python 3.6.3
[root@11174edc6cf7 /]# scl enable devtoolset-7 bash
Unable to open /etc/scl/conf/devtoolset-7!
[root@11174edc6cf7 /]#
[root@11174edc6cf7 /]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)
[root@11174edc6cf7 /]#
[root@11174edc6cf7 /]# pip install https://tensorflow.pypi.thoth-station.ninja/index/fedora29/jemalloc/simple/tensorflow/tensorflow-1.13.1-cp36-cp36m-manylinux1_x86_64.whl
Collecting tensorflow==1.13.1 from https://tensorflow.pypi.thoth-station.ninja/index/fedora29/jemalloc/simple/tensorflow/tensorflow-1.13.1-cp36-cp36m-manylinux1_x86_64.whl
Downloading https://tensorflow.pypi.thoth-station.ninja/index/fedora29/jemalloc/simple/tensorflow/tensorflow-1.13.1-cp36-cp36m-manylinux1_x86_64.whl (74.7MB)
100% |################################| 74.8MB 19kB/s
Requirement already satisfied: six>=1.10.0 in /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages (from tensorflow==1.13.1)
Requirement already satisfied: protobuf>=3.6.1 in /opt/rh/rh-python36/root/usr/lib64/python3.6/site-packages (from tensorflow==1.13.1)
Requirement already satisfied: astor>=0.6.0 in /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages (from tensorflow==1.13.1)
Requirement already satisfied: wheel>=0.26 in /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages (from tensorflow==1.13.1)
Requirement already satisfied: tensorflow-estimator<1.14.0rc0,>=1.13.0 in /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages (from tensorflow==1.13.1)
Requirement already satisfied: gast>=0.2.0 in /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages (from tensorflow==1.13.1)
Requirement already satisfied: termcolor>=1.1.0 in /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages (from tensorflow==1.13.1)
Requirement already satisfied: keras-applications>=1.0.6 in /opt/rh/rh-python36/root/usr/lib64/python3.6/site-packages (from tensorflow==1.13.1)
Requirement already satisfied: tensorboard<1.14.0,>=1.13.0 in /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages (from tensorflow==1.13.1)
Requirement already satisfied: grpcio>=1.8.6 in /opt/rh/rh-python36/root/usr/lib64/python3.6/site-packages (from tensorflow==1.13.1)
Requirement already satisfied: absl-py>=0.1.6 in /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages (from tensorflow==1.13.1)
Requirement already satisfied: keras-preprocessing>=1.0.5 in /opt/rh/rh-python36/root/usr/lib64/python3.6/site-packages (from tensorflow==1.13.1)
Requirement already satisfied: numpy>=1.13.3 in /opt/rh/rh-python36/root/usr/lib64/python3.6/site-packages (from tensorflow==1.13.1)
Requirement already satisfied: setuptools in /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages (from protobuf>=3.6.1->tensorflow==1.13.1)
Requirement already satisfied: mock>=2.0.0 in /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages (from tensorflow-estimator<1.14.0rc0,>=1.13.0->tensorflow==1.13.1)
Requirement already satisfied: h5py in /opt/rh/rh-python36/root/usr/lib64/python3.6/site-packages (from keras-applications>=1.0.6->tensorflow==1.13.1)
Requirement already satisfied: markdown>=2.6.8 in /opt/rh/rh-python36/root/usr/lib64/python3.6/site-packages (from tensorboard<1.14.0,>=1.13.0->tensorflow==1.13.1)
Requirement already satisfied: werkzeug>=0.11.15 in /opt/rh/rh-python36/root/usr/lib64/python3.6/site-packages (from tensorboard<1.14.0,>=1.13.0->tensorflow==1.13.1)
Installing collected packages: tensorflow
Found existing installation: tensorflow 1.13.2
Uninstalling tensorflow-1.13.2:
Successfully uninstalled tensorflow-1.13.2
Successfully installed tensorflow-1.13.1
You are using pip version 9.0.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[root@11174edc6cf7 /]#
[root@11174edc6cf7 /]# python
Python 3.6.3 (default, May 31 2019, 13:05:43)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
Traceback (most recent call last):
File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/opt/rh/rh-python36/root/usr/lib64/python3.6/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/opt/rh/rh-python36/root/usr/lib64/python3.6/imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/opt/rh/rh-python36/root/usr/lib64/python3.6/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/opt/rh/rh-python36/root/usr/lib64/python3.6/imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /opt/rh/rh-python36/root/usr/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment