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.

Error launching TensorBoard on Windows due to `%s` strftime specifier

See original GitHub issue

TensorBoard 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
xieyonglucommented, Feb 26, 2019

Find the manger.py file in directory …\Lib\site-packages\tensorboard,and modify dt.strftime(“%s”) to dt.strftime(“%S”)

1reaction
wchargincommented, Mar 4, 2019

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid format string Tensorboard - python - Stack Overflow
This is a small bug of Tensorboard, just open this File "c:\python3.6.4\lib\site-packages\tensorboard\manager.py", line 50, ...
Read more >
No Zero Padding with strftime() | Enthought, Inc.
A quick look at the Python strftime() documentation notes that the “%m” and “%d” format codes always yield zero-padded results. Python being ...
Read more >
strftime() function in C/C++ - GeeksforGeeks
strftime () function formats the broken-down time tm according to the formatting rules specified in format and store it in character array s....
Read more >
%m/%d/%Y python Code Example - Grepper
You are running 7.2.34 · Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0".
Read more >
3D Slicer Documentation - Read the Docs
Run Slicer from the Windows start menu. • Use “Apps & features” in Windows ... Filter: Hide all the nodes not matching the...
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