WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation
See original GitHub issueI am unable to build and run TensorBoard from source with bazel. Doing so gives
the warning that the TensorBoard installation is missing (see output in repro
steps).
I’m following the development instructions.
Other issues and the diagnostics output suggest that the issue is with running TensorBoard from the source tree, but that’s exactly what I want to do, i.e. make and run local modifications to TensorBoard.
What have I got wrong here?
Thanks!
Environment information (required)
Diagnostics
Diagnostics output
--- check: autoidentify
INFO: diagnose_tensorboard.py version 27fd3ab75df3bb79262c4ef0b9bdf2b993092670
--- check: general
INFO: sys.version_info: sys.version_info(major=3, minor=6, micro=8, releaselevel='final', serial=0)
INFO: os.name: posix
INFO: os.uname(): posix.uname_result(sysname='Linux', nodename='devon-XPS-13-9370', release='4.15.0-70-generic', version='#79-Ubuntu SMP Tue Nov 12 10:36:11 UTC 2019', machine='x86_64')
INFO: sys.getwindowsversion(): N/A
--- check: package_management
INFO: has conda-meta: False
INFO: $VIRTUAL_ENV: '/home/devon/projects/tensorboard/tf'
--- check: installed_packages
INFO: installed: tb-nightly==2.1.0a20191125
INFO: installed: tf-nightly==2.1.0.dev20191125
INFO: installed: tf-estimator-nightly==2.0.0.dev2019112509
--- check: tensorboard_python_version
INFO: tensorboard.version.VERSION: '2.1.0a0'
--- check: tensorflow_python_version
2019-11-25 12:11:03.366248: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory
2019-11-25 12:11:03.366267: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
WARNING: Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING: Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING: Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING: Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING: Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING: Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING: Limited tf.summary API due to missing TensorBoard installation.
INFO: tensorflow.__version__: '2.1.0-dev20191125'
INFO: tensorflow.__git_version__: 'v1.12.1-19144-gf39f4ea'
--- check: tensorboard_binary_path
INFO: which tensorboard: b'/home/devon/projects/tensorboard/tf/bin/tensorboard\n'
--- 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(): 'devon-XPS-13-9370'
--- check: stat_tensorboardinfo
INFO: directory: /tmp/.tensorboard-info
INFO: os.stat(...): os.stat_result(st_mode=16895, st_ino=5505471, st_dev=66311, st_nlink=2, st_uid=1000, st_gid=1000, st_size=4096, st_atime=1574194438, st_mtime=1574712658, st_ctime=1574712658)
INFO: mode: 0o40777
--- check: source_trees_without_genfiles
INFO: tensorboard_roots (3): ['', '/home/devon/projects/tensorboard/tensorboard', '/home/devon/projects/tensorboard/tf/lib/python3.6/site-packages']; bad_roots (2): ['', '/home/devon/projects/tensorboard/tensorboard']
--- check: full_pip_freeze
INFO: pip freeze --all:
absl-py==0.8.1
astor==0.8.0
cachetools==3.1.1
certifi==2019.9.11
chardet==3.0.4
gast==0.2.2
google-auth==1.7.1
google-auth-oauthlib==0.4.1
google-pasta==0.1.8
grpcio==1.25.0
h5py==2.10.0
idna==2.8
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.0
Markdown==3.1.1
numpy==1.17.4
oauthlib==3.1.0
opt-einsum==3.1.0
pip==19.3.1
protobuf==3.10.0
pyasn1==0.4.8
pyasn1-modules==0.2.7
requests==2.22.0
requests-oauthlib==1.3.0
rsa==4.0
setuptools==42.0.1
six==1.13.0
tb-nightly==2.1.0a20191125
termcolor==1.1.0
tf-estimator-nightly==2.0.0.dev2019112509
tf-nightly==2.1.0.dev20191125
urllib3==1.25.7
Werkzeug==0.16.0
wheel==0.33.6
wrapt==1.11.2
Suggestion: Avoid tensorboard
packages without genfiles
Your Python path contains a tensorboard
package that does not
include generated files. This can happen if your current directory
includes the TensorBoard source tree (e.g., you are in the TensorBoard
Git repository). The following directories from your Python path may
be problematic:
- current directory
- ‘/home/devon/projects/tensorboard/tensorboard’ (duplicate underlying directory)
Next steps
Please try each suggestion enumerated above to determine whether it solves your problem. If none of these suggestions works, please copy ALL of the above output, including the lines containing only backticks, into your GitHub issue or comment. Be sure to redact any sensitive information.
Steps to reproduce (required)
$ mkdir tensorboard
$ cd tensorboard/
$ virtualenv tf
$ source tf/bin/activate
(tf) $ pip install --upgrade pip
(tf) $ pip install tf-nightly
(tf) $ git clone git@github.com:tensorflow/tensorboard.git
(tf) $ cd tensorboard
(tf) $ bazel run //tensorboard -- --logdir=mylogdir
...
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.summary API due to missing TensorBoard installation.
...
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (3 by maintainers)
For TF 2.1.0, install
pip install tensorboard
. Solved.It may also due to the version of tensorboard diverses from the tensorflow version. I solved it by
pip uninstall tensorboard
andpip install tensorboard==YOUR_TF_VERSION