-
Notifications
You must be signed in to change notification settings - Fork 691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build uwsgi with asyncio support in python3.5 #1100
Comments
wow quite a journey filing all these bugs :) Does adding CC=clang helps? can you please find out where greenlet.h is in your virtualenv? |
(setuptools-455) ➜ greenlet CC=clang CFLAGS="/Users/krace/code/snippets/setuptools-455/include/site/python3.5/greenlet" UWSGI_PROFILE="asyncio" pip install uwsgi
Collecting uwsgi
Using cached uwsgi-2.0.11.2.tar.gz
Building wheels for collected packages: uwsgi
Running setup.py bdist_wheel for uwsgi
Complete output from command /Users/krace/code/snippets/setuptools-455/bin/python3.5 -c "import setuptools;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-4enyvhua/uwsgi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/tmpjtnfu5j2pip-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build/lib
copying uwsgidecorators.py -> build/lib
installing to build/bdist.macosx-10.10-x86_64/wheel
running install
clang: error: /Users/krace/code/snippets/setuptools-455/include/site/python3.5/greenlet: 'linker' input unused
clang: error: /Users/krace/code/snippets/setuptools-455/include/site/python3.5/greenlet: 'linker' input unused
Failed building wheel for uwsgi
Failed to build uwsgi
Installing collected packages: uwsgi
Running setup.py install for uwsgi
Complete output from command /Users/krace/code/snippets/setuptools-455/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-4enyvhua/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-u92jvbks-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/krace/code/snippets/setuptools-455/include/site/python3.5/uwsgi:
running install
clang: error: /Users/krace/code/snippets/setuptools-455/include/site/python3.5/greenlet: 'linker' input unused
clang: error: /Users/krace/code/snippets/setuptools-455/include/site/python3.5/greenlet: 'linker' input unused
Command "/Users/krace/code/snippets/setuptools-455/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-4enyvhua/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-u92jvbks-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/krace/code/snippets/setuptools-455/include/site/python3.5/uwsgi" failed with error code 1 in /private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-4enyvhua/uwsgi
(setuptools-455) ➜ greenlet CFLAGS="/Users/krace/code/snippets/setuptools-455/include/site/python3.5/greenlet" UWSGI_PROFILE="asyncio" pip install uwsgi
Collecting uwsgi
Using cached uwsgi-2.0.11.2.tar.gz
Building wheels for collected packages: uwsgi
Running setup.py bdist_wheel for uwsgi
Complete output from command /Users/krace/code/snippets/setuptools-455/bin/python3.5 -c "import setuptools;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-83s5muiy/uwsgi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/tmpzt04skoypip-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build/lib
copying uwsgidecorators.py -> build/lib
installing to build/bdist.macosx-10.10-x86_64/wheel
running install
clang: error: /Users/krace/code/snippets/setuptools-455/include/site/python3.5/greenlet: 'linker' input unused
clang: error: /Users/krace/code/snippets/setuptools-455/include/site/python3.5/greenlet: 'linker' input unused
Failed building wheel for uwsgi
Failed to build uwsgi
Installing collected packages: uwsgi
Running setup.py install for uwsgi
Complete output from command /Users/krace/code/snippets/setuptools-455/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-83s5muiy/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-wy0v3jpz-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/krace/code/snippets/setuptools-455/include/site/python3.5/uwsgi:
running install
clang: error: /Users/krace/code/snippets/setuptools-455/include/site/python3.5/greenlet: 'linker' input unused
Command "/Users/krace/code/snippets/setuptools-455/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-83s5muiy/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-wy0v3jpz-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/krace/code/snippets/setuptools-455/include/site/python3.5/uwsgi" failed with error code 1 in /private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-83s5muiy/uwsgi
(setuptools-455) ➜ greenlet CFLAGS="/Users/krace/code/snippets/setuptools-455/include/site/python3.5" UWSGI_PROFILE="asyncio" pip install uwsgi
Collecting uwsgi
Using cached uwsgi-2.0.11.2.tar.gz
Building wheels for collected packages: uwsgi
Running setup.py bdist_wheel for uwsgi
Complete output from command /Users/krace/code/snippets/setuptools-455/bin/python3.5 -c "import setuptools;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-2nnyx5vh/uwsgi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/tmpvbpaipjwpip-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build/lib
copying uwsgidecorators.py -> build/lib
installing to build/bdist.macosx-10.10-x86_64/wheel
running install
clang: error: /Users/krace/code/snippets/setuptools-455/include/site/python3.5: 'linker' input unused
clang: error: /Users/krace/code/snippets/setuptools-455/include/site/python3.5: 'linker' input unused
Failed building wheel for uwsgi
Failed to build uwsgi
Installing collected packages: uwsgi
Running setup.py install for uwsgi
Complete output from command /Users/krace/code/snippets/setuptools-455/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-2nnyx5vh/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-tn1g7uo8-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/krace/code/snippets/setuptools-455/include/site/python3.5/uwsgi:
running install
clang: error: /Users/krace/code/snippets/setuptools-455/include/site/python3.5: 'linker' input unused
clang: error: /Users/krace/code/snippets/setuptools-455/include/site/python3.5: 'linker' input unused
Command "/Users/krace/code/snippets/setuptools-455/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-2nnyx5vh/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-tn1g7uo8-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/krace/code/snippets/setuptools-455/include/site/python3.5/uwsgi" failed with error code 1 in /private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-2nnyx5vh/uwsgi (setuptools-455) ➜ greenlet echo CC
CC
(setuptools-455) ➜ greenlet echo $CC
|
Well, as you can see throwing random strings at the compiler does not help. This should do the trick:
|
Well, I tried that as well didn't work. (setuptools-455) ➜ greenlet CC=clang CFLAGS="-I/Users/krace/code/snippets/setuptools-455/include/python3.5" UWSGI_PROFILE="asyncio" pip install uwsgi
Collecting uwsgi
Using cached uwsgi-2.0.11.2.tar.gz
Building wheels for collected packages: uwsgi
Running setup.py bdist_wheel for uwsgi
Complete output from command /Users/krace/code/snippets/setuptools-455/bin/python3.5 -c "import setuptools;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-fgphzj_w/uwsgi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/tmp01xg56mvpip-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build/lib
copying uwsgidecorators.py -> build/lib
installing to build/bdist.macosx-10.10-x86_64/wheel
running install
plugins/greenlet/greenlet.c:2:10: fatal error: 'greenlet/greenlet.h' file not found
#include <greenlet/greenlet.h>
^
1 error generated.
----------------------------------------
Failed building wheel for uwsgi
Failed to build uwsgi
Installing collected packages: uwsgi
Running setup.py install for uwsgi
Complete output from command /Users/krace/code/snippets/setuptools-455/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-fgphzj_w/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-g080dxz5-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/krace/code/snippets/setuptools-455/include/site/python3.5/uwsgi:
running install
plugins/greenlet/greenlet.c:2:10: fatal error: 'greenlet/greenlet.h' file not found
#include <greenlet/greenlet.h>
^
1 error generated.
----------------------------------------
Command "/Users/krace/code/snippets/setuptools-455/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-fgphzj_w/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-g080dxz5-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/krace/code/snippets/setuptools-455/include/site/python3.5/uwsgi" failed with error code 1 in /private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-fgphzj_w/uwsgi |
@kracekumar i've edited my comment, the path is different |
OTH (setuptools-455) ➜ python3.5 CC=clang CFLAGS="-I/Users/krace/code/snippets/setuptools-455/include/site/python3.5" UWSGI_PROFILE="asyncio" pip install uwsgi
Collecting uwsgi
Using cached uwsgi-2.0.11.2.tar.gz
Building wheels for collected packages: uwsgi
Running setup.py bdist_wheel for uwsgi
Stored in directory: /Users/krace/Library/Caches/pip/wheels/a7/33/50/7bb71db37249e30aabe7c1247f283bc19e299b533597c8bafd
Successfully built uwsgi
Installing collected packages: uwsgi
Successfully installed uwsgi-2.0.11.2
(setuptools-455) ➜ python3.5 cd ~/code/http_framework_probe
(setuptools-455) ➜ http_framework_probe git:(master) ✗ uwsgi --asyncio
uwsgi: unrecognized option `--asyncio'
getopt_long() error
(setuptools-455) ➜ http_framework_probe git:(master) ✗ uwsgi --asyncio --http-socket :8080 --wsgi-file flask_app.py
uwsgi: unrecognized option `--asyncio'
getopt_long() error
(setuptools-455) ➜ http_framework_probe git:(master) ✗ uwsgi --http-socket :8080 --wsgi-file flask_app.py
*** Starting uWSGI 2.0.11.2 (64bit) on [Tue Nov 3 15:18:15 2015] ***
compiled with version: 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72) on 02 November 2015 00:54:49
os: Darwin-14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64
nodename: Kracekumars-MacBook-Pro.local
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 4
current working directory: /Users/krace/code/http_framework_probe
detected binary path: /usr/local/bin/uwsgi
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 709
your memory page size is 4096 bytes
detected max file descriptor number: 256
lock engine: OSX spinlocks
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address :8080 fd 3
Python version: 3.5.0 (default, Sep 23 2015, 04:42:00) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x7fc050e00800
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 72760 bytes (71 KB) for 1 cores
*** Operational MODE: single process ***
WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x7fc050e00800 pid: 15093 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 15093, cores: 1)
^C% |
@kracekumar does --plugins asyncio as first parameter work? Even better calling just: uwsgi -- asyncio 10 works? |
@xrmx No, uwsgi is unable to locate the plugin uwsgi --plugins asyncio --http-socket :8080 --wsgi-file flask_app.py(setuptools-455) ➜ http_framework_probe git:(master) ✗ uwsgi --plugins asyncio --http-socket :8080 --wsgi-file flask_app.py
!!! UNABLE to load uWSGI plugin: dlopen(./asyncio_plugin.so, 10): image not found !!!
*** Starting uWSGI 2.0.11.2 (64bit) on [Tue Nov 3 22:29:47 2015] ***
compiled with version: 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72) on 02 November 2015 00:54:49
os: Darwin-14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64
nodename: Kracekumars-MacBook-Pro.local
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 4
current working directory: /Users/krace/code/http_framework_probe
detected binary path: /usr/local/bin/uwsgi
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 709
your memory page size is 4096 bytes
detected max file descriptor number: 256
lock engine: OSX spinlocks
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address :8080 fd 3
Python version: 3.5.0 (default, Sep 23 2015, 04:42:00) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x7faa53500160
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 72760 bytes (71 KB) for 1 cores
*** Operational MODE: single process ***
WSGI app 0 (mountpoint='') ready in 3 seconds on interpreter 0x7faa53500160 pid: 29360 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 29360, cores: 1)
(setuptools-455) ➜ http_framework_probe git:(master) ✗ uwsgi -- asyncio 10 # with space between dash and asyncio
unable to load configuration from asyncio
(setuptools-455) ➜ http_framework_probe git:(master) ✗ uwsgi --asyncio 10
uwsgi: unrecognized option `--asyncio'
getopt_long() error |
Some progress, I am able to build ➜ /tmp python3.5 -m venv py3.5 uwsgi
➜ /tmp . py3.5/bin/activate
(py3.5) ➜ /tmp pip install greenlet
Collecting greenlet
Installing collected packages: greenlet
Successfully installed greenlet-0.4.9
(py3.5) ➜ /tmp CC=clang CFLAGS="-I/tmp/py3.5/include/site/python3.5" UWSGI_PROFILE="asyncio" python -m pip --verbose --verbose --verbose install uwsgi
Collecting uwsgi
Using cached uwsgi-2.0.11.2.tar.gz
Downloading from URL https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.11.2.tar.gz#md5=1f02dcbee7f6f61de4b1fd68350cf16f (from https://pypi.python.org/simple/uwsgi/)
Running setup.py (path:/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-x2p151gb/uwsgi/setup.py) egg_info for package uwsgi
Running command python setup.py egg_info
running egg_info
creating pip-egg-info/uWSGI.egg-info
writing pip-egg-info/uWSGI.egg-info/PKG-INFO
writing top-level names to pip-egg-info/uWSGI.egg-info/top_level.txt
writing dependency_links to pip-egg-info/uWSGI.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/uWSGI.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info/uWSGI.egg-info/SOURCES.txt'
writing manifest file 'pip-egg-info/uWSGI.egg-info/SOURCES.txt'
Source in /private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-x2p151gb/uwsgi has version 2.0.11.2, which satisfies requirement uwsgi from https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.11.2.tar.gz#md5=1f02dcbee7f6f61de4b1fd68350cf16f
Installing collected packages: uwsgi
Running setup.py install for uwsgi
Running command /private/tmp/py3.5/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-x2p151gb/uwsgi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-mqwxobt6-record/install-record.txt --single-version-externally-managed --compile --install-headers /private/tmp/py3.5/include/site/python3.5/uwsgi
running install
using profile: buildconf/asyncio.ini
detected include path: ['/usr/local/include', '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.0/include', '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include', '/usr/include', '/System/Library/Frameworks', '/Library/Frameworks']
Patching "bin_name" to properly install_scripts dir
detected CPU cores: 4
configured CFLAGS: -O2 -I. -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/tmp/py3.5/include/site/python3.5 -fno-strict-aliasing -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-format -Wno-format-security -DUWSGI_HAS_IFADDRS -DUWSGI_ZLIB -mmacosx-version-min=10.5 -DUWSGI_LOCK_USE_OSX_SPINLOCK -DUWSGI_EVENT_USE_KQUEUE -DUWSGI_EVENT_TIMER_USE_KQUEUE -DUWSGI_EVENT_FILEMONITOR_USE_KQUEUE -I/usr/local/Cellar/pcre/8.37/include -DUWSGI_PCRE -DUWSGI_ROUTING -DUWSGI_UUID -DUWSGI_VERSION="\"2.0.11.2\"" -DUWSGI_VERSION_BASE="2" -DUWSGI_VERSION_MAJOR="0" -DUWSGI_VERSION_MINOR="11" -DUWSGI_VERSION_REVISION="2" -DUWSGI_VERSION_CUSTOM="\"\"" -DUWSGI_YAML -DUWSGI_SSL -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2 -DUWSGI_XML -DUWSGI_XML_LIBXML2 -DUWSGI_PLUGIN_DIR="\".\"" -DUWSGI_DECLARE_EMBEDDED_PLUGINS="UDEP(python);UDEP(asyncio);UDEP(greenlet);UDEP(ping);UDEP(cache);UDEP(nagios);UDEP(rrdtool);UDEP(carbon);UDEP(rpc);UDEP(corerouter);UDEP(fastrouter);UDEP(http);UDEP(ugreen);UDEP(signal);UDEP(syslog);UDEP(rsyslog);UDEP(logsocket);UDEP(router_uwsgi);UDEP(router_redirect);UDEP(router_basicauth);UDEP(zergpool);UDEP(redislog);UDEP(mongodblog);UDEP(router_rewrite);UDEP(router_http);UDEP(logfile);UDEP(router_cache);UDEP(rawrouter);UDEP(router_static);UDEP(sslrouter);UDEP(spooler);UDEP(cheaper_busyness);UDEP(symcall);UDEP(transformation_tofile);UDEP(transformation_gzip);UDEP(transformation_chunked);UDEP(transformation_offload);UDEP(router_memcached);UDEP(router_redis);UDEP(router_hash);UDEP(router_expires);UDEP(router_metrics);UDEP(transformation_template);UDEP(stats_pusher_socket);" -DUWSGI_LOAD_EMBEDDED_PLUGINS="ULEP(python);ULEP(asyncio);ULEP(greenlet);ULEP(ping);ULEP(cache);ULEP(nagios);ULEP(rrdtool);ULEP(carbon);ULEP(rpc);ULEP(corerouter);ULEP(fastrouter);ULEP(http);ULEP(ugreen);ULEP(signal);ULEP(syslog);ULEP(rsyslog);ULEP(logsocket);ULEP(router_uwsgi);ULEP(router_redirect);ULEP(router_basicauth);ULEP(zergpool);ULEP(redislog);ULEP(mongodblog);ULEP(router_rewrite);ULEP(router_http);ULEP(logfile);ULEP(router_cache);ULEP(rawrouter);ULEP(router_static);ULEP(sslrouter);ULEP(spooler);ULEP(cheaper_busyness);ULEP(symcall);ULEP(transformation_tofile);ULEP(transformation_gzip);ULEP(transformation_chunked);ULEP(transformation_offload);ULEP(router_memcached);ULEP(router_redis);ULEP(router_hash);ULEP(router_expires);ULEP(router_metrics);ULEP(transformation_template);ULEP(stats_pusher_socket);"
*** uWSGI compiling server core ***
[thread 3][clang] core/utils.o
[thread 2][clang] core/protocol.o
[thread 1][clang] core/socket.o
[thread 0][clang] core/logging.o
[thread 3][clang] core/master.o
[thread 2][clang] core/master_utils.o
[thread 1][clang] core/emperor.o
[thread 0][clang] core/notify.o
[thread 3][clang] core/mule.o
[thread 2][clang] core/subscription.o
[thread 1][clang] core/stats.o
[thread 0][clang] core/sendfile.o
[thread 3][clang] core/async.o
[thread 2][clang] core/master_checks.o
[thread 1][clang] core/fifo.o
[thread 0][clang] core/offload.o
[thread 3][clang] core/io.o
[thread 2][clang] core/static.o
[thread 1][clang] core/websockets.o
[thread 0][clang] core/spooler.o
[thread 3][clang] core/snmp.o
[thread 2][clang] core/exceptions.o
[thread 1][clang] core/config.o
[thread 0][clang] core/setup_utils.o
[thread 3][clang] core/clock.o
[thread 2][clang] core/init.o
[thread 1][clang] core/buffer.o
[thread 0][clang] core/reader.o
[thread 3][clang] core/writer.o
[thread 2][clang] core/alarm.o
[thread 1][clang] core/cron.o
[thread 0][clang] core/hooks.o
[thread 3][clang] core/plugins.o
[thread 2][clang] core/lock.o
[thread 1][clang] core/cache.o
[thread 0][clang] core/daemons.o
[thread 3][clang] core/errors.o
[thread 2][clang] core/hash.o
[thread 1][clang] core/master_events.o
[thread 0][clang] core/chunked.o
[thread 3][clang] core/queue.o
[thread 2][clang] core/event.o
[thread 1][clang] core/signal.o
[thread 0][clang] core/strings.o
[thread 3][clang] core/progress.o
[thread 2][clang] core/timebomb.o
[thread 1][clang] core/ini.o
[thread 0][clang] core/fsmon.o
[thread 3][clang] core/mount.o
[thread 2][clang] core/metrics.o
[thread 1][clang] core/plugins_builder.o
[thread 0][clang] core/sharedarea.o
[thread 3][clang] core/rpc.o
[thread 2][clang] core/gateway.o
[thread 1][clang] core/loop.o
[thread 0][clang] core/cookie.o
[thread 3][clang] core/querystring.o
[thread 2][clang] core/rb_timers.o
[thread 1][clang] core/transformations.o
[thread 0][clang] core/uwsgi.o
[thread 3][clang] proto/base.o
[thread 2][clang] proto/uwsgi.o
[thread 1][clang] proto/http.o
[thread 0][clang] proto/fastcgi.o
[thread 3][clang] proto/scgi.o
[thread 2][clang] proto/puwsgi.o
[thread 1][clang] core/zlib.o
[thread 0][clang] core/regexp.o
[thread 3][clang] core/routing.o
[thread 2][clang] core/yaml.o
[thread 1][clang] core/ssl.o
[thread 0][clang] core/legion.o
[thread 3][clang] core/xmlconf.o
[thread 2][clang] core/dot_h.o
[thread 1][clang] core/config_py.o
*** uWSGI compiling embedded plugins ***
[thread 0][clang] plugins/python/python_plugin.o
[thread 3][clang] plugins/python/pyutils.o
[thread 2][clang] plugins/python/pyloader.o
[thread 1][clang] plugins/python/wsgi_handlers.o
[thread 0][clang] plugins/python/wsgi_headers.o
[thread 3][clang] plugins/python/wsgi_subhandler.o
[thread 2][clang] plugins/python/web3_subhandler.o
[thread 1][clang] plugins/python/pump_subhandler.o
[thread 0][clang] plugins/python/gil.o
[thread 3][clang] plugins/python/uwsgi_pymodule.o
[thread 2][clang] plugins/python/profiler.o
[thread 1][clang] plugins/python/symimporter.o
[thread 0][clang] plugins/python/tracebacker.o
[thread 3][clang] plugins/python/raw.o
[thread 2][clang] plugins/asyncio/asyncio.o
[thread 1][clang] plugins/greenlet/greenlet.o
[thread 0][clang] plugins/ping/ping_plugin.o
[thread 3][clang] plugins/cache/cache.o
[thread 2][clang] plugins/nagios/nagios.o
[thread 1][clang] plugins/rrdtool/rrdtool.o
[thread 0][clang] plugins/carbon/carbon.o
[thread 3][clang] plugins/rpc/rpc_plugin.o
[thread 2][clang] plugins/corerouter/cr_common.o
[thread 1][clang] plugins/corerouter/cr_map.o
[thread 0][clang] plugins/corerouter/corerouter.o
[thread 3][clang] plugins/fastrouter/fastrouter.o
[thread 2][clang] plugins/http/http.o
[thread 1][clang] plugins/http/keepalive.o
[thread 0][clang] plugins/http/https.o
[thread 3][clang] plugins/http/spdy3.o
[thread 2][clang] plugins/ugreen/ugreen.o
[thread 1][clang] plugins/signal/signal_plugin.o
[thread 0][clang] plugins/syslog/syslog_plugin.o
[thread 3][clang] plugins/rsyslog/rsyslog_plugin.o
[thread 2][clang] plugins/logsocket/logsocket_plugin.o
[thread 1][clang] plugins/router_uwsgi/router_uwsgi.o
[thread 0][clang] plugins/router_redirect/router_redirect.o
[thread 3][clang] plugins/router_basicauth/router_basicauth.o
[thread 2][clang] plugins/zergpool/zergpool.o
[thread 1][clang] plugins/redislog/redislog_plugin.o
[thread 0][clang] plugins/mongodblog/mongodblog_plugin.o
[thread 3][clang] plugins/router_rewrite/router_rewrite.o
[thread 2][clang] plugins/router_http/router_http.o
[thread 1][clang] plugins/logfile/logfile.o
[thread 0][clang] plugins/router_cache/router_cache.o
[thread 3][clang] plugins/rawrouter/rawrouter.o
[thread 2][clang] plugins/router_static/router_static.o
[thread 1][clang] plugins/sslrouter/sslrouter.o
[thread 0][clang] plugins/spooler/spooler_plugin.o
[thread 3][clang] plugins/cheaper_busyness/cheaper_busyness.o
[thread 2][clang] plugins/symcall/symcall_plugin.o
[thread 1][clang] plugins/transformation_tofile/tofile.o
[thread 0][clang] plugins/transformation_gzip/gzip.o
[thread 3][clang] plugins/transformation_chunked/chunked.o
[thread 2][clang] plugins/transformation_offload/offload.o
[thread 1][clang] plugins/router_memcached/router_memcached.o
[thread 0][clang] plugins/router_redis/router_redis.o
[thread 3][clang] plugins/router_hash/router_hash.o
[thread 2][clang] plugins/router_expires/expires.o
[thread 1][clang] plugins/router_metrics/plugin.o
[thread 0][clang] plugins/transformation_template/tt.o
[thread 3][clang] plugins/stats_pusher_socket/plugin.o
*** uWSGI linking ***
clang -o /private/tmp/py3.5/bin/uwsgi core/utils.o core/protocol.o core/socket.o core/logging.o core/master.o core/master_utils.o core/emperor.o core/notify.o core/mule.o core/subscription.o core/stats.o core/sendfile.o core/async.o core/master_checks.o core/fifo.o core/offload.o core/io.o core/static.o core/websockets.o core/spooler.o core/snmp.o core/exceptions.o core/config.o core/setup_utils.o core/clock.o core/init.o core/buffer.o core/reader.o core/writer.o core/alarm.o core/cron.o core/hooks.o core/plugins.o core/lock.o core/cache.o core/daemons.o core/errors.o core/hash.o core/master_events.o core/chunked.o core/queue.o core/event.o core/signal.o core/strings.o core/progress.o core/timebomb.o core/ini.o core/fsmon.o core/mount.o core/metrics.o core/plugins_builder.o core/sharedarea.o core/rpc.o core/gateway.o core/loop.o core/cookie.o core/querystring.o core/rb_timers.o core/transformations.o core/uwsgi.o proto/base.o proto/uwsgi.o proto/http.o proto/fastcgi.o proto/scgi.o proto/puwsgi.o core/zlib.o core/regexp.o core/routing.o core/yaml.o core/ssl.o core/legion.o core/xmlconf.o core/dot_h.o core/config_py.o plugins/python/python_plugin.o plugins/python/pyutils.o plugins/python/pyloader.o plugins/python/wsgi_handlers.o plugins/python/wsgi_headers.o plugins/python/wsgi_subhandler.o plugins/python/web3_subhandler.o plugins/python/pump_subhandler.o plugins/python/gil.o plugins/python/uwsgi_pymodule.o plugins/python/profiler.o plugins/python/symimporter.o plugins/python/tracebacker.o plugins/python/raw.o plugins/asyncio/asyncio.o plugins/greenlet/greenlet.o plugins/ping/ping_plugin.o plugins/cache/cache.o plugins/nagios/nagios.o plugins/rrdtool/rrdtool.o plugins/carbon/carbon.o plugins/rpc/rpc_plugin.o plugins/corerouter/cr_common.o plugins/corerouter/cr_map.o plugins/corerouter/corerouter.o plugins/fastrouter/fastrouter.o plugins/http/http.o plugins/http/keepalive.o plugins/http/https.o plugins/http/spdy3.o plugins/ugreen/ugreen.o plugins/signal/signal_plugin.o plugins/syslog/syslog_plugin.o plugins/rsyslog/rsyslog_plugin.o plugins/logsocket/logsocket_plugin.o plugins/router_uwsgi/router_uwsgi.o plugins/router_redirect/router_redirect.o plugins/router_basicauth/router_basicauth.o plugins/zergpool/zergpool.o plugins/redislog/redislog_plugin.o plugins/mongodblog/mongodblog_plugin.o plugins/router_rewrite/router_rewrite.o plugins/router_http/router_http.o plugins/logfile/logfile.o plugins/router_cache/router_cache.o plugins/rawrouter/rawrouter.o plugins/router_static/router_static.o plugins/sslrouter/sslrouter.o plugins/spooler/spooler_plugin.o plugins/cheaper_busyness/cheaper_busyness.o plugins/symcall/symcall_plugin.o plugins/transformation_tofile/tofile.o plugins/transformation_gzip/gzip.o plugins/transformation_chunked/chunked.o plugins/transformation_offload/offload.o plugins/router_memcached/router_memcached.o plugins/router_redis/router_redis.o plugins/router_hash/router_hash.o plugins/router_expires/expires.o plugins/router_metrics/plugin.o plugins/transformation_template/tt.o plugins/stats_pusher_socket/plugin.o -lpthread -lm -lz -L/usr/local/Cellar/pcre/8.37/lib -lpcre -lssl -lcrypto -lxml2 -ldl -framework CoreFoundation /usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/config-3.5m/libpython3.5m.a
################# uWSGI configuration #################
locking = osx_spinlock
debug = False
event = kqueue
malloc = libc
timer = kqueue
filemonitor = kqueue
xml = libxml2
execinfo = False
plugin_dir = .
ifaddrs = True
ssl = True
pcre = True
zlib = True
yaml = embedded
capabilities = False
routing = True
json = False
kernel = Darwin
############## end of uWSGI configuration #############
total build time: 32 seconds
*** uWSGI is ready, launch it with /private/tmp/py3.5/bin/uwsgi ***
running build
running build_py
creating build
creating build/lib
copying uwsgidecorators.py -> build/lib
running install_lib
copying build/lib/uwsgidecorators.py -> /private/tmp/py3.5/lib/python3.5/site-packages
byte-compiling /private/tmp/py3.5/lib/python3.5/site-packages/uwsgidecorators.py to uwsgidecorators.cpython-35.pyc
running install_egg_info
running egg_info
creating uWSGI.egg-info
writing uWSGI.egg-info/PKG-INFO
writing dependency_links to uWSGI.egg-info/dependency_links.txt
writing top-level names to uWSGI.egg-info/top_level.txt
writing manifest file 'uWSGI.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'uWSGI.egg-info/SOURCES.txt'
writing manifest file 'uWSGI.egg-info/SOURCES.txt'
Copying uWSGI.egg-info to /private/tmp/py3.5/lib/python3.5/site-packages/uWSGI-2.0.11.2-py3.5.egg-info
running install_scripts
writing list of installed files to '/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-mqwxobt6-record/install-record.txt'
Removing source in /private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-x2p151gb/uwsgi
Successfully installed uwsgi-2.0.11.2
Cleaning up...
(py3.5) ➜ /tmp /private/tmp/py3.5/bin/uwsgi --asyncio 10
*** Starting uWSGI 2.0.11.2 (64bit) on [Thu Nov 5 01:47:08 2015] ***
compiled with version: 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72) on 05 November 2015 01:46:20
os: Darwin-14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64
nodename: Kracekumars-MacBook-Pro.local
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 4
current working directory: /private/tmp
detected binary path: /private/tmp/py3.5/bin/uwsgi
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 709
your memory page size is 4096 bytes
detected max file descriptor number: 256
- async cores set to 10 - fd table size: 256
lock engine: OSX spinlocks
thunder lock: disabled (you can enable it with --thunder-lock)
Python version: 3.5.0 (default, Sep 23 2015, 04:42:00) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.72)]
Python main interpreter initialized at 0x7ff139409770
python threads support enabled
your mercy for graceful operations on workers is 60 seconds
mapped 165424 bytes (161 KB) for 10 cores
*** Operational MODE: async ***
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 2334, cores: 10)
*** running asyncio loop engine [addr:0x10bcf3f50] ***
*** DANGER *** asyncio mode without coroutine/greenthread engine loaded !!!
^C% Was there a change from uwsgi side in last day or two ? I am confused how it worked now. |
@kracekumar you were calling a uwsgi outside the virtualenv! I thought from your (very confusing imho) prompt you had activated your virtualenv but it looks you did not. So to answer your question: nothing has changed. Closing. |
@xrmx I indeed activated the venv. The problem is Also |
@kracekumar /usr/local/include/python3.5 looks like a system installation and not a virtualenv. So the only thing different from the docs i see is the '/site/' part of your path. Which could be a difference between virtualenv and python shipped virtualenv. I don't know. |
@xrmx Exactly there is a difference (couldn't find docs for that), is it worth adding that in docs ? |
@kracekumar so tried virtualenv and pyvenv-3.5 and in both pip put greenlet header inside "include/site/pythonVERSION/" so i think the documentation should be made more explicit to say that if uwsgi cannot locate the greenlet header file you have to locate it inside the virtualenv and pass the containing dir as include dir in CFLAGS. BTW on my debian machine it installs without CFLAGS. |
I have reported this in CPython bug tracker https://bugs.python.org/issue25531 and setuptools https://bitbucket.org/pypa/setuptools/issues/455.
I am opening this issue to check to double check nothing is wrong from uwsgi side.
The text was updated successfully, but these errors were encountered: