mblondel / soft-dtw

Python implementation of soft-DTW.
BSD 2-Clause "Simplified" License
550 stars 98 forks source link

python setup.py build #14

Closed harimaruthachalam closed 6 years ago

harimaruthachalam commented 6 years ago

Hi,

The mentioned step throws the following error,

Warning: Assuming default configuration (sdtw/tests/{setup_tests,setup}.py was not found)Appending sdtw.tests configuration to sdtw Ignoring attempt to set 'name' (from 'sdtw' to 'sdtw.tests') Appending sdtw configuration to Ignoring attempt to set 'name' (from '' to 'sdtw') running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building extension "sdtw.soft_dtw_fast" sources build_src: building npy-pkg config files running build_py creating build creating build/lib.linux-x86_64-2.7 creating build/lib.linux-x86_64-2.7/sdtw copying sdtw/path.py -> build/lib.linux-x86_64-2.7/sdtw copying sdtw/chainer_func.py -> build/lib.linux-x86_64-2.7/sdtw copying sdtw/soft_dtw.py -> build/lib.linux-x86_64-2.7/sdtw copying sdtw/distance.py -> build/lib.linux-x86_64-2.7/sdtw copying sdtw/init.py -> build/lib.linux-x86_64-2.7/sdtw copying sdtw/setup.py -> build/lib.linux-x86_64-2.7/sdtw copying sdtw/barycenter.py -> build/lib.linux-x86_64-2.7/sdtw copying sdtw/dataset.py -> build/lib.linux-x86_64-2.7/sdtw running build_ext customize UnixCCompiler customize UnixCCompiler using build_ext building 'sdtw.soft_dtw_fast' extension compiling C sources C compiler: x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-nbjU53/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC

creating build/temp.linux-x86_64-2.7/sdtw compile options: '-I/home/xxx/.local/lib/python2.7/site-packages/numpy/core/include -I/home/xxx/.local/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c' x86_64-linux-gnu-gcc: sdtw/soft_dtw_fast.c sdtw/soft_dtw_fast.c:4:10: fatal error: Python.h: No such file or directory

include "Python.h"

      ^~~~~~~~~~

compilation terminated. sdtw/soft_dtw_fast.c:4:10: fatal error: Python.h: No such file or directory

include "Python.h"

      ^~~~~~~~~~

compilation terminated.

Can you please help me resolve it?

Thanks, Hari.

harimaruthachalam commented 6 years ago

Hi,

I resolved with the help of stackoverflow @ https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory

Thanks.