scikit-learn-contrib / lightning

Large-scale linear classification, regression and ranking in Python
https://contrib.scikit-learn.org/lightning/
1.73k stars 214 forks source link

Python 3.7 Error, OSX Mojave 10.14.6 #139

Closed adamlauretig closed 5 years ago

adamlauretig commented 5 years ago

When I attempt pip install sklearn-contrib-lightning, I get the following error:

` ERROR: Complete output from command //anaconda3/bin/python -u -c 'import setuptools, tokenize;file='"'"'/private/var/folders/6z/_svbv4xj4djglzq9wjyy6f1w0000gp/T/pip-install-udbmfhkm/sklearn-contrib-lightning/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/6z/_svbv4xj4djglzq9wjyy6f1w0000gp/T/pip-wheel-g7kw7apk --python-tag cp37: ERROR: Warning: Assuming default configuration (lightning/impl/datasets/{setup_datasets,setup}.py was not found)Appending lightning.impl.datasets configuration to lightning.impl Ignoring attempt to set 'name' (from 'lightning.impl' to 'lightning.impl.datasets') Warning: Assuming default configuration (lightning/impl/randomkit/tests/{setup_tests,setup}.py was not found)Appending lightning.impl.randomkit.tests configuration to lightning.impl.randomkit Ignoring attempt to set 'name' (from 'lightning.impl.randomkit' to 'lightning.impl.randomkit.tests') Appending lightning.impl.randomkit configuration to lightning.impl Ignoring attempt to set 'name' (from 'lightning.impl' to 'lightning.impl.randomkit') Warning: Assuming default configuration (lightning/impl/tests/{setup_tests,setup}.py was not found)Appending lightning.impl.tests configuration to lightning.impl Ignoring attempt to set 'name' (from 'lightning.impl' to 'lightning.impl.tests') Appending lightning.impl configuration to lightning Ignoring attempt to set 'name' (from 'lightning' to 'lightning.impl') C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64

compile options: '-c' extra options: '-fopenmp' gcc: test_openmp.c gcc -arch x86_64 objects/test_openmp.o -o test_openmp -fopenmp Appending lightning configuration to Ignoring attempt to set 'name' (from '' to 'lightning') running bdist_wheel 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 "lightning.impl.adagrad_fast" sources building extension "lightning.impl.dataset_fast" sources building extension "lightning.impl.dual_cd_fast" sources building extension "lightning.impl.loss_fast" sources building extension "lightning.impl.prank_fast" sources building extension "lightning.impl.primal_cd_fast" sources building extension "lightning.impl.prox_fast" sources building extension "lightning.impl.sag_fast" sources building extension "lightning.impl.sdca_fast" sources building extension "lightning.impl.sgd_fast" sources building extension "lightning.impl.svrg_fast" sources building extension "lightning.impl.randomkit.random_fast" sources building data_files sources build_src: building npy-pkg config files running build_py creating build creating build/lib.macosx-10.7-x86_64-3.7 creating build/lib.macosx-10.7-x86_64-3.7/lightning copying lightning/regression.py -> build/lib.macosx-10.7-x86_64-3.7/lightning copying lightning/classification.py -> build/lib.macosx-10.7-x86_64-3.7/lightning copying lightning/datasets.py -> build/lib.macosx-10.7-x86_64-3.7/lightning copying lightning/init.py -> build/lib.macosx-10.7-x86_64-3.7/lightning copying lightning/setup.py -> build/lib.macosx-10.7-x86_64-3.7/lightning copying lightning/ranking.py -> build/lib.macosx-10.7-x86_64-3.7/lightning copying lightning/_build_utils.py -> build/lib.macosx-10.7-x86_64-3.7/lightning creating build/lib.macosx-10.7-x86_64-3.7/lightning/impl copying lightning/impl/svrg.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl copying lightning/impl/fista.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl copying lightning/impl/sgd.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl copying lightning/impl/init.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl copying lightning/impl/primal_newton.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl copying lightning/impl/primal_cd.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl copying lightning/impl/penalty.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl copying lightning/impl/adagrad.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl copying lightning/impl/setup.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl copying lightning/impl/sag.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl copying lightning/impl/sdca.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl copying lightning/impl/dual_cd.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl copying lightning/impl/prank.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl copying lightning/impl/base.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl creating build/lib.macosx-10.7-x86_64-3.7/lightning/impl/datasets copying lightning/impl/datasets/samples_generator.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/datasets copying lightning/impl/datasets/loaders.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/datasets copying lightning/impl/datasets/init.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/datasets copying lightning/impl/datasets/utils.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/datasets creating build/lib.macosx-10.7-x86_64-3.7/lightning/impl/randomkit copying lightning/impl/randomkit/init.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/randomkit copying lightning/impl/randomkit/setup.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/randomkit creating build/lib.macosx-10.7-x86_64-3.7/lightning/impl/randomkit/tests copying lightning/impl/randomkit/tests/init.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/randomkit/tests copying lightning/impl/randomkit/tests/test_random.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/randomkit/tests creating build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests copying lightning/impl/tests/test_sgd.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests copying lightning/impl/tests/test_svrg.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests copying lightning/impl/tests/test_primal_cd.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests copying lightning/impl/tests/test_primal_newton.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests copying lightning/impl/tests/test_prank.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests copying lightning/impl/tests/init.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests copying lightning/impl/tests/test_sdca.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests copying lightning/impl/tests/utils.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests copying lightning/impl/tests/test_dataset.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests copying lightning/impl/tests/test_adagrad.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests copying lightning/impl/tests/test_penalty.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests copying lightning/impl/tests/test_fista.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests copying lightning/impl/tests/test_sag.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests copying lightning/impl/tests/test_prox.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests copying lightning/impl/tests/test_dual_cd.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests running build_ext customize UnixCCompiler customize UnixCCompiler using build_ext customize UnixCCompiler customize UnixCCompiler using build_ext building 'lightning.impl.adagrad_fast' extension compiling C++ sources C compiler: g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64

creating build/temp.macosx-10.7-x86_64-3.7/lightning creating build/temp.macosx-10.7-x86_64-3.7/lightning/impl compile options: '-I//anaconda3/lib/python3.7/site-packages/numpy/core/include -I/private/var/folders/6z/_svbv4xj4djglzq9wjyy6f1w0000gp/T/pip-install-udbmfhkm/sklearn-contrib-lightning/lightning/impl/randomkit -I//anaconda3/lib/python3.7/site-packages/numpy/core/include -I//anaconda3/include/python3.7m -c' g++: lightning/impl/adagrad_fast.cpp In file included from //anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1824:0, from //anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12, from //anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from lightning/impl/adagrad_fast.cpp:466: //anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]

warning "Using deprecated NumPy API, disable it with " \

^

lightning/impl/adagrad_fast.cpp: In function ‘PyObject __Pyx_PyCFunction_FastCall(PyObject, PyObject, Py_ssize_t)’: lightning/impl/adagrad_fast.cpp:7284:69: error: too many arguments to function return (((Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL); ^ lightning/impl/adagrad_fast.cpp: In function ‘void Pyx__ExceptionSave(PyThreadState, PyObject, PyObject, PyObject)’: lightning/impl/adagrad_fast.cpp:7656:21: error: ‘PyThreadState’ has no member named ‘exc_type’ type = tstate->exc_type; ^ lightning/impl/adagrad_fast.cpp:7657:22: error: ‘PyThreadState’ has no member named ‘exc_value’ value = tstate->exc_value; ^ lightning/impl/adagrad_fast.cpp:7658:19: error: ‘PyThreadState’ has no member named ‘exc_traceback’ tb = tstate->exc_traceback; ^ lightning/impl/adagrad_fast.cpp: In function ‘void PyxExceptionReset(PyThreadState, PyObject, PyObject, PyObject)’: lightning/impl/adagrad_fast.cpp:7665:24: error: ‘PyThreadState’ has no member named ‘exc_type’ tmp_type = tstate->exc_type; ^ lightning/impl/adagrad_fast.cpp:7666:25: error: ‘PyThreadState’ has no member named ‘exc_value’ tmp_value = tstate->exc_value; ^ lightning/impl/adagrad_fast.cpp:7667:22: error: ‘PyThreadState’ has no member named ‘exc_traceback’ tmp_tb = tstate->exc_traceback; ^ lightning/impl/adagrad_fast.cpp:7668:13: error: ‘PyThreadState’ has no member named ‘exc_type’ tstate->exc_type = type; ^ lightning/impl/adagrad_fast.cpp:7669:13: error: ‘PyThreadState’ has no member named ‘exc_value’ tstate->exc_value = value; ^ lightning/impl/adagrad_fast.cpp:7670:13: error: ‘PyThreadState’ has no member named ‘exc_traceback’ tstate->exc_traceback = tb; ^ lightning/impl/adagrad_fast.cpp: In function ‘int PyxGetException(PyThreadState, PyObject, PyObject, PyObject**)’: lightning/impl/adagrad_fast.cpp:7725:24: error: ‘PyThreadState’ has no member named ‘exc_type’ tmp_type = tstate->exc_type; ^ lightning/impl/adagrad_fast.cpp:7726:25: error: ‘PyThreadState’ has no member named ‘exc_value’ tmp_value = tstate->exc_value; ^ lightning/impl/adagrad_fast.cpp:7727:22: error: ‘PyThreadState’ has no member named ‘exc_traceback’ tmp_tb = tstate->exc_traceback; ^ lightning/impl/adagrad_fast.cpp:7728:13: error: ‘PyThreadState’ has no member named ‘exc_type’ tstate->exc_type = local_type; ^ lightning/impl/adagrad_fast.cpp:7729:13: error: ‘PyThreadState’ has no member named ‘exc_value’ tstate->exc_value = local_value; ^ lightning/impl/adagrad_fast.cpp:7730:13: error: ‘PyThreadState’ has no member named ‘exc_traceback’ tstate->exc_traceback = local_tb; ^ error: Command "g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -I//anaconda3/lib/python3.7/site-packages/numpy/core/include -I/private/var/folders/6z/_svbv4xj4djglzq9wjyy6f1w0000gp/T/pip-install-udbmfhkm/sklearn-contrib-lightning/lightning/impl/randomkit -I//anaconda3/lib/python3.7/site-packages/numpy/core/include -I//anaconda3/include/python3.7m -c lightning/impl/adagrad_fast.cpp -o build/temp.macosx-10.7-x86_64-3.7/lightning/impl/adagrad_fast.o -MMD -MF build/temp.macosx-10.7-x86_64-3.7/lightning/impl/adagrad_fast.o.d" failed with exit status 1

ERROR: Failed building wheel for sklearn-contrib-lightning Running setup.py clean for sklearn-contrib-lightning Failed to build sklearn-contrib-lightning Installing collected packages: sklearn-contrib-lightning Running setup.py install for sklearn-contrib-lightning ... error ERROR: Complete output from command //anaconda3/bin/python -u -c 'import setuptools, tokenize;file='"'"'/private/var/folders/6z/_svbv4xj4djglzq9wjyy6f1w0000gp/T/pip-install-udbmfhkm/sklearn-contrib-lightning/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/6z/_svbv4xj4djglzq9wjyy6f1w0000gp/T/pip-record-4qo2m1ip/install-record.txt --single-version-externally-managed --compile: ERROR: Warning: Assuming default configuration (lightning/impl/datasets/{setup_datasets,setup}.py was not found)Appending lightning.impl.datasets configuration to lightning.impl Ignoring attempt to set 'name' (from 'lightning.impl' to 'lightning.impl.datasets') Warning: Assuming default configuration (lightning/impl/randomkit/tests/{setup_tests,setup}.py was not found)Appending lightning.impl.randomkit.tests configuration to lightning.impl.randomkit Ignoring attempt to set 'name' (from 'lightning.impl.randomkit' to 'lightning.impl.randomkit.tests') Appending lightning.impl.randomkit configuration to lightning.impl Ignoring attempt to set 'name' (from 'lightning.impl' to 'lightning.impl.randomkit') Warning: Assuming default configuration (lightning/impl/tests/{setup_tests,setup}.py was not found)Appending lightning.impl.tests configuration to lightning.impl Ignoring attempt to set 'name' (from 'lightning.impl' to 'lightning.impl.tests') Appending lightning.impl configuration to lightning Ignoring attempt to set 'name' (from 'lightning' to 'lightning.impl') C compiler: gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64

compile options: '-c'
extra options: '-fopenmp'
gcc: test_openmp.c
gcc -arch x86_64 objects/test_openmp.o -o test_openmp -fopenmp
Appending lightning configuration to
Ignoring attempt to set 'name' (from '' to 'lightning')
running install
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 "lightning.impl.adagrad_fast" sources
building extension "lightning.impl.dataset_fast" sources
building extension "lightning.impl.dual_cd_fast" sources
building extension "lightning.impl.loss_fast" sources
building extension "lightning.impl.prank_fast" sources
building extension "lightning.impl.primal_cd_fast" sources
building extension "lightning.impl.prox_fast" sources
building extension "lightning.impl.sag_fast" sources
building extension "lightning.impl.sdca_fast" sources
building extension "lightning.impl.sgd_fast" sources
building extension "lightning.impl.svrg_fast" sources
building extension "lightning.impl.randomkit.random_fast" sources
building data_files sources
build_src: building npy-pkg config files
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.7
creating build/lib.macosx-10.7-x86_64-3.7/lightning
copying lightning/regression.py -> build/lib.macosx-10.7-x86_64-3.7/lightning
copying lightning/classification.py -> build/lib.macosx-10.7-x86_64-3.7/lightning
copying lightning/datasets.py -> build/lib.macosx-10.7-x86_64-3.7/lightning
copying lightning/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/lightning
copying lightning/setup.py -> build/lib.macosx-10.7-x86_64-3.7/lightning
copying lightning/ranking.py -> build/lib.macosx-10.7-x86_64-3.7/lightning
copying lightning/_build_utils.py -> build/lib.macosx-10.7-x86_64-3.7/lightning
creating build/lib.macosx-10.7-x86_64-3.7/lightning/impl
copying lightning/impl/svrg.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl
copying lightning/impl/fista.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl
copying lightning/impl/sgd.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl
copying lightning/impl/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl
copying lightning/impl/primal_newton.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl
copying lightning/impl/primal_cd.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl
copying lightning/impl/penalty.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl
copying lightning/impl/adagrad.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl
copying lightning/impl/setup.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl
copying lightning/impl/sag.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl
copying lightning/impl/sdca.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl
copying lightning/impl/dual_cd.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl
copying lightning/impl/prank.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl
copying lightning/impl/base.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl
creating build/lib.macosx-10.7-x86_64-3.7/lightning/impl/datasets
copying lightning/impl/datasets/samples_generator.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/datasets
copying lightning/impl/datasets/loaders.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/datasets
copying lightning/impl/datasets/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/datasets
copying lightning/impl/datasets/utils.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/datasets
creating build/lib.macosx-10.7-x86_64-3.7/lightning/impl/randomkit
copying lightning/impl/randomkit/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/randomkit
copying lightning/impl/randomkit/setup.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/randomkit
creating build/lib.macosx-10.7-x86_64-3.7/lightning/impl/randomkit/tests
copying lightning/impl/randomkit/tests/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/randomkit/tests
copying lightning/impl/randomkit/tests/test_random.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/randomkit/tests
creating build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests
copying lightning/impl/tests/test_sgd.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests
copying lightning/impl/tests/test_svrg.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests
copying lightning/impl/tests/test_primal_cd.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests
copying lightning/impl/tests/test_primal_newton.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests
copying lightning/impl/tests/test_prank.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests
copying lightning/impl/tests/__init__.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests
copying lightning/impl/tests/test_sdca.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests
copying lightning/impl/tests/utils.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests
copying lightning/impl/tests/test_dataset.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests
copying lightning/impl/tests/test_adagrad.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests
copying lightning/impl/tests/test_penalty.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests
copying lightning/impl/tests/test_fista.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests
copying lightning/impl/tests/test_sag.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests
copying lightning/impl/tests/test_prox.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests
copying lightning/impl/tests/test_dual_cd.py -> build/lib.macosx-10.7-x86_64-3.7/lightning/impl/tests
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
building 'lightning.impl.adagrad_fast' extension
compiling C++ sources
C compiler: g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64

creating build/temp.macosx-10.7-x86_64-3.7/lightning
creating build/temp.macosx-10.7-x86_64-3.7/lightning/impl
compile options: '-I//anaconda3/lib/python3.7/site-packages/numpy/core/include -I/private/var/folders/6z/_svbv4xj4djglzq9wjyy6f1w0000gp/T/pip-install-udbmfhkm/sklearn-contrib-lightning/lightning/impl/randomkit -I//anaconda3/lib/python3.7/site-packages/numpy/core/include -I//anaconda3/include/python3.7m -c'
g++: lightning/impl/adagrad_fast.cpp
In file included from //anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1824:0,
                 from //anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                 from //anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from lightning/impl/adagrad_fast.cpp:466:
//anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it with " \
  ^
lightning/impl/adagrad_fast.cpp: In function ‘PyObject* __Pyx_PyCFunction_FastCall(PyObject*, PyObject**, Py_ssize_t)’:
lightning/impl/adagrad_fast.cpp:7284:69: error: too many arguments to function
     return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL);
                                                                     ^
lightning/impl/adagrad_fast.cpp: In function ‘void __Pyx__ExceptionSave(PyThreadState*, PyObject**, PyObject**, PyObject**)’:
lightning/impl/adagrad_fast.cpp:7656:21: error: ‘PyThreadState’ has no member named ‘exc_type’
     *type = tstate->exc_type;
                     ^
lightning/impl/adagrad_fast.cpp:7657:22: error: ‘PyThreadState’ has no member named ‘exc_value’
     *value = tstate->exc_value;
                      ^
lightning/impl/adagrad_fast.cpp:7658:19: error: ‘PyThreadState’ has no member named ‘exc_traceback’
     *tb = tstate->exc_traceback;
                   ^
lightning/impl/adagrad_fast.cpp: In function ‘void __Pyx__ExceptionReset(PyThreadState*, PyObject*, PyObject*, PyObject*)’:
lightning/impl/adagrad_fast.cpp:7665:24: error: ‘PyThreadState’ has no member named ‘exc_type’
     tmp_type = tstate->exc_type;
                        ^
lightning/impl/adagrad_fast.cpp:7666:25: error: ‘PyThreadState’ has no member named ‘exc_value’
     tmp_value = tstate->exc_value;
                         ^
lightning/impl/adagrad_fast.cpp:7667:22: error: ‘PyThreadState’ has no member named ‘exc_traceback’
     tmp_tb = tstate->exc_traceback;
                      ^
lightning/impl/adagrad_fast.cpp:7668:13: error: ‘PyThreadState’ has no member named ‘exc_type’
     tstate->exc_type = type;
             ^
lightning/impl/adagrad_fast.cpp:7669:13: error: ‘PyThreadState’ has no member named ‘exc_value’
     tstate->exc_value = value;
             ^
lightning/impl/adagrad_fast.cpp:7670:13: error: ‘PyThreadState’ has no member named ‘exc_traceback’
     tstate->exc_traceback = tb;
             ^
lightning/impl/adagrad_fast.cpp: In function ‘int __Pyx__GetException(PyThreadState*, PyObject**, PyObject**, PyObject**)’:
lightning/impl/adagrad_fast.cpp:7725:24: error: ‘PyThreadState’ has no member named ‘exc_type’
     tmp_type = tstate->exc_type;
                        ^
lightning/impl/adagrad_fast.cpp:7726:25: error: ‘PyThreadState’ has no member named ‘exc_value’
     tmp_value = tstate->exc_value;
                         ^
lightning/impl/adagrad_fast.cpp:7727:22: error: ‘PyThreadState’ has no member named ‘exc_traceback’
     tmp_tb = tstate->exc_traceback;
                      ^
lightning/impl/adagrad_fast.cpp:7728:13: error: ‘PyThreadState’ has no member named ‘exc_type’
     tstate->exc_type = local_type;
             ^
lightning/impl/adagrad_fast.cpp:7729:13: error: ‘PyThreadState’ has no member named ‘exc_value’
     tstate->exc_value = local_value;
             ^
lightning/impl/adagrad_fast.cpp:7730:13: error: ‘PyThreadState’ has no member named ‘exc_traceback’
     tstate->exc_traceback = local_tb;
             ^
error: Command "g++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I//anaconda3/include -arch x86_64 -I//anaconda3/include -arch x86_64 -I//anaconda3/lib/python3.7/site-packages/numpy/core/include -I/private/var/folders/6z/_svbv4xj4djglzq9wjyy6f1w0000gp/T/pip-install-udbmfhkm/sklearn-contrib-lightning/lightning/impl/randomkit -I//anaconda3/lib/python3.7/site-packages/numpy/core/include -I//anaconda3/include/python3.7m -c lightning/impl/adagrad_fast.cpp -o build/temp.macosx-10.7-x86_64-3.7/lightning/impl/adagrad_fast.o -MMD -MF build/temp.macosx-10.7-x86_64-3.7/lightning/impl/adagrad_fast.o.d" failed with exit status 1
----------------------------------------

ERROR: Command "//anaconda3/bin/python -u -c 'import setuptools, tokenize;file='"'"'/private/var/folders/6z/_svbv4xj4djglzq9wjyy6f1w0000gp/T/pip-install-udbmfhkm/sklearn-contrib-lightning/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/6z/_svbv4xj4djglzq9wjyy6f1w0000gp/T/pip-record-4qo2m1ip/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/6z/_svbv4xj4djglzq9wjyy6f1w0000gp/T/pip-install-udbmfhkm/sklearn-contrib-lightning/ `

And I've added the osx headers etc. Any thoughts?

adamlauretig commented 5 years ago

Error resolved itself