Closed zhonghui5207 closed 3 years ago
@zhonghui5207 This error should be fixed in #133 but the package needs to be updated at PyPI (https://github.com/scikit-learn-contrib/lightning/pull/142#issuecomment-642163499).
0.6.0
version with the mentioned fix included was released Dec 16, 2020 on PyPI.
Looking in indexes: http://pypi.douban.com/simple Processing ./sklearn-contrib-lightning-0.5.0.tar.gz Building wheels for collected packages: sklearn-contrib-lightning Building wheel for sklearn-contrib-lightning (setup.py) ... error ERROR: Command errored out with exit status 1: command: /Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/ty/vd3_vm6x087c1vn4b5mmxrq80000gp/T/pip-req-build-frpjnwin/setup.py'"'"'; file='"'"'/private/var/folders/ty/vd3_vm6x087c1vn4b5mmxrq80000gp/T/pip-req-build-frpjnwin/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/ty/vd3_vm6x087c1vn4b5mmxrq80000gp/T/pip-wheel-d6izjxyt cwd: /private/var/folders/ty/vd3_vm6x087c1vn4b5mmxrq80000gp/T/pip-req-build-frpjnwin/ Complete output (203 lines): 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') 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.6-intel-3.7 creating build/lib.macosx-10.6-intel-3.7/lightning copying lightning/regression.py -> build/lib.macosx-10.6-intel-3.7/lightning copying lightning/classification.py -> build/lib.macosx-10.6-intel-3.7/lightning copying lightning/datasets.py -> build/lib.macosx-10.6-intel-3.7/lightning copying lightning/init.py -> build/lib.macosx-10.6-intel-3.7/lightning copying lightning/setup.py -> build/lib.macosx-10.6-intel-3.7/lightning copying lightning/ranking.py -> build/lib.macosx-10.6-intel-3.7/lightning copying lightning/_build_utils.py -> build/lib.macosx-10.6-intel-3.7/lightning creating build/lib.macosx-10.6-intel-3.7/lightning/impl copying lightning/impl/svrg.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl copying lightning/impl/fista.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl copying lightning/impl/sgd.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl copying lightning/impl/init.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl copying lightning/impl/primal_newton.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl copying lightning/impl/primal_cd.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl copying lightning/impl/penalty.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl copying lightning/impl/adagrad.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl copying lightning/impl/setup.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl copying lightning/impl/sag.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl copying lightning/impl/sdca.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl copying lightning/impl/dual_cd.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl copying lightning/impl/prank.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl copying lightning/impl/base.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl creating build/lib.macosx-10.6-intel-3.7/lightning/impl/datasets copying lightning/impl/datasets/samples_generator.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/datasets copying lightning/impl/datasets/loaders.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/datasets copying lightning/impl/datasets/init.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/datasets copying lightning/impl/datasets/utils.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/datasets creating build/lib.macosx-10.6-intel-3.7/lightning/impl/randomkit copying lightning/impl/randomkit/init.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/randomkit copying lightning/impl/randomkit/setup.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/randomkit creating build/lib.macosx-10.6-intel-3.7/lightning/impl/randomkit/tests copying lightning/impl/randomkit/tests/init.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/randomkit/tests copying lightning/impl/randomkit/tests/test_random.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/randomkit/tests creating build/lib.macosx-10.6-intel-3.7/lightning/impl/tests copying lightning/impl/tests/test_sgd.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/tests copying lightning/impl/tests/test_svrg.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/tests copying lightning/impl/tests/test_primal_cd.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/tests copying lightning/impl/tests/test_primal_newton.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/tests copying lightning/impl/tests/test_prank.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/tests copying lightning/impl/tests/init.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/tests copying lightning/impl/tests/test_sdca.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/tests copying lightning/impl/tests/utils.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/tests copying lightning/impl/tests/test_dataset.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/tests copying lightning/impl/tests/test_adagrad.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/tests copying lightning/impl/tests/test_penalty.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/tests copying lightning/impl/tests/test_fista.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/tests copying lightning/impl/tests/test_sag.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/tests copying lightning/impl/tests/test_prox.py -> build/lib.macosx-10.6-intel-3.7/lightning/impl/tests copying lightning/impl/tests/test_dual_cd.py -> build/lib.macosx-10.6-intel-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++ -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch i386 -arch x86_64 -g
creating build/temp.macosx-10.6-intel-3.7/lightning creating build/temp.macosx-10.6-intel-3.7/lightning/impl compile options: '-I/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/include -I/private/var/folders/ty/vd3_vm6x087c1vn4b5mmxrq80000gp/T/pip-req-build-frpjnwin/lightning/impl/randomkit -I/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c' g++: lightning/impl/adagrad_fast.cpp In file included from lightning/impl/adagrad_fast.cpp:466: In file included from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4: In file included from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12: In file included from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1832: /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
warning "Using deprecated NumPy API, disable it with " \
^ lightning/impl/adagrad_fast.cpp:7284:65: error: too many arguments to function call, expected 3, have 4 return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL);