Created
November 22, 2012 09:29
-
-
Save GrahamDumpleton/4130197 to your computer and use it in GitHub Desktop.
uWSGI virtual environment PYTHONHOME issues.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(uwsgi-testing)Grumpys-MacBook-Pro-15:htdocs graham$ which python | |
/Users/graham/Python/uwsgi-testing/bin/python | |
(uwsgi-testing)Grumpys-MacBook-Pro-15:htdocs graham$ python | |
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) | |
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import sys | |
>>> sys.prefix | |
'/Users/graham/Python/uwsgi-testing/bin/..' | |
>>> ^D | |
(uwsgi-testing)Grumpys-MacBook-Pro-15:htdocs graham$ cat test.py | |
import sys | |
print 'SYS.PREFIX', sys.prefix | |
def application(*args): pass | |
(uwsgi-testing)Grumpys-MacBook-Pro-15:htdocs graham$ python test.py | |
SYS.PREFIX /Users/graham/Python/uwsgi-testing/bin/.. | |
(uwsgi-testing)Grumpys-MacBook-Pro-15:htdocs graham$ uwsgi --enable-threads --single-interpreter -C -s /tmp/uwsgi.sock test.py*** Starting uWSGI 1.4.1 (64bit) on [Thu Nov 22 20:25:49 2012] *** | |
compiled with version: 4.2.1 (Apple Inc. build 5666) (dot 3) on 22 November 2012 16:19:23 | |
os: Darwin-10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 | |
nodename: Grumpys-MacBook-Pro-15.local | |
machine: i386 | |
clock source: unix | |
detected number of CPU cores: 4 | |
current working directory: /Library/WebServer/Sites/hello-1/htdocs | |
detected binary path: /Users/graham/Python/uwsgi-testing/bin/uwsgi | |
*** WARNING: you are running uWSGI without its master process manager *** | |
your processes number limit is 266 | |
your memory page size is 4096 bytes | |
detected max file descriptor number: 256 | |
lock engine: OSX spinlocks | |
chmod() socket to 666 for lazy and brave users | |
uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 3 | |
Python version: 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] | |
Python main interpreter initialized at 0x100309460 | |
python threads support enabled | |
your server socket listen backlog is limited to 100 connections | |
mapped 72384 bytes (70 KB) for 1 cores | |
*** Operational MODE: single process *** | |
SYS.PREFIX /System/Library/Frameworks/Python.framework/Versions/2.6 | |
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x100309460 pid: 9754 (default app) | |
spawned uWSGI worker 1 (and the only) (pid: 9754, cores: 1) | |
(uwsgi-testing)Grumpys-MacBook-Pro-15:htdocs graham$ uwsgi -C -s /tmp/uwsgi.sock test.py | |
*** Starting uWSGI 1.4.1 (64bit) on [Thu Nov 22 20:26:08 2012] *** | |
compiled with version: 4.2.1 (Apple Inc. build 5666) (dot 3) on 22 November 2012 16:19:23 | |
os: Darwin-10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 | |
nodename: Grumpys-MacBook-Pro-15.local | |
machine: i386 | |
clock source: unix | |
detected number of CPU cores: 4 | |
current working directory: /Library/WebServer/Sites/hello-1/htdocs | |
detected binary path: /Users/graham/Python/uwsgi-testing/bin/uwsgi | |
*** WARNING: you are running uWSGI without its master process manager *** | |
your processes number limit is 266 | |
your memory page size is 4096 bytes | |
detected max file descriptor number: 256 | |
lock engine: OSX spinlocks | |
chmod() socket to 666 for lazy and brave users | |
uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 3 | |
Python version: 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] | |
*** Python threads support is disabled. You can enable it with --enable-threads *** | |
Python main interpreter initialized at 0x1003093a0 | |
your server socket listen backlog is limited to 100 connections | |
mapped 72384 bytes (70 KB) for 1 cores | |
*** Operational MODE: single process *** | |
SYS.PREFIX /System/Library/Frameworks/Python.framework/Versions/2.6 | |
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x1003093a0 pid: 9756 (default app) | |
*** uWSGI is running in multiple interpreter mode *** | |
spawned uWSGI worker 1 (and the only) (pid: 9756, cores: 1) | |
(uwsgi-testing)Grumpys-MacBook-Pro-15:htdocs graham$ uwsgi -C -s /tmp/uwsgi.sk -H /Users/graham/Python/uwsgi-testing test.py | |
*** Starting uWSGI 1.4.1 (64bit) on [Thu Nov 22 20:26:43 2012] *** | |
compiled with version: 4.2.1 (Apple Inc. build 5666) (dot 3) on 22 November 2012 16:19:23 | |
os: Darwin-10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 | |
nodename: Grumpys-MacBook-Pro-15.local | |
machine: i386 | |
clock source: unix | |
detected number of CPU cores: 4 | |
current working directory: /Library/WebServer/Sites/hello-1/htdocs | |
detected binary path: /Users/graham/Python/uwsgi-testing/bin/uwsgi | |
*** WARNING: you are running uWSGI without its master process manager *** | |
your processes number limit is 266 | |
your memory page size is 4096 bytes | |
detected max file descriptor number: 256 | |
lock engine: OSX spinlocks | |
chmod() socket to 666 for lazy and brave users | |
uwsgi socket 0 bound to UNIX address /tmp/uwsgi.sock fd 3 | |
Python version: 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] | |
Set PythonHome to /Users/graham/Python/uwsgi-testing | |
*** Python threads support is disabled. You can enable it with --enable-threads *** | |
Python main interpreter initialized at 0x100309440 | |
your server socket listen backlog is limited to 100 connections | |
mapped 72384 bytes (70 KB) for 1 cores | |
*** Operational MODE: single process *** | |
SYS.PREFIX /Users/graham/Python/uwsgi-testing | |
WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x100309440 pid: 9757 (default app) | |
*** uWSGI is running in multiple interpreter mode *** | |
spawned uWSGI worker 1 (and the only) (pid: 9757, cores: 1) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment