Skip to content

NotFoundError on keras_nlp import #2159

@ashep29

Description

@ashep29
  1. Upgraded to tensorflow 2.19
  2. Upgraded to keras 3.9.0
  3. pip install --upgrade -q keras-nlp

Upon import keras_nlp:


NotFoundError Traceback (most recent call last)
in <cell line: 3>()
1 import tensorflow as tf
2 import keras
----> 3 import keras_nlp

13 frames
/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/load_library.py in load_op_library(library_filename)
52 RuntimeError: when unable to load the library or get the python wrappers.
53 """
---> 54 lib_handle = py_tf.TF_LoadLibrary(library_filename)
55 try:
56 wrappers = _pywrap_python_op_gen.GetPythonWrappers(

NotFoundError: /usr/local/lib/python3.10/dist-packages/tensorflow_text/python/ops/_regex_split_ops.so: undefined symbol: _ZN3tsl5mutexC1Ev

Same error for keras hub:

!pip install --upgrade -q keras-hub
import keras_hub

NotFoundError Traceback (most recent call last)
in <cell line: 3>()
1 import tensorflow as tf
2 import keras
----> 3 import keras_hub

12 frames
/usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/load_library.py in load_op_library(library_filename)
52 RuntimeError: when unable to load the library or get the python wrappers.
53 """
---> 54 lib_handle = py_tf.TF_LoadLibrary(library_filename)
55 try:
56 wrappers = _pywrap_python_op_gen.GetPythonWrappers(

NotFoundError: /usr/local/lib/python3.10/dist-packages/tensorflow_text/python/ops/_regex_split_ops.so: undefined symbol: _ZN3tsl5mutexC1Ev

Running in Google Colab Enterprise (Vertex AI)

Are KerasHub and KerasNLP not compatible with the latest version of Tensorflow?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions