tensorflow / tensorflow/text

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

Open
#1,164 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.3k
Forks
379
Avg merge
3h 30m
Merged PRs (30d)
8

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with oss_scripts/run_build.sh and the Bazel version check, then compare the TensorFlow 2.12 .bazelversion content with the 2.11 version linked in the issue. Run the build in the Ubuntu 20.04 arm64 Docker image and confirm the check accepts the intended Bazel version without including the note line.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, docker, shell, tensorflow, ubuntu
Domain
build-system, devops, operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.