Error launching TensorBoard on Windows due to `%s` strftime specifier
See original GitHub issueTensorBoard version: 1.13.0 Tensorflow version: tensorflow-gpu 1.13.0rc2 OS Platform and version: Windows10 1803 Python version: 3.7
Hi,
Here’s a minor error occurs when I run tensorboard 1.13.0. It is fixed by changing line 50 in tensorboard/manager.py
serialize=lambda dt: int(dt.strftime("%s")),
to serialize=lambda dt: int(dt.strftime("%S")),
The “%s” is changed to “%S”.
Traceback (most recent call last): File “d:\programme\anaconda\Lib\runpy.py”, line 193, in _run_module_as_main “main”, mod_spec) File “d:\programme\anaconda\Lib\runpy.py”, line 85, in run_code exec(code, run_globals) File "D:\Workspace\Python\TensorflowVenv\TfEnv\Scripts\tensorboard.exe_main.py", line 9, in <module> File “d:\workspace\python\tensorflowvenv\tfenv\lib\site-packages\tensorboard\main.py”, line 57, in run_main app.run(tensorboard.main, flags_parser=tensorboard.configure) File “d:\workspace\python\tensorflowvenv\tfenv\lib\site-packages\absl\app.py”, line 300, in run _run_main(main, args) File “d:\workspace\python\tensorflowvenv\tfenv\lib\site-packages\absl\app.py”, line 251, in _run_main sys.exit(main(argv)) File “d:\workspace\python\tensorflowvenv\tfenv\lib\site-packages\tensorboard\program.py”, line 228, in main self._register_info(server) File “d:\workspace\python\tensorflowvenv\tfenv\lib\site-packages\tensorboard\program.py”, line 274, in _register_info manager.write_info_file(info) File “d:\workspace\python\tensorflowvenv\tfenv\lib\site-packages\tensorboard\manager.py”, line 268, in write_info_file payload = “%s\n” % _info_to_string(tensorboard_info) File “d:\workspace\python\tensorflowvenv\tfenv\lib\site-packages\tensorboard\manager.py”, line 128, in _info_to_string for k in _TENSORBOARD_INFO_FIELDS File “d:\workspace\python\tensorflowvenv\tfenv\lib\site-packages\tensorboard\manager.py”, line 128, in <dictcomp> for k in _TENSORBOARD_INFO_FIELDS File “d:\workspace\python\tensorflowvenv\tfenv\lib\site-packages\tensorboard\manager.py”, line 50, in <lambda> serialize=lambda dt: int(dt.strftime(“%s”)), ValueError: Invalid format string
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
Find the manger.py file in directory …\Lib\site-packages\tensorboard,and modify dt.strftime(“%s”) to dt.strftime(“%S”)
@israfila3: As noted above, that is not a sound replacement. Please see @nickfelt’s comment if you want an immediate workaround. We plan to release a TensorBoard 1.13.1 patch shortly (probably today) that will contain the fix for this.