tensorflow / recommenders-addons

Additional utils and helpers to extend TensorFlow when build recommendation systems, contributed and maintained by SIG Recommenders.
Apache License 2.0
592 stars 134 forks source link

undefined symbol: aio_read #187

Closed PWZER closed 2 years ago

PWZER commented 2 years ago

System information

Describe the bug

root@7c22b3f4c4a6:/workspace# python -c "import tensorflow_recommenders_addons as tfra"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.8/dist-packages/tensorflow_recommenders_addons/__init__.py", line 30, in <module>
    from tensorflow_recommenders_addons import dynamic_embedding
  File "/usr/local/lib/python3.8/dist-packages/tensorflow_recommenders_addons/dynamic_embedding/__init__.py", line 53, in <module>
    from tensorflow_recommenders_addons.dynamic_embedding.python.ops.redis_table_ops import (
  File "/usr/local/lib/python3.8/dist-packages/tensorflow_recommenders_addons/dynamic_embedding/python/ops/redis_table_ops.py", line 37, in <module>
    redis_table_ops = LazySO("dynamic_embedding/core/_redis_table_ops.so").ops
  File "/usr/local/lib/python3.8/dist-packages/tensorflow_recommenders_addons/utils/resource_loader.py", line 102, in ops
    self._ops = tf.load_op_library(get_path_to_datafile(self.relative_path))
  File "/usr/local/lib/python3.8/dist-packages/tensorflow/python/framework/load_library.py", line 58, in load_op_library
    lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: /usr/local/lib/python3.8/dist-packages/tensorflow_recommenders_addons/dynamic_embedding/core/_redis_table_ops.so: undefined symbol: aio_read
PWZER commented 2 years ago

Build with the following command is work

bazel build --linkopt='-lrt' --enable_runfiles build_pip_pkg
rhdong commented 2 years ago

Build with the following command is work

bazel build --linkopt='-lrt' --enable_runfiles build_pip_pkg

@PWZER Thank you ! and Hi @MoFHeka , do we make any mistake in Redis Build file?