Skip to content

ImportError: /lib64/libc.so.6: version `GLIBC_2.17' #177

Closed

Description

@vinodrajendran001

After the installation of tensorflow(cpu version) via pip command, I just used import tensorflow as tf which leads to the following error message

import tensorflow as tf
Traceback (most recent call last):
File "", line 1, in
File "/home/hpc/pr63so/ga93yih2/anaconda/lib/python2.7/site-packages/tensorflow/init.py", line 4, in
from tensorflow.python import *
File "/home/hpc/pr63so/ga93yih2/anaconda/lib/python2.7/site-packages/tensorflow/python/init.py", line 22, in
from tensorflow.python.client.client_lib import *
File "/home/hpc/pr63so/ga93yih2/anaconda/lib/python2.7/site-packages/tensorflow/python/client/client_lib.py", line 35, in
from tensorflow.python.client.session import InteractiveSession
File "/home/hpc/pr63so/ga93yih2/anaconda/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 11, in
from tensorflow.python import pywrap_tensorflow as tf_session
File "/home/hpc/pr63so/ga93yih2/anaconda/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in
_pywrap_tensorflow = swig_import_helper()
File "/home/hpc/pr63so/ga93yih2/anaconda/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
ImportError: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by /home/hpc/pr63so/ga93yih2/anaconda/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so)

Activity

  1. evanthebouncy commented on Nov 12, 2015

    @evanthebouncy

    see #53

  2. vrv commented on Nov 12, 2015

    @vrv

    De-duping with 53

  3. sriharsha-sammeta commented on Jun 22, 2018

    @sriharsha-sammeta

    conda install tensorflow works

  4. darouwan commented on Jan 25, 2019

    @darouwan

    I install with offline tensorflow conda package, it still happens.

  5. Apesfly commented on May 21, 2019

    @Apesfly

    works for me!Thanks

  6. added a commit that references this issue on Oct 20, 2019
    8071a51
  7. added a commit that references this issue on Nov 19, 2019
    b93d6cb
  8. royceda commented on Mar 15, 2022

    @royceda

    Hi,

    I recently got this problem by running tensorflow in a spark-submit. I downgraded protobuf in order to fix it.

    This is the error I got

    File "/app/hadoop/yarn/local4/usercache/myapp/appcache/application_1645269118360_0591/container_e54_1645269118360_0591_01_000001/venv-myapp-poc/lib/python3.7/site-packages/tensorflow/__init__.py", line 41, in <module>
        from tensorflow.python.tools import module_util as _module_util
      File "/app/hadoop/yarn/local4/usercache/myapp/appcache/application_1645269118360_0591/container_e54_1645269118360_0591_01_000001/venv-myapp-poc/lib/python3.7/site-packages/tensorflow/python/__init__.py", line 53, in <module>
        from tensorflow.core.framework.graph_pb2 import *
      File "/app/hadoop/yarn/local4/usercache/myapp/appcache/application_1645269118360_0591/container_e54_1645269118360_0591_01_000001/venv-myapp-poc/lib/python3.7/site-packages/tensorflow/core/framework/graph_pb2.py", line 7, in <module>
        from google.protobuf import descriptor as _descriptor
      File "/app/hadoop/yarn/local4/usercache/myapp/appcache/application_1645269118360_0591/container_e54_1645269118360_0591_01_000001/venv-myapp-poc/lib/python3.7/site-packages/google/protobuf/descriptor.py", line 47, in <module>
        from google.protobuf.pyext import _message
    ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /app/hadoop/yarn/local4/usercache/myapp/appcache/application_1645269118360_0591/container_e54_1645269118360_0591_01_000001/venv-myapp-poc/lib/python3.7/site-packages/google/protobuf/pyext/_message.cpython-37m-x86_64-linux-gnu.so)
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions