tensorflow/text

Version error when building Tensorflow Text 2.12 using Bazel on Ubuntu 20.04 arm64 docker image

jpb18 opened this issue · 0 comments

jpb18 commented

Hello.

Currently, I'm attempting to build the project for a Ubuntu 20.04 arm64 docker image. However, once I get to building Tensorflow Text, by running oss_scripts/run_build.sh I get the following error:

+ tf_bazel_version='5.3.0
# NOTE: Update Bazel version in tensorflow/tools/ci_build/release/common.sh.oss'
+ '[' 5.3.0 '!=' '5.3.0
# NOTE: Update Bazel version in tensorflow/tools/ci_build/release/common.sh.oss' ']'
+ echo 'Incorrect version of Bazel installed.'
+ echo 'Version 5.3.0
# NOTE: Update Bazel version in tensorflow/tools/ci_build/release/common.sh.oss should be installed, but found version 5.3.0.'
+ echo 'Run oss_scripts/install_bazel.sh or manually install the correct version.'
+ exit 1

After, some research and consulting with colleagues, I managed to identify the issue: if you open the .bazelversion of tensorflow-2.12, there's an extra line not present on previous versions of TensorFlow ( for example 2.11,) and that additional line is being used when comparing the bazel version.

Maybe adapting the bash script to only read the first line would be a good idea?

Thank you for your time.