pystruct / pystruct

Simple structured learning framework for python
http://pystruct.github.io
BSD 2-Clause "Simplified" License
664 stars 173 forks source link

OS X El Capitan version 10.11.6 couldn't install pystruct. #191

Open ghost opened 8 years ago

ghost commented 8 years ago

I installed all requirements for pystruct, but got an error after "pip install pystruct". Please give me some advice. The error message is below.

Collecting pystruct Using cached pystruct-0.2.4.tar.gz Requirement already satisfied (use --upgrade to upgrade): ad3 in /usr/local/lib/python2.7/site-packages (from pystruct) Building wheels for collected packages: pystruct Running setup.py bdist_wheel for pystruct ... error Complete output from command /usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;file='/private/var/folders/8f/5qp_29wx7l975hvgh_9mdqy40000gn/T/pip-build-gAAf0Q/pystruct/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" bdist_wheel -d /var/folders/8f/5qp_29wx7l975hvgh_9mdqy40000gn/T/tmpXQxTSkpip-wheel- --python-tag cp27: running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.10-x86_64-2.7 creating build/lib.macosx-10.10-x86_64-2.7/pystruct copying pystruct/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct copying pystruct/plot_learning.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct creating build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/downhill_simplex_ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/frankwolfe_ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/latent_structured_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/n_slack_ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/one_slack_ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/structured_perceptron.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/subgradient_latent_ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/subgradient_ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners creating build/lib.macosx-10.10-x86_64-2.7/pystruct/inference copying pystruct/inference/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/inference copying pystruct/inference/common.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/inference copying pystruct/inference/inference_methods.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/inference copying pystruct/inference/linear_programming.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/inference copying pystruct/inference/maxprod.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/inference creating build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/base.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/chain_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/edge_feature_graph_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/graph_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/grid_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/latent_graph_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/latent_grid_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/latent_node_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/multilabel_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/setup.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/unstructured_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models creating build/lib.macosx-10.10-x86_64-2.7/pystruct/utils copying pystruct/utils/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/utils copying pystruct/utils/graph.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/utils copying pystruct/utils/graph_functions.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/utils copying pystruct/utils/inference.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/utils copying pystruct/utils/logging.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/utils copying pystruct/utils/plotting.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/utils creating build/lib.macosx-10.10-x86_64-2.7/pystruct/datasets copying pystruct/datasets/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/datasets copying pystruct/datasets/dataset_loaders.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/datasets copying pystruct/datasets/synthetic_grids.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/datasets creating build/lib.macosx-10.10-x86_64-2.7/pystruct/tests copying pystruct/tests/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests copying pystruct/tests/test_datasets.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests copying pystruct/tests/test_libraries.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests creating build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_binary_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_crammer_singer_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_edge_feature_graph_learning.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_frankwolfe_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_graph_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_latent_node_crf_learning.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_latent_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_n_slack_ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_one_slack_ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_perceptron.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_primal_dual.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_structured_perceptron.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_subgradient_latent_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_subgradient_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners creating build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_chain_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_directional_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_edge_feature_graph_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_graph_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_grid_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_latent_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_latent_node_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_multilabel_problem.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models creating build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_inference copying pystruct/tests/test_inference/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_inference copying pystruct/tests/test_inference/test_exact_inference.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_inference copying pystruct/tests/test_inference/test_maxprod.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_inference creating build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_utils copying pystruct/tests/test_utils/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_utils copying pystruct/tests/test_utils/test_utils_inference.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_utils copying pystruct/tests/test_utils/test_utils_logging.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_utils running egg_info writing requirements to pystruct.egg-info/requires.txt writing pystruct.egg-info/PKG-INFO writing top-level names to pystruct.egg-info/top_level.txt writing dependency_links to pystruct.egg-info/dependency_links.txt warning: manifest_maker: standard file '-c' not found

reading manifest file 'pystruct.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '' under directory 'tests' warning: no previously-included files matching '.pyc' found under directory 'doc' warning: no previously-included files matching '.pyo' found under directory 'doc' warning: no previously-included files matching '.pyc' found under directory 'tests' warning: no previously-included files matching '_.pyo' found under directory 'tests' no previously-included directories found matching 'docs/_build' no previously-included directories found matching 'docs/auto_examples' no previously-included directories found matching 'docs/generated' writing manifest file 'pystruct.egg-info/SOURCES.txt' copying pystruct/inference/_viterbi.c -> build/lib.macosx-10.10-x86_64-2.7/pystruct/inference copying pystruct/datasets/letters.pickle -> build/lib.macosx-10.10-x86_64-2.7/pystruct/datasets copying pystruct/datasets/scene.pickle -> build/lib.macosx-10.10-x86_64-2.7/pystruct/datasets copying pystruct/datasets/snakes.pickle -> build/lib.macosx-10.10-x86_64-2.7/pystruct/datasets running build_ext building 'pystruct.models.utils' extension creating build/temp.macosx-10.10-x86_64-2.7 creating build/temp.macosx-10.10-x86_64-2.7/src clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/tcl-tk/include -I/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/utils.c -o build/temp.macosx-10.10-x86_64-2.7/src/utils.o src/utils.c:21632:32: warning: unused function 'Pyx_PyUnicode_FromString' [-Wunused-function] static CYTHONINLINE PyObject Pyx_PyUnicode_FromString(const char* c_str) { ^ src/utils.c:302:29: warning: unused function 'Pyx_Py_UNICODE_strlen' [-Wunused-function] static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE _u) ^ src/utils.c:21772:33: warning: unused function 'Pyx_PyInt_FromSize_t' [-Wunused-function] static CYTHON_INLINE PyObject * Pyx_PyInt_FromSize_t(size_t ival) { ^ src/utils.c:18987:26: warning: unused function 'Pyx_GetBufferAndValidate' [-Wunused-function] static CYTHON_INLINE int Pyx_GetBufferAndValidate( ^ src/utils.c:19021:27: warning: unused function 'Pyx_SafeReleaseBuffer' [-Wunused-function] static CYTHON_INLINE void Pyx_SafeReleaseBuffer(Pybuffer info) { ^ src/utils.c:19094:1: warning: unused function 'pyx_add_acquisition_count_locked' [-Wunused-function] pyx_add_acquisition_count_locked(pyx_atomic_int _acquisition_count, ^ src/utils.c:19104:1: warning: unused function 'pyx_sub_acquisition_count_locked' [-Wunused-function] pyx_sub_acquisition_count_locked(pyx_atomic_int acquisition_count, ^ src/utils.c:19391:32: warning: unused function '__Pyx_GetItemInt_List_Fast' [-Wunused-function] static CYTHON_INLINE PyObject __Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, ^ src/utils.c:19405:32: warning: unused function 'Pyx_GetItemInt_Tuple_Fast' [-Wunused-function] static CYTHON_INLINE PyObject __Pyx_GetItemInt_Tuple_Fast(PyObject o, Py_ssize_t i, ^ src/utils.c:20084:28: warning: unused function 'Pyx_CyFunction_InitDefaults' [-Wunused-function] static CYTHON_INLINE void __Pyx_CyFunction_InitDefaults(PyObject func, size_t size, int pyobjects) { ^ src/utils.c:20098:27: warning: unused function 'Pyx_CyFunction_SetDefaultsKwDict' [-Wunused-function] static CYTHON_INLINE void Pyx_CyFunction_SetDefaultsKwDict(PyObject func, PyObject dict) { ^ src/utils.c:20103:27: warning: unused function 'Pyx_CyFunction_SetAnnotationsDict' [-Wunused-function] static CYTHON_INLINE void Pyx_CyFunction_SetAnnotationsDict(PyObject func, PyObject dict) { ^ src/utils.c:21226:26: warning: unused function 'Pyx_BytesContains' [-Wunused-function] static CYTHON_INLINE int PyxBytesContains(PyObject bytes, char character) { ^ src/utils.c:21492:27: warning: function 'Pyx_PyInt_As_long' is not needed and will not be emitted [-Wunneeded-internal-declaration] static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) { ^ 14 warnings generated. clang -bundle -undefined dynamic_lookup -L/usr/local/opt/tcl-tk/lib build/temp.macosx-10.10-x86_64-2.7/src/utils.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/tcl-tk/lib -o build/lib.macosx-10.10-x86_64-2.7/pystruct/models/utils.so building 'pystruct.inference._viterbi' extension creating build/temp.macosx-10.10-x86_64-2.7/pystruct creating build/temp.macosx-10.10-x86_64-2.7/pystruct/inference clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/tcl-tk/include -I/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pystruct/inference/_viterbi.c -o build/temp.macosx-10.10-x86_64-2.7/pystruct/inference/_viterbi.o pystruct/inference/_viterbi.c:239:10: fatal error: 'numpy/arrayobject.h' file not found

include "numpy/arrayobject.h"

       ^

1 error generated. error: command 'clang' failed with exit status 1


Failed building wheel for pystruct Running setup.py clean for pystruct Failed to build pystruct Installing collected packages: pystruct Running setup.py install for pystruct ... error Complete output from command /usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;file='/private/var/folders/8f/5qp_29wx7l975hvgh_9mdqy40000gn/T/pip-build-gAAf0Q/pystruct/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/8f/5qp_29wx7l975hvgh_9mdqy40000gn/T/pip-EAkAmt-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.macosx-10.10-x86_64-2.7 creating build/lib.macosx-10.10-x86_64-2.7/pystruct copying pystruct/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct copying pystruct/plot_learning.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct creating build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/downhill_simplex_ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/frankwolfe_ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/latent_structured_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/n_slack_ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/one_slack_ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/structured_perceptron.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/subgradient_latent_ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/subgradient_ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners copying pystruct/learners/svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/learners creating build/lib.macosx-10.10-x86_64-2.7/pystruct/inference copying pystruct/inference/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/inference copying pystruct/inference/common.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/inference copying pystruct/inference/inference_methods.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/inference copying pystruct/inference/linear_programming.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/inference copying pystruct/inference/maxprod.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/inference creating build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/base.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/chain_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/edge_feature_graph_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/graph_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/grid_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/latent_graph_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/latent_grid_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/latent_node_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/multilabel_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/setup.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models copying pystruct/models/unstructured_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/models creating build/lib.macosx-10.10-x86_64-2.7/pystruct/utils copying pystruct/utils/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/utils copying pystruct/utils/graph.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/utils copying pystruct/utils/graph_functions.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/utils copying pystruct/utils/inference.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/utils copying pystruct/utils/logging.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/utils copying pystruct/utils/plotting.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/utils creating build/lib.macosx-10.10-x86_64-2.7/pystruct/datasets copying pystruct/datasets/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/datasets copying pystruct/datasets/dataset_loaders.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/datasets copying pystruct/datasets/synthetic_grids.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/datasets creating build/lib.macosx-10.10-x86_64-2.7/pystruct/tests copying pystruct/tests/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests copying pystruct/tests/test_datasets.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests copying pystruct/tests/test_libraries.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests creating build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_binary_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_crammer_singer_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_edge_feature_graph_learning.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_frankwolfe_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_graph_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_latent_node_crf_learning.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_latent_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_n_slack_ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_one_slack_ssvm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_perceptron.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_primal_dual.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_structured_perceptron.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_subgradient_latent_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners copying pystruct/tests/test_learners/test_subgradient_svm.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_learners creating build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_chain_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_directional_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_edge_feature_graph_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_graph_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_grid_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_latent_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_latent_node_crf.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models copying pystruct/tests/test_models/test_multilabel_problem.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_models creating build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_inference copying pystruct/tests/test_inference/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_inference copying pystruct/tests/test_inference/test_exact_inference.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_inference copying pystruct/tests/test_inference/test_maxprod.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_inference creating build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_utils copying pystruct/tests/test_utils/init.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_utils copying pystruct/tests/test_utils/test_utils_inference.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_utils copying pystruct/tests/test_utils/test_utils_logging.py -> build/lib.macosx-10.10-x86_64-2.7/pystruct/tests/test_utils running egg_info writing requirements to pystruct.egg-info/requires.txt writing pystruct.egg-info/PKG-INFO writing top-level names to pystruct.egg-info/top_level.txt writing dependency_links to pystruct.egg-info/dependency_links.txt warning: manifest_maker: standard file '-c' not found

reading manifest file 'pystruct.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'doc'
warning: no previously-included files matching '*.pyo' found under directory 'doc'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
warning: no previously-included files matching '*.pyo' found under directory 'tests'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/auto_examples'
no previously-included directories found matching 'docs/generated'
writing manifest file 'pystruct.egg-info/SOURCES.txt'
copying pystruct/inference/_viterbi.c -> build/lib.macosx-10.10-x86_64-2.7/pystruct/inference
copying pystruct/datasets/letters.pickle -> build/lib.macosx-10.10-x86_64-2.7/pystruct/datasets
copying pystruct/datasets/scene.pickle -> build/lib.macosx-10.10-x86_64-2.7/pystruct/datasets
copying pystruct/datasets/snakes.pickle -> build/lib.macosx-10.10-x86_64-2.7/pystruct/datasets
running build_ext
building 'pystruct.models.utils' extension
creating build/temp.macosx-10.10-x86_64-2.7
creating build/temp.macosx-10.10-x86_64-2.7/src
clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/tcl-tk/include -I/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/utils.c -o build/temp.macosx-10.10-x86_64-2.7/src/utils.o
src/utils.c:21632:32: warning: unused function '__Pyx_PyUnicode_FromString' [-Wunused-function]
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
                               ^
src/utils.c:302:29: warning: unused function '__Pyx_Py_UNICODE_strlen' [-Wunused-function]
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
                            ^
src/utils.c:21772:33: warning: unused function '__Pyx_PyInt_FromSize_t' [-Wunused-function]
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
                                ^
src/utils.c:18987:26: warning: unused function '__Pyx_GetBufferAndValidate' [-Wunused-function]
static CYTHON_INLINE int __Pyx_GetBufferAndValidate(
                         ^
src/utils.c:19021:27: warning: unused function '__Pyx_SafeReleaseBuffer' [-Wunused-function]
static CYTHON_INLINE void __Pyx_SafeReleaseBuffer(Py_buffer* info) {
                          ^
src/utils.c:19094:1: warning: unused function '__pyx_add_acquisition_count_locked' [-Wunused-function]
__pyx_add_acquisition_count_locked(__pyx_atomic_int *acquisition_count,
^
src/utils.c:19104:1: warning: unused function '__pyx_sub_acquisition_count_locked' [-Wunused-function]
__pyx_sub_acquisition_count_locked(__pyx_atomic_int *acquisition_count,
^
src/utils.c:19391:32: warning: unused function '__Pyx_GetItemInt_List_Fast' [-Wunused-function]
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                               ^
src/utils.c:19405:32: warning: unused function '__Pyx_GetItemInt_Tuple_Fast' [-Wunused-function]
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                               ^
src/utils.c:20084:28: warning: unused function '__Pyx_CyFunction_InitDefaults' [-Wunused-function]
static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) {
                           ^
src/utils.c:20098:27: warning: unused function '__Pyx_CyFunction_SetDefaultsKwDict' [-Wunused-function]
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) {
                          ^
src/utils.c:20103:27: warning: unused function '__Pyx_CyFunction_SetAnnotationsDict' [-Wunused-function]
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) {
                          ^
src/utils.c:21226:26: warning: unused function '__Pyx_BytesContains' [-Wunused-function]
static CYTHON_INLINE int __Pyx_BytesContains(PyObject* bytes, char character) {
                         ^
src/utils.c:21492:27: warning: function '__Pyx_PyInt_As_long' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
                          ^
14 warnings generated.
clang -bundle -undefined dynamic_lookup -L/usr/local/opt/tcl-tk/lib build/temp.macosx-10.10-x86_64-2.7/src/utils.o -L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/tcl-tk/lib -o build/lib.macosx-10.10-x86_64-2.7/pystruct/models/utils.so
building 'pystruct.inference._viterbi' extension
creating build/temp.macosx-10.10-x86_64-2.7/pystruct
creating build/temp.macosx-10.10-x86_64-2.7/pystruct/inference
clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/opt/tcl-tk/include -I/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pystruct/inference/_viterbi.c -o build/temp.macosx-10.10-x86_64-2.7/pystruct/inference/_viterbi.o
pystruct/inference/_viterbi.c:239:10: fatal error: 'numpy/arrayobject.h' file not found
#include "numpy/arrayobject.h"
         ^
1 error generated.
error: command 'clang' failed with exit status 1

----------------------------------------

Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;file='/private/var/folders/8f/5qp_29wx7l975hvgh_9mdqy40000gn/T/pip-build-gAAf0Q/pystruct/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/8f/5qp_29wx7l975hvgh_9mdqy40000gn/T/pip-EAkAmt-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/8f/5qp_29wx7l975hvgh_9mdqy40000gn/T/pip-build-gAAf0Q/pystruct/ y

amueller commented 8 years ago

Looks like you don't have the numpy headers installed.