New submission from kracekumar ramaraju: I am using OSX 10.10.5 (14F27) and Python 3.5. Python 3.5 was installed via brew. When greenlet is installed inside virtualenv using py3.5 header files are missing inside /path/to/venv/include/python3.5m. As a result uwsgi is unable to build with asyncio support
~ brew info python3 python3: stable 3.5.0 (bottled), HEAD Interpreted, interactive, object-oriented programming language https://www.python.org/ /usr/local/Cellar/python3/3.4.3 (4721 files, 82M) Poured from bottle /usr/local/Cellar/python3/3.4.3_2 (5948 files, 98M) Built from source /usr/local/Cellar/python3/3.5.0 (3573 files, 61M) * Poured from bottle From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/python3.rb ==> Dependencies Build: xz , pkg-config Required: openssl Recommended: readline , sqlite , gdbm , xz Optional: homebrew/dupes/tcl-tk Steps to reproduce ------------------ 1. Create a venv $/tmp python3.5 -m virtualenv venv_bug 2. Install greenlet $/tmp . venv_bug/bin/activate (venv_bug)$/tmp pip install greenlet Collecting greenlet Using cached greenlet-0.4.9.tar.gz Building wheels for collected packages: greenlet Running setup.py bdist_wheel for greenlet Complete output from command /private/tmp/venv_bug/bin/python3.5 -c "import setuptools;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-sxtdlufe/greenlet/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/tmpf6g8rwt_pip-wheel-: running bdist_wheel running build running build_ext building 'greenlet' extension creating build creating build/temp.macosx-10.10-x86_64-3.5 clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/include/python3.5m -c greenlet.c -o build/temp.macosx-10.10-x86_64-3.5/greenlet.o creating build/lib.macosx-10.10-x86_64-3.5 clang -bundle -undefined dynamic_lookup build/temp.macosx-10.10-x86_64-3.5/greenlet.o -o build/lib.macosx-10.10-x86_64-3.5/greenlet.cpython-35m-darwin.so installing to build/bdist.macosx-10.10-x86_64/wheel running install running install_lib creating build/bdist.macosx-10.10-x86_64 creating build/bdist.macosx-10.10-x86_64/wheel copying build/lib.macosx-10.10-x86_64-3.5/greenlet.cpython-35m-darwin.so -> build/bdist.macosx-10.10-x86_64/wheel running install_headers creating build/bdist.macosx-10.10-x86_64/wheel/greenlet-0.4.9.data creating build/bdist.macosx-10.10-x86_64/wheel/greenlet-0.4.9.data/headers copying greenlet.h -> build/bdist.macosx-10.10-x86_64/wheel/greenlet-0.4.9.data/headers running install_egg_info running egg_info creating greenlet.egg-info writing top-level names to greenlet.egg-info/top_level.txt writing greenlet.egg-info/PKG-INFO writing dependency_links to greenlet.egg-info/dependency_links.txt writing manifest file 'greenlet.egg-info/SOURCES.txt' warning: manifest_maker: standard file '-c' not found reading manifest file 'greenlet.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'greenlet.egg-info/SOURCES.txt' Copying greenlet.egg-info to build/bdist.macosx-10.10-x86_64/wheel/greenlet-0.4.9-py3.5.egg-info running install_scripts Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-sxtdlufe/greenlet/setup.py", line 101, in <module> **setuptools_args) File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/private/tmp/venv_bug/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 213, in run archive_basename = self.get_archive_basename() File "/private/tmp/venv_bug/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 161, in get_archive_basename impl_tag, abi_tag, plat_tag = self.get_tag() File "/private/tmp/venv_bug/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 155, in get_tag assert tag == supported_tags[0] AssertionError ---------------------------------------- Failed building wheel for greenlet Failed to build greenlet Installing collected packages: greenlet Running setup.py install for greenlet Successfully installed greenlet-0.4.9 3. Install uWSGI (venv_bug)$ /tmp CFLAGS="-I/tmp/venv_bug/include/python3.5m" 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 /private/tmp/venv_bug/bin/python3.5 -c "import setuptools;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-bru7wwac/uwsgi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/tmpwoq08qywpip-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 /private/tmp/venv_bug/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-bru7wwac/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-69gibzr6-record/install-record.txt --single-version-externally-managed --compile --install-headers /private/tmp/venv_bug/bin/../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 "/private/tmp/venv_bug/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-bru7wwac/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-69gibzr6-record/install-record.txt --single-version-externally-managed --compile --install-headers /private/tmp/venv_bug/bin/../include/site/python3.5/uwsgi" failed with error code 1 in /private/var/folders/xk/8lhz2_j91_3758cc65stj5z40000gn/T/pip-build-bru7wwac/uwsgi Also setuptools is at latest version 18.2. Installing uwsgi site wide succeeds. greenlet directory is present inside `python3.5m`. (venv_bug)$ /tmp ls -la /usr/local/include/python3.5m | grep greenlet drwxr-xr-x 3 root admin 102 Nov 1 20:40 greenlet Links: uWSGI asyncio: https://uwsgi-docs.readthedocs.org/en/latest/asyncio.html#building-uwsgi-with-asyncio-support Greenlet issue thread: https://github.com/python-greenlet/greenlet/issues/96 ---------- components: Macintosh messages: 253870 nosy: kracekumar, ned.deily, ronaldoussoren priority: normal severity: normal status: open title: greenlet header file is missing inside virtualenv type: behavior versions: Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25531> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com