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.

tensorboard crashes with "locale.Error: unsupported locale setting"

See original GitHub issue

tensorboard 1.9.0 Mac OS High Sierra Python 3.6.5

$ .venv/bin/tensorboard --logdir runs
Traceback (most recent call last):
  File ".venv/bin/tensorboard", line 11, in <module>
    sys.exit(run_main())
  File "/Users/mikesolomon/devel/pytorch-sandbox/.venv/lib/python3.6/site-packages/tensorboard/main.py", line 46, in run_main
    tf.app.run(main)
  File "/Users/mikesolomon/devel/pytorch-sandbox/.venv/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 125, in run
    _sys.exit(main(argv))
  File "/Users/mikesolomon/devel/pytorch-sandbox/.venv/lib/python3.6/site-packages/tensorboard/main.py", line 55, in main
    default.get_assets_zip_provider())
  File "/Users/mikesolomon/devel/pytorch-sandbox/.venv/lib/python3.6/site-packages/tensorboard/program.py", line 167, in main
    util.setup_logging()
  File "/Users/mikesolomon/devel/pytorch-sandbox/.venv/lib/python3.6/site-packages/tensorboard/util.py", line 50, in setup_logging
    locale.setlocale(locale.LC_ALL, '')
  File "/Users/mikesolomon/devel/pytorch-sandbox/.venv/lib/python3.6/locale.py", line 598, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

commenting out util.setup_logging() makes it work like a charm, but this is kinda hacky. Sorry that I can’t contribute a fix, as I’m not exactly sure how the locale affects tensorboard and/or python.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:5

github_iconTop GitHub Comments

38reactions
filiprecommented, Oct 18, 2018

for me setting export LC_ALL=C fixed the issue. This might be useful if you do not have sudo rights on the machine.

2reactions
dosvidoscommented, Nov 18, 2018

Hit this issue with tensorboard 1.9.0 on MacOS 10.14 Mojave and solved it by export LC_ALL="en_US.UTF-8" export LC_CTYPE="en_US.UTF-8"

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python locale error: unsupported locale setting - Stack Overflow
I had this problem when using inside a Docker container. I solved by installing locales, adding my language to the locale.gen file, executing ......
Read more >
'unsupported locale setting' fault by command-not-found
This is a perfectly good question, since the crash is separate from the main issue. command-not-found is run when you try to run...
Read more >
unsupported locale setting & XRecord - Google Groups
Hi all. I see that the method to solve the "unsupported locale setting" problem is to "go into AutoKey's preferences, and on the...
Read more >
locale.Error: unsupported locale setting - CSDN博客
locale.Error: unsupported locale setting ... 2、由于LANGUAGE和LC_ALL为空,所以报错,解决方案为在terminal中键入下面两行命令行。 ... locale.Error: ...
Read more >
What is wxPython doing to the locale to makes pandas crash?
Let me know if you run into any locale- or translations-related problems. ... Error: unsupported locale setting. What would work is: locale.setlocale(locale ......
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