TensorBoardを表示させた際に「locale.Error: unsupported locale setting」

問題

locale.Error: unsupported locale setting

解決策

export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
sudo dpkg-reconfigure locales

sudoの後にピンク色の画面が立ち上がる。

一番上のAllを選択。 [ ]の中に入っているアイコンが赤色の四角なので見づらい…。

f:id:saneeeatsu:20180813154946p:plain

その後、デフォルトで選択されてるen_US.UTF-8のままEnterを押す。 f:id:saneeeatsu:20180813155035p:plain

Generating locales (this might take a while)...
  en_AG.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_NG.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.UTF-8... done
  en_ZA.UTF-8... done
  en_ZM.UTF-8... done
  en_ZW.UTF-8... done
  ja_JP.UTF-8... done
Generation complete.

こんなんが出てくるのでもう一度TensorBoardを立ち上げる。

$ tensorboard --logdir=/host/handpose-datagenerator/tflog

/home/username/miniconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
2018-08-13 15:22:44.787012: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA                 
TensorBoard 1.7.0 at http://ubuntu:6006 (Press CTRL+C to quit)
W0813 15:22:46.327817 Reloader tf_logging.py:121] Found more than one graph event per run, or there was a metagraph containing a graph_def, as well as one or more graph events.  Overwriting the graph with the newest event.

localhost:6006にアクセスして無事表示出来た。

参考