-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
Description
Hello,
I was trying to build the latest version of TF Serving from source according to the instruction https://www.tensorflow.org/tfx/serving/setup . The build breaks because of wrong version of bazel:
git log -1
commit 0df40b3031d2b91f6174393795d09f9dcd7f4cef (HEAD -> master, origin/master, origin/HEAD)
Author: Siqiao Wu <[email protected]>
Date: Wed Aug 13 09:42:57 2025 -0700
Internal change only
PiperOrigin-RevId: 794618695
tools/run_in_docker.sh bazel build -c opt tensorflow_serving/...
== Pulling docker image: tensorflow/serving:nightly-devel
nightly-devel: Pulling from tensorflow/serving
Digest: sha256:28b1c56388891e15d4b2108a361f01c326808ed265d0d9f9ac48919b74f37eb8
Status: Image is up to date for tensorflow/serving:nightly-devel
docker.io/tensorflow/serving:nightly-devel
== Running cmd: sh -c 'cd /home/username/serving_main; TEST_TMPDIR=.cache bazel build -c opt tensorflow_serving/...'
$TEST_TMPDIR defined: output root default is '/home/username/serving_main/.cache' and max_idle_secs default is '15'.
Starting local Bazel server and connecting to it...
ERROR: Traceback (most recent call last):
File "/home/username/serving_main/WORKSPACE", line 41, column 15, in <toplevel>
versions.check("7.4.1")
File "/home/username/serving_main/.cache/_bazel_username/1252eac8eafaeda4022d54899b026453/external/bazel_skylib/lib/versions.bzl", line 105, column 13, in _check_bazel_version
fail("Current Bazel version is {}; expected at least {}".format(
Error in fail: Current Bazel version is 6.5.0; expected at least 7.4.1
ERROR: Error computing the main repository mapping: Encountered error while reading extension file 'python/repositories.bzl': no such package '@rules_python//python': error loading package 'external': Could not load //external package
Looks like minimal required version 7.4.1 does not match version 6.5.0 from tensorflow/serving:nightly-devel docker image.