resampy: Failing to build or install by pypi on linux - interp.c ?
I can see the similar issues being opened for OSX and Windows yet there is still an issue with interp.c.
Here is my output of sudo pip install resampy:
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.10 in /usr/lib/python2.7/dist-packages (from resampy)
Requirement already satisfied (use --upgrade to upgrade): scipy>=0.13 in /usr/local/lib/python2.7/dist-packages (from resampy)
Requirement already satisfied (use --upgrade to upgrade): six>=1.3 in /usr/lib/python2.7/dist-packages (from resampy)
Requirement already satisfied (use --upgrade to upgrade): Cython>=0.23 in /usr/local/lib/python2.7/dist-packages (from resampy)
Installing collected packages: resampy
Running setup.py install for resampy ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-4m1Ait/resampy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-m9MyHv-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/resampy
copying resampy/version.py -> build/lib.linux-x86_64-2.7/resampy
copying resampy/core.py -> build/lib.linux-x86_64-2.7/resampy
copying resampy/filters.py -> build/lib.linux-x86_64-2.7/resampy
copying resampy/__init__.py -> build/lib.linux-x86_64-2.7/resampy
creating build/lib.linux-x86_64-2.7/resampy/data
copying resampy/data/kaiser_fast.npz -> build/lib.linux-x86_64-2.7/resampy/data
copying resampy/data/kaiser_best.npz -> build/lib.linux-x86_64-2.7/resampy/data
running build_ext
skipping 'resampy/interp.c' Cython extension (up-to-date)
building 'resampy.interp' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/resampy
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c resampy/interp.c -o build/temp.linux-x86_64-2.7/resampy/interp.o
resampy/interp.c:4:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-4m1Ait/resampy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-m9MyHv-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-4m1Ait/resampy/
I’ve tried to clone the repository run sudo python install.py build
Here is this output too:
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/resampy
copying resampy/version.py -> build/lib.linux-x86_64-2.7/resampy
copying resampy/core.py -> build/lib.linux-x86_64-2.7/resampy
copying resampy/filters.py -> build/lib.linux-x86_64-2.7/resampy
copying resampy/__init__.py -> build/lib.linux-x86_64-2.7/resampy
creating build/lib.linux-x86_64-2.7/resampy/data
copying resampy/data/kaiser_fast.npz -> build/lib.linux-x86_64-2.7/resampy/data
copying resampy/data/kaiser_best.npz -> build/lib.linux-x86_64-2.7/resampy/data
running build_ext
cythoning resampy/interp.pyx to resampy/interp.c
building 'resampy.interp' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/resampy
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c resampy/interp.c -o build/temp.linux-x86_64-2.7/resampy/interp.o
resampy/interp.c:4:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Cython is installed with the latest version available on pypi.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (8 by maintainers)
Great, thanks!