Skip to content

Bazel 8 build: "unknown repo 'io_bazel_rules_closure'" #6977

@Geremia

Description

@Geremia

I'm trying to build tensorboard master, but I get this error:

$ bazel build tensorboard
Starting local Bazel server (8.1.0) and connecting to it...
WARNING: --enable_bzlmod is set, but no MODULE.bazel file was found at the workspace root. Bazel will create an empty MODULE.bazel file. Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel. For more details, please refer to https://github.com/bazelbuild/bazel/issues/18958.
WARNING: Target pattern parsing failed.
ERROR: Skipping 'tensorboard': error loading package 'tensorboard': at /tmp/tensorboard/tensorboard/defs/zipper.bzl:17:6: Unable to find package for @@[unknown repo 'io_bazel_rules_closure' requested from @@]//closure/private:defs.bzl: The repository '@@[unknown repo 'io_bazel_rules_closure' requested from @@]' could not be resolved: No repository visible as '@io_bazel_rules_closure' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration.
ERROR: error loading package 'tensorboard': at /tmp/tensorboard/tensorboard/defs/zipper.bzl:17:6: Unable to find package for @@[unknown repo 'io_bazel_rules_closure' requested from @@]//closure/private:defs.bzl: The repository '@@[unknown repo 'io_bazel_rules_closure' requested from @@]' could not be resolved: No repository visible as '@io_bazel_rules_closure' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration.
INFO: Elapsed time: 8.749s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
Diagnostics output
--- check: autoidentify
INFO: diagnose_tensorboard.py version c6ca9f1d004e2a1bc7c160abc43be229b82cad7e

--- check: general
INFO: sys.version_info: sys.version_info(major=3, minor=12, micro=9, releaselevel='final', serial=0)
INFO: os.name: posix
INFO: os.uname(): posix.uname_result(sysname='Linux', nodename='alan.isidore.co', release='6.13.2', version='#1 SMP PREEMPT_DYNAMIC Sat Feb  8 15:39:08 CST 2025', machine='x86_64')
INFO: sys.getwindowsversion(): N/A

--- check: package_management
INFO: has conda-meta: False
INFO: $VIRTUAL_ENV: None

--- check: installed_packages
WARNING: no installation among: ['tb-nightly', 'tensorboard', 'tensorflow-tensorboard']
WARNING: no installation among: ['tensorflow', 'tensorflow-gpu', 'tf-nightly', 'tf-nightly-2.0-preview', 'tf-nightly-gpu', 'tf-nightly-gpu-2.0-preview']
WARNING: no installation among: ['tensorflow-estimator', 'tensorflow-estimator-2.0-preview', 'tf-estimator-nightly']

--- check: tensorboard_python_version
Traceback (most recent call last):
  File "/tmp/tensorboard/tensorboard/tools/diagnose_tensorboard.py", line 511, in main
    suggestions.extend(check())
                       ^^^^^^^
  File "/tmp/tensorboard/tensorboard/tools/diagnose_tensorboard.py", line 81, in wrapper
    result = fn()
             ^^^^
  File "/tmp/tensorboard/tensorboard/tools/diagnose_tensorboard.py", line 260, in tensorboard_python_version
    from tensorboard import version
ModuleNotFoundError: No module named 'tensorboard'

--- check: tensorflow_python_version
Traceback (most recent call last):
  File "/tmp/tensorboard/tensorboard/tools/diagnose_tensorboard.py", line 511, in main
    suggestions.extend(check())
                       ^^^^^^^
  File "/tmp/tensorboard/tensorboard/tools/diagnose_tensorboard.py", line 81, in wrapper
    result = fn()
             ^^^^
  File "/tmp/tensorboard/tensorboard/tools/diagnose_tensorboard.py", line 267, in tensorflow_python_version
    import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow'

--- check: tensorboard_data_server_version
INFO: no data server installed

--- check: tensorboard_binary_path
INFO: which tensorboard: None

--- check: addrinfos
socket.has_ipv6 = True
socket.AF_UNSPEC = <AddressFamily.AF_UNSPEC: 0>
socket.SOCK_STREAM = <SocketKind.SOCK_STREAM: 1>
socket.AI_ADDRCONFIG = <AddressInfo.AI_ADDRCONFIG: 32>
socket.AI_PASSIVE = <AddressInfo.AI_PASSIVE: 1>
Loopback flags: <AddressInfo.AI_ADDRCONFIG: 32>
Loopback infos: [(<AddressFamily.AF_INET6: 10>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('::1', 0, 0, 0)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 0))]
Wildcard flags: <AddressInfo.AI_PASSIVE: 1>
Wildcard infos: [(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('0.0.0.0', 0)), (<AddressFamily.AF_INET6: 10>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('::', 0, 0, 0))]

--- check: readable_fqdn
INFO: socket.getfqdn(): 'alan.isidore.co'

--- check: stat_tensorboardinfo
INFO: directory: /tmp/.tensorboard-info
INFO: os.stat(...): os.stat_result(st_mode=16895, st_ino=242374, st_dev=44, st_nlink=2, st_uid=1000, st_gid=100, st_size=40, st_atime=1740112175, st_mtime=1740112175, st_ctime=1740112175)
INFO: mode: 0o40777

--- check: source_trees_without_genfiles
INFO: tensorboard_roots (1): ['']; bad_roots (1): ['']

--- check: full_pip_freeze
INFO: pip freeze --all:
acme==3.1.0
aiohappyeyeballs==2.4.4
aiohttp==3.11.11
aiohttp_socks==0.10.1
aiorpcX==0.23.1
aiosignal==1.3.2
alabaster==1.0.0
anki @ file:///var/lib/sbopkg/SBo/15.0/desktop/anki/anki-25.02-cp39-abi3-manylinux_2_35_x86_64.whl#sha256=d0ebef9d8f7308a9728357220170da8f6558aa0dff772fd233740004f0717f41
anyio==4.8.0
appdirs==1.4.4
aqt @ file:///var/lib/sbopkg/SBo/15.0/desktop/anki/aqt-25.02-py3-none-any.whl#sha256=7d3c715d5ffccca79b1bd39542251b893dd05b5c32eef1ff1c43ad1a57bed483
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
asciidoc @ file:///tmp/build-linuxdoc-tools/asciidoc/asciidoc-py-10.2.0
asn1crypto==1.5.1
asttokens==3.0.0
async-lru==2.0.4
async-timeout==5.0.1
async_generator==1.10
attrs==23.2.0
babel==2.17.0
backcall==0.2.0
beautifulsoup4==4.12.3
beniget==0.4.2.post1
bitstring==3.1.9
bleach==6.2.0
blinker==1.9.0
Brotli==1.1.0
bsddb3==6.2.6
build==1.2.2.post1
caca==0.99b20
calver==2022.6.26
certbot==3.1.0
certbot-apache==3.1.0
certbot-nginx==3.1.0
certifi==2025.1.31
cffi==1.17.1
chardet==5.2.0
charset-normalizer==3.4.0
click==8.1.8
comm==0.2.2
ConfigArgParse==1.7
configobj==5.0.9
contextlib2==0.6.0.post1
cppy==1.3.0
cryptography==44.0.0
cssselect==1.2.0
cssutils==1.0.2
CT3==3.3.2
cupshelpers==1.0
cycler==0.11.0
Cython==3.0.12
debugpy==1.8.11
decorator==5.1.1
defusedxml==0.7.1
deprecation==2.1.0
distro==1.9.0
dnspython==2.7.0
docutils==0.21.2
doxypypy==0.8.8.7
doxyqml==0.5.3
ecdsa==0.18.0
editables==0.5
Electrum==4.5.8
entrypoints==0.4
exceptiongroup==1.2.2
executing==2.2.0
expandvars==0.12.0
fastjsonschema==2.21.1
filelock==3.17.0
filetype==1.2.0
flake8==7.0.0
Flask==3.1.0
Flask-Cors==5.0.0
flit_core==3.10.1
flit_scm==1.7.0
frescobaldi==3.3.0
frozenlist==1.5.0
future==1.0.0
gajim==1.5.4
gast==0.5.5
gaupol==1.15
GDAL==3.11.0
getmail6==6.19.7
gi-docgen==2024.1
glad2==2.0.8
google_images_download==2.8.0
gpg==1.24.2
gramps==5.2.4
grpcio==1.68.2
grpcio-tools==1.68.2
gunicorn==22.0.0
gyp==0.1
hatch-fancy-pypi-readme==24.1.0
hatch-jupyter-builder==0.9.1
hatch-nodejs-version==0.3.2
hatch-vcs==0.4.0
hatchling==1.27.0
helpdev==0.7.1
html5lib==1.1
idna==3.10
imagesize==1.4.1
img2pdf==0.4.0
importlib_metadata==8.6.1
include_server==3.4
iniconfig==2.0.0
installer==0.7.0
internetarchive==3.0.1
ipykernel==6.29.5
ipython==8.18.1
ipython_genutils==0.2.0
ipywidgets==8.1.5
itsdangerous==2.2.0
jedi==0.19.2
Jinja2==3.1.5
joblib==1.4.2
josepy==1.15.0
json5==0.10.0
jsonpatch==1.33
jsonpointer==3.0.0
jsonrpclib-pelix==0.4.3.2
jsonschema==4.17.3
jupyter-events==0.6.3
jupyter_client==8.6.3
jupyter_core==5.7.2
jupyter_packaging==0.12.3
jupyter_server==2.10.0
jupyter_server_terminals==0.5.3
jupyterlab==4.0.13
jupyterlab_pygments==0.3.0
jupyterlab_server==2.22.1
jupyterlab_widgets==3.0.13
kapidox==5.116.0
kiwisolver==1.4.8
krop==0.6.1
lensfun==0.3.4
libtorrent==2.0.10
libwebp==0.0
lxml==5.3.0
Mako==1.3.5
marisa==0.0.0
Markdown==3.7
markdown-it-py==3.0.0
MarkupSafe==3.0.2
matplotlib==3.8.4
matplotlib-inline==0.1.7
maturin==1.8.1
mdurl==0.1.2
mercurial==6.9.2
meson==1.7.0
meson-python==0.17.1
miniupnpc==2.2.5
mistune==2.0.5
mock==2.0.0
monotonic==1.1
more-itertools==10.6.0
mpmath==1.3.0
msgpack==1.0.2
multidict==6.1.0
munch==4.0.0
mutagen==1.47.0
nbclient==0.10.2
nbconvert==7.16.4
nbformat==5.10.4
nbxmpp==3.2.5
nest_asyncio==1.6.0
netsnmp-python==1.0a1
networkx==2.8.8
nftables==0.1
nltk==3.9.1
notebook==7.3.2
notebook_shim==0.2.4
notify2==0.3.1
numba==0.59.1
numpy==1.26.3
overrides==7.7.0
OWSLib==0.31.0
packaging==24.2
pandas==2.2.2
pandocfilters==1.5.1
parsedatetime==2.6
parso==0.8.4
pathspec==0.12.1
pbr==6.1.1
pefile==2023.2.7
pexpect==4.9.0
picard==2.13.1
pickleshare==0.7.5
pillow==11.1.0
pip==25.0.1
pkgconfig==1.5.5
platformdirs==4.3.6
pluggy==1.5.0
ply==3.11
poetry-core==2.0.1
prometheus_client==0.21.1
prompt_toolkit==3.0.50
propcache==0.2.1
protobuf==5.29.3
pssh==2.3.5
psutil==6.1.1
psycopg2==2.9.10
ptyprocess==0.7.0
pure_eval==0.2.3
pwquality==1.4.5
pyasn1==0.6.1
pybind11==2.11.1
pycairo==1.27.0
pycodestyle==2.11.1
pycparser==2.22
pycryptodomex==3.21.0
pycups==2.0.4
pycurl==7.45.4
pyenchant==3.2.2
Pygments==2.19.1
PyGObject==3.50.0
PyOpenGL==3.1.6
pyOpenSSL==25.0.0
pyparsing==3.1.2
PyPDF2==1.26.0
pypng==0.20220715.0
pyproj==3.6.1
pyproject-metadata==0.9.0
pyproject_hooks==1.2.0
PyQt-builder==1.18.0
PyQt5==5.15.11
PyQt5_sip==12.17.0
pyRFC3339==2.0.1
pyrsistent==0.20.0
PySocks==1.6.8
pysol_cards==0.18.1
pytest==8.3.4
pytest-runner==6.0.1
python-augeas==1.2.0
python-axolotl==0.2.3
python-axolotl-curve25519==0.4.1.post2
python-dateutil==2.9.0
python-json-logger==3.2.1
python-ly==0.9.7
python-sane==2.9.1
python-socks==2.7.1
pythondialog==3.5.3
pythran==0.15.0
pytz==2024.2
pyxdg==0.28
PyYAML==6.0.2
pyzmq==25.1.2
QDarkStyle==3.2.3
qrcode==8.0
QScintilla==2.14.1
QtPy==2.4.2
random2==1.0.2
regex==2024.11.6
requests==2.32.3
requests-toolbelt==0.9.1
rich==13.9.4
roman-numerals-py==3.0.0
rpm==4.20.1
schema==0.7.2
scikit-learn==1.4.0
scipy==1.12.0
SCons==4.8.1
screenkey==1.5
selenium==3.141.0
semantic_version==2.10.0
Send2Trash==1.8.3
setuptools==75.8.0
setuptools-rust==0.12.1
setuptools-scm==8.1.0
setuptools_autover==1.0.2
sip==6.10.0
six==1.17.0
smartypants==2.0.1
sniffio==1.3.1
snowballstemmer==2.2.0
soupsieve==2.6
Sphinx==8.2.0
sphinx_rtd_theme==3.0.2
sphinxcontrib-applehelp==2.0.0
sphinxcontrib-devhelp==2.0.0
sphinxcontrib-htmlhelp==2.1.0
sphinxcontrib-jquery==4.1
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==2.0.0
sphinxcontrib-serializinghtml==2.0.0
SQLAlchemy==2.0.37
stack_data==0.6.3
sympy==1.13.3
termcolor==2.4.0
terminado==0.18.1
testpath==0.6.0
threadpoolctl==3.5.0
tinycss2==1.4.0
toml==0.10.2
tomli_w==1.2.0
tomlkit==0.13.2
torch==2.6.0a0+gitunknown
torch-tb-profiler==0.4.3
tornado==6.4.2
tqdm==4.67.1
traitlets==5.14.3
trove-classifiers==2025.1.15.22
typing_extensions==4.12.2
typogrify==2.1.0
tzdata==2025.1
undervolt==0.4.0
Unidecode==1.3.8
urllib3==2.3.0
vcversioner==2.16.0.0
versioneer==0.29
waitress==3.0.2
wcwidth==0.2.13
webencodings==0.5.1
websocket-client==1.8.0
Werkzeug==3.1.3
wheel==0.45.1
widgetsnbextension==4.0.13
xlsx2csv==0.8.4
yara-python==4.5.0
yarl==1.18.3
youtube_dl==2021.12.17
yt-dlp==2025.1.26
zenmap @ file:///tmp/nmap-7.95/zenmap
zim==0.75.2
zipp==3.21.0
zope.component==6.0
zope.event==5.0
zope.interface==7.2

It refers me to https://bazel.build/external/migration.

Perhaps BUILD needs updating for Bazel 8?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions