Tensorboard not starting in notebook
See original GitHub issueI ran the notebooks get_started.ipynb
and hyperparameter_tuning_with_hparams
.
Each time, after %tensorboard --logdir "logs"
, I’m getting this under the notebook cell:
ERROR: Timed out waiting for TensorBoard to start. It may still be running as pid 10864.
And then this:
WARNING: Logging before flag parsing goes to stderr. W0326 09:10:24.666816 1004 manager.py:322] invalid info file: ‘C:\Temp\.tensorboard-info\pid-6196.info’ Traceback (most recent call last): File “C:\anaconda\envs\tf2course\lib\site-packages\tensorboard\manager.py”, line 317, in get_all info = _info_from_string(contents) File “C:\anaconda\envs\tf2course\lib\site-packages\tensorboard\manager.py”, line 158, in _info_from_string raise ValueError(“incompatible version: %r” % (json_value,)) ValueError: incompatible version: {‘cache_key’: ‘eyJhcmd1bWVudHMiOlsiLS1sb2dkaXIiLCJyb290X2xvZ2RpciJdLCJjb25maWd1cmVfa3dhcmdzIjp7fSwid29ya2luZ19kaXJlY3RvcnkiOiJDOlxccHl0aG9uX2NvZGUifQ==’, ‘db’: ‘’, ‘logdir’: ‘root_logdir’, ‘path_prefix’: ‘’, ‘pid’: 6196, ‘port’: 6006, ‘start_time’: 1553171458, ‘version’: ‘1.13.1’} W0326 09:10:24.666816 1004 manager.py:322] invalid info file: ‘C:\Temp\.tensorboard-info\pid-6224.info’ Traceback (most recent call last): File “C:\anaconda\envs\tf2course\lib\site-packages\tensorboard\manager.py”, line 317, in get_all info = _info_from_string(contents) File “C:\anaconda\envs\tf2course\lib\site-packages\tensorboard\manager.py”, line 158, in _info_from_string raise ValueError(“incompatible version: %r” % (json_value,)) ValueError: incompatible version: {‘cache_key’: ‘eyJhcmd1bWVudHMiOlsiLS1sb2dkaXI9bG9ncy9ocGFyYW1fdHVuaW5nIl0sImNvbmZpZ3VyZV9rd2FyZ3MiOnt9LCJ3b3JraW5nX2RpcmVjdG9yeSI6IkM6XFxweXRob25fY29kZVxcdGVuc29yYm9hcmRfbm90ZWJvb2tzIn0=’, ‘db’: ‘’, ‘logdir’: ‘logs/hparam_tuning’, ‘path_prefix’: ‘’, ‘pid’: 6224, ‘port’: 6006, ‘start_time’: 1553256806, ‘version’: ‘1.13.1’} W0326 09:10:24.682441 1004 manager.py:322] invalid info file: ‘C:\Temp\.tensorboard-info\pid-6420.info’ Traceback (most recent call last): File “C:\anaconda\envs\tf2course\lib\site-packages\tensorboard\manager.py”, line 317, in get_all info = _info_from_string(contents) File “C:\anaconda\envs\tf2course\lib\site-packages\tensorboard\manager.py”, line 158, in _info_from_string raise ValueError(“incompatible version: %r” % (json_value,)) ValueError: incompatible version: {‘cache_key’: ‘eyJhcmd1bWVudHMiOlsiLS1sb2dkaXIiLCJsb2dzL2hwYXJhbV90dW5pbmciXSwiY29uZmlndXJlX2t3YXJncyI6e30sIndvcmtpbmdfZGlyZWN0b3J5IjoiQzpcXHB5dGhvbl9jb2RlXFx0ZW5zb3Jib2FyZF9ub3RlYm9va3MifQ==’, ‘db’: ‘’, ‘logdir’: ‘logs/hparam_tuning’, ‘path_prefix’: ‘’, ‘pid’: 6420, ‘port’: 6006, ‘start_time’: 1553256443, ‘version’: ‘1.13.1’} W0326 09:10:24.682441 1004 manager.py:322] invalid info file: ‘C:\Temp\.tensorboard-info\pid-9488.info’ Traceback (most recent call last): File “C:\anaconda\envs\tf2course\lib\site-packages\tensorboard\manager.py”, line 317, in get_all info = _info_from_string(contents) File “C:\anaconda\envs\tf2course\lib\site-packages\tensorboard\manager.py”, line 158, in _info_from_string raise ValueError(“incompatible version: %r” % (json_value,)) ValueError: incompatible version: {‘cache_key’: ‘eyJhcmd1bWVudHMiOlsiLS1sb2dkaXIiLCJsb2dzIl0sImNvbmZpZ3VyZV9rd2FyZ3MiOnt9LCJ3b3JraW5nX2RpcmVjdG9yeSI6IkM6XFxweXRob25fY29kZVxcdGVuc29yYm9hcmRfbm90ZWJvb2tzIn0=’, ‘db’: ‘’, ‘logdir’: ‘logs’, ‘path_prefix’: ‘’, ‘pid’: 9488, ‘port’: 6006, ‘start_time’: 1553242957, ‘version’: ‘1.13.1’}
This goes on in a long list, over and over again.
After a few attempts to start TB like this, I notice several tensorboard.exe entries in my taskmanager processes tab.
Opening TB via console worked fine. How can I get TB working in notebook?
These are the relevant packages installed in the conda env I use as kernel in jupyter notebook:
tb-nightly 1.14.0a20190319 pypi_0 pypi
tensorflow-estimator-2-0-preview 1.14.0.dev2019031400 pypi_0 pypi
tf-nightly-2-0-preview 2.0.0.dev20190325 pypi_0 pypi
on Windows10 x64, conda 4.6.8, Python 3.6.8
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
@philippHRO Any update on this ?
What Stephan says is correct. Can you check whether you also have the
tensorboard
package (nottb-nightly
) installed in your environment?If you run
!tensorboard --logdir /tmp/whatever
from a Jupyter cell, what version does TensorBoard print out once it starts its server? (After checking, you can press the “stop” button in Jupyter to kill the subprocess.)