google-research/text-to-text-transfer-transformer

NotImplementedError: unable to open file: _gcs_config_ops.so

mmcs-work opened this issue · 3 comments

Description
When running the notebook (t5-trivia) then the very first code block throws this error after execution.


Setting up GCS access...
---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)
<ipython-input-1-a0730ade1193> in <module>()
     24 if ON_CLOUD:
     25   print("Setting up GCS access...")
---> 26   import tensorflow_gcs_config
     27   from google.colab import auth
     28   # Set credentials for GCS reading/writing from Colab and TPU.

1 frames
/usr/local/lib/python3.7/dist-packages/tensorflow_gcs_config/__init__.py in <module>()
     57       "{}, from paths: {}\ncaused by: {}".format(filename, filenames, errs))
     58 
---> 59 _gcs_config_so = _load_library("_gcs_config_ops.so")
     60 gcs_configure_credentials = _gcs_config_so.gcs_configure_credentials
     61 gcs_configure_block_cache = _gcs_config_so.gcs_configure_block_cache

/usr/local/lib/python3.7/dist-packages/tensorflow_gcs_config/__init__.py in _load_library(filename, lib)
     55   raise NotImplementedError(
     56       "unable to open file: " +
---> 57       "{}, from paths: {}\ncaused by: {}".format(filename, filenames, errs))
     58 
     59 _gcs_config_so = _load_library("_gcs_config_ops.so")

NotImplementedError: unable to open file: _gcs_config_ops.so, from paths: ['/usr/local/lib/python3.7/dist-packages/tensorflow_gcs_config/_gcs_config_ops.so']
caused by: ['/usr/local/lib/python3.7/dist-packages/tensorflow_gcs_config/_gcs_config_ops.so: undefined symbol: _ZN10tensorflow13GcsFileSystem19ResetFileBlockCacheEmmy']

To Reproduce
Open the notebook t5-trivia and execute the first block.

Changing the "tensorflow-text" version should solve this issue:

!pip install -q t5
!pip install -q t5 tensorflow-text==2.4.3

This is similar to #319.

@agemagician Thank yo!
it worked for me