question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple errors occur when building tensorboard from source.

See original GitHub issue

Hi All,

I am trying to build tensorboard from source(https://github.com/tensorflow/tensorboard.git) with steps as mentioned in https://github.com/tensorflow/tensorboard using bazel(bazel 3.7.2) in Windows 10. But I am facing multiple issues.

->bazel build tensorboard:tensorboard

INFO: From Compiling com_google_protobuf/python/google/protobuf/pyext/unknown_fields.cc:
external/com_google_protobuf/src\google/protobuf/message.h(127): warning C4005: 'GOOGLE_PROTOBUF_HAS_ONEOF': macro redefinition
external/com_google_protobuf/python/google/protobuf/pyext/unknown_fields.cc: note: see previous definition of 'GOOGLE_PROTOBUF_HAS_ONEOF'
INFO: From Linking external/com_google_protobuf/python/google/protobuf/pyext/_message.so:
   Creating library bazel-out/x64_windows-opt-exec-50AE0418/bin/external/com_google_protobuf/python/google/protobuf/pyext/python/google/protobuf/pyext/_message.so.if.lib and object bazel-out/x64_windows-opt-exec-50AE0418/bin/external/com_google_protobuf/python/google/protobuf/pyext/python/google/protobuf/pyext/_message.so.if.exp
ERROR: D:/tensorboard/tensorboard/webapp/BUILD:202:8: Executing genrule //tensorboard/webapp:gen_index_polymer3.html failed (Exit 1): bash.exe failed: error executing command C:/msys64/usr/bin/bash.exe -c ... (remaining 1 argument(s) skipped)
stat: cannot stat 'C:\Users\User\_bazel_user\6thpos4r\execroot\org_tensorflow_tensorboard\bazel-out\host\bin\tensorboard\logo\inline_favicon.runfiles/org_tensorflow_tensorboard/tensorboard/logo/favicon.png': No such file or directory
Target //tensorboard:tensorboard failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 430.972s, Critical Path: 115.08s
INFO: 2071 processes: 1044 internal, 497 local, 530 worker.
FAILED: Build did NOT complete successfully

“/logo/favicon.png’: No such file or directory”. To fix this issue, I removed the following entry causing the issue from tensorboard/tensorboard/webapp/BUILD file

genrule(
    name = "gen_index_polymer3.html",
    srcs = ["index_polymer3.uninlined.html"],
    outs = ["index_polymer3.inlined.html"],
    cmd = "$(execpath //tensorboard/logo:inline_favicon) $< >$@",
    tools = ["//tensorboard/logo:inline_favicon"],
)

After cleaning(>bazel clean --expunge) I ran the build again. This time new issue occurred.

Starting local Bazel server and connecting to it...
INFO: Analyzed target //tensorboard:tensorboard (676 packages loaded, 33435 targets configured).
INFO: Found 1 target...
ERROR: D:/tensorboard/tensorboard/webapp/BUILD:204:15: //tensorboard/webapp:tensorboard-webapp: missing input file '//tensorboard/webapp:index_polymer3.inlined.html'
Target //tensorboard:tensorboard failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: D:/tensorboard/tensorboard/webapp/BUILD:220:16 1 input file(s) do not exist
INFO: Elapsed time: 158.753s, Critical Path: 9.58s
INFO: 383 processes: 308 internal, 9 local, 66 worker.
FAILED: Build did NOT complete successfully

Error suggests another missing file. I tried using old versions of source code, but faced multiple issues including Circular dependencies. Please advise how to resolve the issues.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nfeltcommented, Aug 2, 2021

Projector visualization is a very cool feature. I have an ER, will it be possible to allow the user to see their 3-Dimensional data without applying any dimensionality reduction techniques. This will allow the user to experiment with other techniques than the offered ones.

Yes, we have a longstanding feature request for this: https://github.com/tensorflow/tensorboard/issues/1192 (and also somewhat https://github.com/tensorflow/tensorboard/issues/1204)

I agree it would be useful, but we haven’t had bandwidth to look into this area.

1reaction
japie1235813commented, Jul 29, 2021

We can re-open the issue, but can’t provide much further assistance here since the windows build for TensorBoard has never been officially supported (including WSL). If you identify patches that would get things working, we’re happy to review them.

Also, while I’m glad you’re excited about the projector visualization, we also don’t explicitly support the standalone mode - you’re welcome to try to get it working but I would not suggest relying on it long term.

As for the error message you provided, there is a missing slash, it might be something to do with how Windows (or WSL) compose the filepath. (It shows ...logo/inline_favicon.runfilesorg_tensorflow_tensorboard/tensorboard/logo/favicon.png but we expect something ...logo/inline_favicon.runfiles/org_tensorflow_tensorboard/tensorboard/logo/favicon.png Again we will not look into the details.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error building from source · Issue #5432 · tensorflow ...
I'm trying to build from master branch and getting this error during the ./configure step: ERROR: /home/ghedeon/tf/tensorflow/tensorflow/tensorboard/bower/BUILD ...
Read more >
building tensorboard from source - tensorflow
Tensorboard is in its own repository now. Try: git clone https://github.com/tensorflow/tensorboard cd tensorboard bazel build //tensorboard ...
Read more >
Multi-worker training with Keras | TensorFlow Core
This tutorial demonstrates how to perform multi-worker distributed training with a Keras model and the Model.fit API using the tf.distribute.
Read more >
Deep Dive Into TensorBoard: Tutorial With Examples
In this piece, we'll focus on TensorFlow's open-source visualization ... Before you can start using TensorBoard you have to install it either via...
Read more >
I can't install TensorFlow-macos and TensorFlow-metal
However, all installing instruction commands not work at all. ... pip install tensorflow-macos , is failing with below error. ERROR: Cannot install ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found