“importerror: no module named site” Log file says to change PYTHONHOME to a directory? uWSGI / nginx /...
up vote
0
down vote
favorite
New to web applications so please excuse the ignorance. I did go through a number of other stackoverflow posts about ImportError: no module names site but didn't see any as relevant.
I am trying to host to the web from my raspberry pi. It is running nginx, uwsgi, and flask.
I am using the following with different directories:
https://github.com/futureshocked/RaspberryPi-FullStack/blob/master/lab_app_nginx.conf (nginx config)
https://github.com/futureshocked/RaspberryPi-FullStack/blob/master/lab_app_uwsgi.ini (uwsgi config)
https://github.com/futureshocked/RaspberryPi-FullStack/blob/master/hello.py (file to be run which should start flask)
Executing hello.py with uwsgi does not start flask and the following is from the log file:
*** Starting uWSGI 2.0.17.1 (32bit) on [Wed Nov 21 03:52:10 2018] ***
compiled with version: 6.3.0 20170516 on 21 November 2018 02:28:06
os: Linux-4.14.78-v7+ #1156 SMP Tue Oct 23 14:34:39 BST 2018
nodename: pulsar
machine: armv7l
clock source: unix
detected number of CPU cores: 4
current working directory: /var/log/uwsgi
detected binary path: /usr/local/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 5918
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 /home/bryan/Development/www/lab_app/lab_app_uwsgi.sock fd 3
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
Python version: 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516]
Set PythonHome to /home/bryan/Development/www/lab_app
ImportError: No module named site
The Set PythonHome to /home/bryan/Development/www/lab_app is confusing because I can not set PYTHONHOME to a directory (and what would that even accomplish)?
Any suggestions for resolution and/or suggestions for reading to better understand anything involved in this project appreciated.
Thank you for your time.
python nginx flask uwsgi
add a comment |
up vote
0
down vote
favorite
New to web applications so please excuse the ignorance. I did go through a number of other stackoverflow posts about ImportError: no module names site but didn't see any as relevant.
I am trying to host to the web from my raspberry pi. It is running nginx, uwsgi, and flask.
I am using the following with different directories:
https://github.com/futureshocked/RaspberryPi-FullStack/blob/master/lab_app_nginx.conf (nginx config)
https://github.com/futureshocked/RaspberryPi-FullStack/blob/master/lab_app_uwsgi.ini (uwsgi config)
https://github.com/futureshocked/RaspberryPi-FullStack/blob/master/hello.py (file to be run which should start flask)
Executing hello.py with uwsgi does not start flask and the following is from the log file:
*** Starting uWSGI 2.0.17.1 (32bit) on [Wed Nov 21 03:52:10 2018] ***
compiled with version: 6.3.0 20170516 on 21 November 2018 02:28:06
os: Linux-4.14.78-v7+ #1156 SMP Tue Oct 23 14:34:39 BST 2018
nodename: pulsar
machine: armv7l
clock source: unix
detected number of CPU cores: 4
current working directory: /var/log/uwsgi
detected binary path: /usr/local/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 5918
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 /home/bryan/Development/www/lab_app/lab_app_uwsgi.sock fd 3
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
Python version: 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516]
Set PythonHome to /home/bryan/Development/www/lab_app
ImportError: No module named site
The Set PythonHome to /home/bryan/Development/www/lab_app is confusing because I can not set PYTHONHOME to a directory (and what would that even accomplish)?
Any suggestions for resolution and/or suggestions for reading to better understand anything involved in this project appreciated.
Thank you for your time.
python nginx flask uwsgi
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
New to web applications so please excuse the ignorance. I did go through a number of other stackoverflow posts about ImportError: no module names site but didn't see any as relevant.
I am trying to host to the web from my raspberry pi. It is running nginx, uwsgi, and flask.
I am using the following with different directories:
https://github.com/futureshocked/RaspberryPi-FullStack/blob/master/lab_app_nginx.conf (nginx config)
https://github.com/futureshocked/RaspberryPi-FullStack/blob/master/lab_app_uwsgi.ini (uwsgi config)
https://github.com/futureshocked/RaspberryPi-FullStack/blob/master/hello.py (file to be run which should start flask)
Executing hello.py with uwsgi does not start flask and the following is from the log file:
*** Starting uWSGI 2.0.17.1 (32bit) on [Wed Nov 21 03:52:10 2018] ***
compiled with version: 6.3.0 20170516 on 21 November 2018 02:28:06
os: Linux-4.14.78-v7+ #1156 SMP Tue Oct 23 14:34:39 BST 2018
nodename: pulsar
machine: armv7l
clock source: unix
detected number of CPU cores: 4
current working directory: /var/log/uwsgi
detected binary path: /usr/local/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 5918
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 /home/bryan/Development/www/lab_app/lab_app_uwsgi.sock fd 3
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
Python version: 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516]
Set PythonHome to /home/bryan/Development/www/lab_app
ImportError: No module named site
The Set PythonHome to /home/bryan/Development/www/lab_app is confusing because I can not set PYTHONHOME to a directory (and what would that even accomplish)?
Any suggestions for resolution and/or suggestions for reading to better understand anything involved in this project appreciated.
Thank you for your time.
python nginx flask uwsgi
New to web applications so please excuse the ignorance. I did go through a number of other stackoverflow posts about ImportError: no module names site but didn't see any as relevant.
I am trying to host to the web from my raspberry pi. It is running nginx, uwsgi, and flask.
I am using the following with different directories:
https://github.com/futureshocked/RaspberryPi-FullStack/blob/master/lab_app_nginx.conf (nginx config)
https://github.com/futureshocked/RaspberryPi-FullStack/blob/master/lab_app_uwsgi.ini (uwsgi config)
https://github.com/futureshocked/RaspberryPi-FullStack/blob/master/hello.py (file to be run which should start flask)
Executing hello.py with uwsgi does not start flask and the following is from the log file:
*** Starting uWSGI 2.0.17.1 (32bit) on [Wed Nov 21 03:52:10 2018] ***
compiled with version: 6.3.0 20170516 on 21 November 2018 02:28:06
os: Linux-4.14.78-v7+ #1156 SMP Tue Oct 23 14:34:39 BST 2018
nodename: pulsar
machine: armv7l
clock source: unix
detected number of CPU cores: 4
current working directory: /var/log/uwsgi
detected binary path: /usr/local/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 5918
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 /home/bryan/Development/www/lab_app/lab_app_uwsgi.sock fd 3
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
Python version: 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516]
Set PythonHome to /home/bryan/Development/www/lab_app
ImportError: No module named site
The Set PythonHome to /home/bryan/Development/www/lab_app is confusing because I can not set PYTHONHOME to a directory (and what would that even accomplish)?
Any suggestions for resolution and/or suggestions for reading to better understand anything involved in this project appreciated.
Thank you for your time.
python nginx flask uwsgi
python nginx flask uwsgi
asked Nov 21 at 19:40
pr0me7heu2
11
11
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53419423%2fimporterror-no-module-named-site-log-file-says-to-change-pythonhome-to-a-dire%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown