Skip to content

tensorflow.python.framework.errors_impl.NotFoundError: /usr/local/lib/python3.6/dist-packages/tensorflow_text/python/metrics/_text_similarity_metric_ops.so: undefined symbol: _ZN10tensorflow8OpKernel11TraceStringEPNS_15OpKernelContextEb #385

@Ecclesiast

Description

@Ecclesiast

Hello!

Could you please help me with this issue? I am using tensorflow image from docker hub tensorflow==2.3.0
My Dockerfile looks like this:

image

Locally I installed tensorflow==2.3.0 and tensorflow-text==2.3.0 and everything works fine. But when I am using docker image + tensorflow_text I get this issue.

This is my full log:
File "", line 3, in <module> import tensorflow_text File "/usr/local/lib/python3.6/dist-packages/tensorflow_text/__init__.py", line 21, in <module> from tensorflow_text.python import metrics File "/usr/local/lib/python3.6/dist-packages/tensorflow_text/python/metrics/__init__.py", line 20, in <module> from tensorflow_text.python.metrics.text_similarity_metric_ops import * File "/usr/local/lib/python3.6/dist-packages/tensorflow_text/python/metrics/text_similarity_metric_ops.py", line 28, in <module> gen_text_similarity_metric_ops = load_library.load_op_library(resource_loader.get_path_to_datafile('_text_similarity_metric_ops.so')) File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/load_library.py", line 61, in load_op_library lib_handle = py_tf.TF_LoadLibrary(library_filename) tensorflow.python.framework.errors_impl.NotFoundError: /usr/local/lib/python3.6/dist-packages/tensorflow_text/python/metrics/_text_similarity_metric_ops.so: undefined symbol: _ZN10tensorflow8OpKernel11TraceStringEPNS_15OpKernelContextEb

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