feather: Install fails on OS X
pip install feather-format fails on OS X 10.11.4 (Kernel Darwin 15.4.0).
I assume this is a problem with my system (missing header file?), but reported it in case it is a general issue.
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 7.0.2 (clang-700.1.81) Target: x86_64-apple-darwin15.4.0 Thread model: posix
Traceback:
Collecting feather-format
Using cached feather-format-0.1.0.tar.gz
Requirement already satisfied (use --upgrade to upgrade): cython>=0.21 in /Volumes/Pelennor/anaconda/anaconda/lib/python3.5/site-packages (from feather-format)
Building wheels for collected packages: feather-format
Running setup.py bdist_wheel for feather-format ... error
Complete output from command /Volumes/Pelennor/anaconda/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/p2/3z8mg4kd6zd8flycq_5gpzmh0000gn/T/pip-build-9b_xtjxe/feather-format/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /var/folders/p2/3z8mg4kd6zd8flycq_5gpzmh0000gn/T/tmpdnjjsaatpip-wheel- --python-tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.5-x86_64-3.5
creating build/lib.macosx-10.5-x86_64-3.5/feather
copying feather/__init__.py -> build/lib.macosx-10.5-x86_64-3.5/feather
copying feather/api.py -> build/lib.macosx-10.5-x86_64-3.5/feather
copying feather/compat.py -> build/lib.macosx-10.5-x86_64-3.5/feather
copying feather/version.py -> build/lib.macosx-10.5-x86_64-3.5/feather
creating build/lib.macosx-10.5-x86_64-3.5/feather/tests
copying feather/tests/__init__.py -> build/lib.macosx-10.5-x86_64-3.5/feather/tests
copying feather/tests/test_reader.py -> build/lib.macosx-10.5-x86_64-3.5/feather/tests
copying feather/libfeather.pxd -> build/lib.macosx-10.5-x86_64-3.5/feather
copying feather/ext.pyx -> build/lib.macosx-10.5-x86_64-3.5/feather
running build_ext
building 'feather.ext' extension
creating build/temp.macosx-10.5-x86_64-3.5
creating build/temp.macosx-10.5-x86_64-3.5/feather
creating build/temp.macosx-10.5-x86_64-3.5/src
creating build/temp.macosx-10.5-x86_64-3.5/src/feather
gcc -fno-strict-aliasing -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Volumes/Pelennor/anaconda/anaconda/include -arch x86_64 -Ifeather -I/Volumes/Pelennor/anaconda/anaconda/lib/python3.5/site-packages/numpy/core/include -I/private/var/folders/p2/3z8mg4kd6zd8flycq_5gpzmh0000gn/T/pip-build-9b_xtjxe/feather-format/src -I/Volumes/Pelennor/anaconda/anaconda/include/python3.5m -c feather/ext.cpp -o build/temp.macosx-10.5-x86_64-3.5/feather/ext.o -std=c++11 -O3
In file included from feather/ext.cpp:286:
In file included from /private/var/folders/p2/3z8mg4kd6zd8flycq_5gpzmh0000gn/T/pip-build-9b_xtjxe/feather-format/src/feather/api.h:18:
/private/var/folders/p2/3z8mg4kd6zd8flycq_5gpzmh0000gn/T/pip-build-9b_xtjxe/feather-format/src/feather/buffer.h:19:10: fatal error: 'cstdint' file not found
#include <cstdint>
^
1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for feather-format
Running setup.py clean for feather-format
Failed to build feather-format
Installing collected packages: feather-format
Running setup.py install for feather-format ... error
Complete output from command /Volumes/Pelennor/anaconda/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/p2/3z8mg4kd6zd8flycq_5gpzmh0000gn/T/pip-build-9b_xtjxe/feather-format/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/p2/3z8mg4kd6zd8flycq_5gpzmh0000gn/T/pip-bb9hhfdn-record/install-record.txt --single-version-externally-managed --compile:
Compiling feather/ext.pyx because it changed.
[1/1] Cythonizing feather/ext.pyx
running install
running build
running build_py
creating build
creating build/lib.macosx-10.5-x86_64-3.5
creating build/lib.macosx-10.5-x86_64-3.5/feather
copying feather/__init__.py -> build/lib.macosx-10.5-x86_64-3.5/feather
copying feather/api.py -> build/lib.macosx-10.5-x86_64-3.5/feather
copying feather/compat.py -> build/lib.macosx-10.5-x86_64-3.5/feather
copying feather/version.py -> build/lib.macosx-10.5-x86_64-3.5/feather
creating build/lib.macosx-10.5-x86_64-3.5/feather/tests
copying feather/tests/__init__.py -> build/lib.macosx-10.5-x86_64-3.5/feather/tests
copying feather/tests/test_reader.py -> build/lib.macosx-10.5-x86_64-3.5/feather/tests
copying feather/libfeather.pxd -> build/lib.macosx-10.5-x86_64-3.5/feather
copying feather/ext.pyx -> build/lib.macosx-10.5-x86_64-3.5/feather
running build_ext
building 'feather.ext' extension
creating build/temp.macosx-10.5-x86_64-3.5
creating build/temp.macosx-10.5-x86_64-3.5/feather
creating build/temp.macosx-10.5-x86_64-3.5/src
creating build/temp.macosx-10.5-x86_64-3.5/src/feather
gcc -fno-strict-aliasing -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Volumes/Pelennor/anaconda/anaconda/include -arch x86_64 -Ifeather -I/Volumes/Pelennor/anaconda/anaconda/lib/python3.5/site-packages/numpy/core/include -I/private/var/folders/p2/3z8mg4kd6zd8flycq_5gpzmh0000gn/T/pip-build-9b_xtjxe/feather-format/src -I/Volumes/Pelennor/anaconda/anaconda/include/python3.5m -c feather/ext.cpp -o build/temp.macosx-10.5-x86_64-3.5/feather/ext.o -std=c++11 -O3
In file included from feather/ext.cpp:283:
In file included from /private/var/folders/p2/3z8mg4kd6zd8flycq_5gpzmh0000gn/T/pip-build-9b_xtjxe/feather-format/src/feather/api.h:18:
/private/var/folders/p2/3z8mg4kd6zd8flycq_5gpzmh0000gn/T/pip-build-9b_xtjxe/feather-format/src/feather/buffer.h:19:10: fatal error: 'cstdint' file not found
#include <cstdint>
^
1 error generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/Volumes/Pelennor/anaconda/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/p2/3z8mg4kd6zd8flycq_5gpzmh0000gn/T/pip-build-9b_xtjxe/feather-format/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/p2/3z8mg4kd6zd8flycq_5gpzmh0000gn/T/pip-bb9hhfdn-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/p2/3z8mg4kd6zd8flycq_5gpzmh0000gn/T/pip-build-9b_xtjxe/feather-format
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (3 by maintainers)
I have just discovered that setting
export MACOSX_DEPLOYMENT_TARGET=10.10fixes the issue.What about
MACOSX_DEPLOYMENT_TARGET=10.11?