Python, Nginx, uWsgi, Bottleの構成でさくらのVPSにウェブアプリを公開したいのですが、uwsgi --ini [ini file]
でエラーが出てしまいます。
uWSGI ERROR LOG
[uWSGI] getting INI configuration from tg-web.ini *** Starting uWSGI 2.0.15 (64bit) on [Thu Nov 30 10:50:46 2017] *** compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-16) on 30 November 2017 09:47:30 os: Linux-3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 nodename: kusanagi71 machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 3 current working directory: /var/www/tg-web.org detected binary path: /root/.pyenv/versions/anaconda3-5.0.1/bin/uwsgi setgid() to 1001 set additional group 10 (wheel) set additional group 1000 (www) setuid() to 1001 chdir() to /var/www/tg-web.org/ your processes number limit is 7920 your memory page size is 4096 bytes detected max file descriptor number: 1024 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to UNIX address /var/www/tg-web.org/uwsgi/run/socket fd 3 Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Python version: 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 12:05:00) [GCC 7.2.0] Set PythonHome to /home/kusanagi/.pyenv/versions/anaconda3-5.0.1/lib/python3.6/site-packages Fatal Python error: Py_Initialize: Unable to get the locale encoding ModuleNotFoundError: No module named 'encodings' Current thread 0x00007fe4ff208740 (most recent call first): 中止
uWSGI: iniファイル
[uwsgi] app = app master = true chdir = /var/www/tg-web.org/ file = app.py socket = /var/www/tg-web.org/uwsgi/run/socket chmod-socket = 666 uid = kusanagi gid = kusanagi venv = /home/kusanagi/.pyenv/versions/anaconda3-5.0.1/
nginx: default.conf
upstream _tgweb{ server unix:///var/www/tg-web.org/uwsgi/run/socket; } server{ listen 80; access_log /var/www/tg-web.org/uwsgi/log/access.log; root /var/www/tg-web.org; location / { include uwsgi_params; uwsgi_pass _tgweb; } }
これは一体何が悪いのでしょうか?
pyenvでanaconda3-5.0.1をインストールしましたが、このインストールがまずいのでしょうか。

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/12/02 16:19