tensorboard crashes with "locale.Error: unsupported locale setting"
See original GitHub issuetensorboard 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:
- Created 5 years ago
- Reactions:3
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
for me setting
export LC_ALL=C
fixed the issue. This might be useful if you do not have sudo rights on the machine.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"