简体   繁体   English

无法访问AWS EC2实例上的Tensorboard

[英]Unable to access Tensorboard on AWS EC2 Instance

I am using a p2xlarge AWS EC2 Instance for training Tensorflow Models. 我正在使用p2xlarge AWS EC2实例来训练Tensorflow模型。 Training an Evaluation works perfectly fine, but when i try to access / run Tensorboard is face the following error: 训练评估工作正常,但是当我尝试访问/运行Tensorboard时遇到以下错误:

RuntimeError: module compiled against API version 0xc but this version of numpy is 0xa
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xa
/home/ubuntu/anaconda3/envs/tensorflow_p27/lib/python2.7/site-packages/matplotlib/__init__.py:1067: UserWarning: Duplicate key in file "/home/ubuntu/.config/matplotlib/matplotlibrc", line #2
  (fname, cnt))
/home/ubuntu/anaconda3/envs/tensorflow_p27/lib/python2.7/site-packages/matplotlib/__init__.py:1067: UserWarning: Duplicate key in file "/home/ubuntu/.config/matplotlib/matplotlibrc", line #3
  (fname, cnt))
Traceback (most recent call last):
  File "/home/ubuntu/anaconda3/envs/tensorflow_p27/bin/tensorboard", line 11, in <module>
    sys.exit(run_main())
  File "/home/ubuntu/anaconda3/envs/tensorflow_p27/lib/python2.7/site-packages/tensorboard/main.py", line 36, in run_main
    tf.app.run(main)
  File "/home/ubuntu/anaconda3/envs/tensorflow_p27/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 126, in run
    _sys.exit(main(argv))
  File "/home/ubuntu/anaconda3/envs/tensorflow_p27/lib/python2.7/site-packages/tensorboard/main.py", line 45, in main
    default.get_assets_zip_provider())
  File "/home/ubuntu/anaconda3/envs/tensorflow_p27/lib/python2.7/site-packages/tensorboard/program.py", line 152, in main
    util.setup_logging()
  File "/home/ubuntu/anaconda3/envs/tensorflow_p27/lib/python2.7/site-packages/tensorboard/util.py", line 50, in setup_logging
    locale.setlocale(locale.LC_ALL, '')
  File "/home/ubuntu/anaconda3/envs/tensorflow_p27/lib/python2.7/locale.py", line 581, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

I am using the anaconda tensorflow_p27 environment and to make my project run i had to install PIL and to be able to do this numpy was downgraded. 我正在使用anaconda tensorflow_p27环境,并且要使我的项目运行,我必须安装PIL并能够执行此numpy降级操作。 the numpy error is always shown but normally does not influence tensorflow in any negative way. numpy错误始终显示,但通常不会以任何负面方式影响张量流。

Has somebody seen this error before / knows how to solve it? 在知道/如何解决该错误之前,有人曾见过此错误吗?

This error is related with the locale configuration of the instance (which probably is not set. 此错误与实例的语言环境配置有关(可能未设置)。

Setting that with the following commands should solve the problem: 使用以下命令设置可以解决该问题:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM