pystruct: Cannot install on MacOSX
Hello! I’m very interested in using pystruct, and attempting to install on MacOSX 10.8.4. My python info is:
Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
I used easy_install to install pip, and the following happens when I attempt to install pystruct:
max$ sudo pip install pystruct
Password:
Downloading/unpacking pystruct
Downloading pystruct-0.1.1.tar.gz (6.4MB): 6.4MB downloaded
Running setup.py egg_info for package pystruct
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'
Downloading/unpacking ad3 (from pystruct)
Downloading ad3-2.0.tar.gz (518kB): 518kB downloaded
Running setup.py egg_info for package ad3
Downloading/unpacking pyqpbo (from pystruct)
Downloading pyqpbo-0.1.tar.gz (76kB): 76kB downloaded
Running setup.py egg_info for package pyqpbo
Installing collected packages: pystruct, ad3, pyqpbo
Running setup.py install for pystruct
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'
building 'pystruct.models.utils' extension
clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/utils.c -o build/temp.macosx-10.8-intel-2.7/src/utils.o
clang: error: no such file or directory: 'src/utils.c'
clang: error: no input files
error: command 'clang' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools;__file__='/private/tmp/pip_build_root/pystruct/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8TrbT9-record/install-record.txt --single-version-externally-managed:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.8-intel-2.7
creating build/lib.macosx-10.8-intel-2.7/pystruct
copying pystruct/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct
copying pystruct/plot_learning.py -> build/lib.macosx-10.8-intel-2.7/pystruct
creating build/lib.macosx-10.8-intel-2.7/pystruct/learners
copying pystruct/learners/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
copying pystruct/learners/downhill_simplex_ssvm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
copying pystruct/learners/latent_structured_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
copying pystruct/learners/n_slack_ssvm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
copying pystruct/learners/one_slack_ssvm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
copying pystruct/learners/ssvm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
copying pystruct/learners/structured_perceptron.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
copying pystruct/learners/subgradient_latent_ssvm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
copying pystruct/learners/subgradient_ssvm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
copying pystruct/learners/svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/learners
creating build/lib.macosx-10.8-intel-2.7/pystruct/inference
copying pystruct/inference/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/inference
copying pystruct/inference/inference_methods.py -> build/lib.macosx-10.8-intel-2.7/pystruct/inference
copying pystruct/inference/linear_programming.py -> build/lib.macosx-10.8-intel-2.7/pystruct/inference
creating build/lib.macosx-10.8-intel-2.7/pystruct/models
copying pystruct/models/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
copying pystruct/models/base.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
copying pystruct/models/chain_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
copying pystruct/models/crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
copying pystruct/models/edge_feature_graph_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
copying pystruct/models/graph_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
copying pystruct/models/grid_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
copying pystruct/models/latent_graph_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
copying pystruct/models/latent_grid_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
copying pystruct/models/latent_node_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
copying pystruct/models/multilabel_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
copying pystruct/models/setup.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
copying pystruct/models/unstructured_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/models
creating build/lib.macosx-10.8-intel-2.7/pystruct/utils
copying pystruct/utils/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/utils
copying pystruct/utils/backports.py -> build/lib.macosx-10.8-intel-2.7/pystruct/utils
copying pystruct/utils/graph.py -> build/lib.macosx-10.8-intel-2.7/pystruct/utils
copying pystruct/utils/inference.py -> build/lib.macosx-10.8-intel-2.7/pystruct/utils
copying pystruct/utils/logging.py -> build/lib.macosx-10.8-intel-2.7/pystruct/utils
copying pystruct/utils/plotting.py -> build/lib.macosx-10.8-intel-2.7/pystruct/utils
creating build/lib.macosx-10.8-intel-2.7/pystruct/datasets
copying pystruct/datasets/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/datasets
copying pystruct/datasets/letters.py -> build/lib.macosx-10.8-intel-2.7/pystruct/datasets
copying pystruct/datasets/scene.py -> build/lib.macosx-10.8-intel-2.7/pystruct/datasets
copying pystruct/datasets/synthetic_grids.py -> build/lib.macosx-10.8-intel-2.7/pystruct/datasets
creating build/lib.macosx-10.8-intel-2.7/pystruct/tests
copying pystruct/tests/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests
copying pystruct/tests/test_libraries.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests
creating build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
copying pystruct/tests/test_learners/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
copying pystruct/tests/test_learners/test_binary_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
copying pystruct/tests/test_learners/test_crammer_singer_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
copying pystruct/tests/test_learners/test_edge_feature_graph_learning.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
copying pystruct/tests/test_learners/test_graph_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
copying pystruct/tests/test_learners/test_latent_node_crf_learning.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
copying pystruct/tests/test_learners/test_latent_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
copying pystruct/tests/test_learners/test_n_slack_ssvm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
copying pystruct/tests/test_learners/test_one_slack_ssvm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
copying pystruct/tests/test_learners/test_perceptron.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
copying pystruct/tests/test_learners/test_primal_dual.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
copying pystruct/tests/test_learners/test_structured_perceptron.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
copying pystruct/tests/test_learners/test_subgradient_latent_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
copying pystruct/tests/test_learners/test_subgradient_svm.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_learners
creating build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
copying pystruct/tests/test_models/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
copying pystruct/tests/test_models/test_chain_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
copying pystruct/tests/test_models/test_directional_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
copying pystruct/tests/test_models/test_edge_feature_graph_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
copying pystruct/tests/test_models/test_graph_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
copying pystruct/tests/test_models/test_grid_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
copying pystruct/tests/test_models/test_latent_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
copying pystruct/tests/test_models/test_latent_node_crf.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
copying pystruct/tests/test_models/test_multilabel_problem.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_models
creating build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_inference
copying pystruct/tests/test_inference/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_inference
copying pystruct/tests/test_inference/test_exact_inference.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_inference
creating build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_utils
copying pystruct/tests/test_utils/__init__.py -> build/lib.macosx-10.8-intel-2.7/pystruct/tests/test_utils
copying pystruct/tests/test_utils/test_utils_inference.py -> build/lib.macosx-10.8-intel-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 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/datasets/letters.pickle -> build/lib.macosx-10.8-intel-2.7/pystruct/datasets
copying pystruct/datasets/scene.pickle -> build/lib.macosx-10.8-intel-2.7/pystruct/datasets
running build_ext
building 'pystruct.models.utils' extension
creating build/temp.macosx-10.8-intel-2.7
creating build/temp.macosx-10.8-intel-2.7/src
clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/utils.c -o build/temp.macosx-10.8-intel-2.7/src/utils.o
clang: error: no such file or directory: 'src/utils.c'
clang: error: no input files
error: command 'clang' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools;__file__='/private/tmp/pip_build_root/pystruct/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8TrbT9-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/tmp/pip_build_root/pystruct
Storing complete log in /Users/max/Library/Logs/pip.log
Any help would be greatly appreciated. Thank you!
About this issue
- Original URL
- State: closed
- Created 11 years ago
- Comments: 21 (9 by maintainers)
Have the same problem but with gcc. Would love to know how to fix