Issue 1:
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): CentOs 6.10 Linux: 2.6.32-754.2.1.el6.x86_64

TensorFlow installed from (source or binary): Conda install

TensorFlow version: 1.14.0

Python version: 3.7.5

Installed using virtualenv? pip? conda?: Conda

GCC/Compiler version (if compiling from source): c++ 4.9.2

CUDA/cuDNN version:

GPU model and memory:

Describe the problem

Import error ImportError: /opt/gnu/gcc/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/atanteck/anaconda3/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so). Indicated file is there at the path.

Provide the exact sequence of commands / steps that you executed before running into the problem

Import tensorflow

Any other info / logs

import tensorflow

Traceback (most recent call last):

File "/home/atanteck/anaconda3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in

from tensorflow.python.pywrap_tensorflow_internal import *

File "/home/atanteck/anaconda3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in

_pywrap_tensorflow_internal = swig_import_helper()

File "/home/atanteck/anaconda3/lib/python3.7/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 "/home/atanteck/anaconda3/lib/python3.7/imp.py", line 242, in load_module

return load_dynamic(name, filename, file)

File "/home/atanteck/anaconda3/lib/python3.7/imp.py", line 342, in load_dynamic

return _load(spec)

ImportError: /opt/gnu/gcc/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/atanteck/anaconda3/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "", line 1, in

File "/home/atanteck/anaconda3/lib/python3.7/site-packages/tensorflow/init.py", line 34, in

from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import

File "/home/atanteck/anaconda3/lib/python3.7/site-packages/tensorflow/python/init.py", line 49, in

from tensorflow.python import pywrap_tensorflow

File "/home/atanteck/anaconda3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in

raise ImportError(msg)

ImportError: Traceback (most recent call last):

File "/home/atanteck/anaconda3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in

from tensorflow.python.pywrap_tensorflow_internal import *

File "/home/atanteck/anaconda3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in

_pywrap_tensorflow_internal = swig_import_helper()

File "/home/atanteck/anaconda3/lib/python3.7/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 "/home/atanteck/anaconda3/lib/python3.7/imp.py", line 242, in load_module

return load_dynamic(name, filename, file)

File "/home/atanteck/anaconda3/lib/python3.7/imp.py", line 342, in load_dynamic

return _load(spec)

ImportError: /opt/gnu/gcc/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/atanteck/anaconda3/lib/python3.7/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.

Issue 2:
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): RedHat Enterprise Linux 7.6

Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: n/a

TensorFlow installed from (source or binary): binary

TensorFlow version: 1.13.1

Python version: 2.7.2

Installed using virtualenv? pip? conda?: virtualenv+pip

Bazel version (if compiling from source): n/a

GCC/Compiler version (if compiling from source): n/a

CUDA/cuDNN version: n/a

GPU model and memory: n/a

Describe the problem

We noticed that TensorFlow 1.13.1 now comes with wheels for Python 3.7 as well:

tensorflow-1.13.1-cp37-cp37m-manylinux1_x86_64.whl

We first upgraded to 1.13.1 on our existing Python 3.6, which worked

fine. Then we tried upgrading to Python 3.7, but even importing

tensorflow fails there, because the shared libraries need a newer

libstdc++:

E ImportError: Traceback (most recent call last):

E File "/home/anon/git/sensors/venv3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in

E from tensorflow.python.pywrap_tensorflow_internal import *

E File "/home/anon/git/sensors/venv3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in

E _pywrap_tensorflow_internal = swig_import_helper()

E File "/home/anon/git/sensors/venv3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper

E _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)

E File "/opt/anon/python-3.7.2-master-201903180831/lib/python3.7/imp.py", line 242, in load_module

E return load_dynamic(name, filename, file)

E File "/opt/anon/python-3.7.2-master-201903180831/lib/python3.7/imp.py", line 342, in load_dynamic

E return _load(spec)

E ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/anon/git/sensors/venv3/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)

E

E

E Failed to load the native TensorFlow runtime.

E

E See https://www.tensorflow.org/install/errors

E

E for some common reasons and solutions. Include the entire stack trace

E above this error message when asking for help.

This is error is logical, because RHEL/CentOS 7 only has support for 1.3.7 and earlier:

(venv3) [anon@vdesk sensors]$ uname -a

Linux vdesk.localdomain 3.10.0-957.5.1.el7.x86_64 #1 SMP Wed Dec 19 10:46:58 EST 2018 x86_64 x86_64 x86_64 GNU/Linux

(venv3) [anon@vdesk sensors]$ cat /etc/redhat-release

Red Hat Enterprise Linux Server release 7.6 (Maipo)

(venv3) [anon@vdesk sensors]$ strings /lib64/libstdc++.so.6 | grep CXXABI

CXXABI_1.3

CXXABI_1.3.1

CXXABI_1.3.2

CXXABI_1.3.3

CXXABI_1.3.4

CXXABI_1.3.5

CXXABI_1.3.6

CXXABI_1.3.7

CXXABI_TM_1

(venv3) [anon@vdesk sensors]$ gcc --version

gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)

Copyright (C) 2015 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.

If you unzip the 3.6 and 3.7 wheels for TF 1.13.1, you can see that the 3.6 wheel is compiled on Ubuntu 14.04 with GCC 4.8:

[anon@vdesk python]$ strings python36/tensorflow-1.13.1.data/purelib/tensorflow/libtensorflow_framework.so | grep -i ubuntu

GCC: (Ubuntu 4.8.5-4ubuntu8~14.04.2) 4.8.5

and the 3.7 wheel is compiled on Ubuntu 16.04 with GCC 5.4:

[anon@vdesk python]$ strings python37/tensorflow-1.13.1.data/purelib/tensorflow/libtensorflow_framework.so | grep -i ubuntu

GCC: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609

RHEL/CentOS 7 also has GCC 4.8.x, so that's why the Python 3.6 wheels work.

Is there any chance you could build the Python 3.7 wheels on Ubuntu 14.04 as well?

Provide the exact sequence of commands / steps that you executed before running into the problem

Just importing tensorflow; works fine with the Python3.6 wheels.

Any other info / logs

Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.