hi Joel. Please find attached full log for 'pip install --editable .'
*Are you sure you want to build from source?* *[Well, I'm trying the development version, since I'd like to help fix bugs. Wait, so you mean we are experiencing issue with source install. Oh man!. if Yes, then can you please suggest some other method. **(i mean apart from stable install) OR is it ok to go for stable install? ]* Thanks On Sat, Dec 2, 2017 at 5:00 PM, Joel Nothman <joel.noth...@gmail.com> wrote: > There's not enough information there for us to help you. Please provide > the full log if possible. Are you sure you want to build from source? > > On 2 December 2017 at 08:05, Aniket Meshram <aniket.g.mesh...@gmail.com> > wrote: > >> hi, >> >> I'm following the 'ways to contribute page' >> >> After forking and cloning, I ran the command 'python setup.py build_ext >> --inplace' >> which is giving me the following error: >> >> cc1: some warnings being treated as errors >> error: Command "x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 >> -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time >> -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat >> -Werror=format-security -fPIC >> -I/usr/lib/python2.7/dist-packages/numpy/core/include >> -I/usr/lib/python2.7/dist-packages/numpy/core/include >> -I/usr/include/python2.7 -c sklearn/neighbors/quad_tree.c -o >> build/temp.linux-x86_64-2.7/sklearn/neighbors/quad_tree.o" failed with >> exit status 1 >> >> AnnGM >> >> _______________________________________________ >> scikit-learn mailing list >> scikit-learn@python.org >> https://mail.python.org/mailman/listinfo/scikit-learn >> >> > > _______________________________________________ > scikit-learn mailing list > scikit-learn@python.org > https://mail.python.org/mailman/listinfo/scikit-learn > > -- Regards, Aniket G. Meshram
sumedh@sumedh-Inspiron-N4010:scikit-learn $ sudo -H pip install --editable . Obtaining file:///home/sumedh/Downloads/Programming/OpenSourceContributions/scikit-learn Installing collected packages: scikit-learn Running setup.py develop for scikit-learn Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/home/sumedh/Downloads/Programming/OpenSourceContributions/scikit-learn/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps: Partial import of sklearn during the build process. blas_opt_info: blas_mkl_info: libraries mkl,vml,guide not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE openblas_info: libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE atlas_3_10_blas_threads_info: Setting PTATLAS=ATLAS libraries tatlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE atlas_3_10_blas_info: libraries satlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE atlas_blas_threads_info: Setting PTATLAS=ATLAS libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE atlas_blas_info: libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE /usr/lib/python2.7/dist-packages/numpy/distutils/system_info.py:1640: UserWarning: Atlas (http://math-atlas.sourceforge.net/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [atlas]) or by setting the ATLAS environment variable. warnings.warn(AtlasNotFoundError.__doc__) blas_info: libraries blas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/x86_64-linux-gnu'] NOT AVAILABLE /usr/lib/python2.7/dist-packages/numpy/distutils/system_info.py:1649: UserWarning: Blas (http://www.netlib.org/blas/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [blas]) or by setting the BLAS environment variable. warnings.warn(BlasNotFoundError.__doc__) blas_src_info: NOT AVAILABLE /usr/lib/python2.7/dist-packages/numpy/distutils/system_info.py:1652: UserWarning: Blas (http://www.netlib.org/blas/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [blas_src]) or by setting the BLAS_SRC environment variable. warnings.warn(BlasSrcNotFoundError.__doc__) NOT AVAILABLE sklearn/setup.py:72: UserWarning: Blas (http://www.netlib.org/blas/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [blas]) or by setting the BLAS environment variable. warnings.warn(BlasNotFoundError.__doc__) missing cimport in module 'sklearn.neighbors': sklearn/manifold/_barnes_hut_tsne.pyx running develop running build_scripts running egg_info running build_src build_src building library "libsvm-skl" sources building library "cblas" sources building extension "sklearn.__check_build._check_build" sources building extension "sklearn.cluster._dbscan_inner" sources building extension "sklearn.cluster._hierarchical" sources building extension "sklearn.cluster._k_means_elkan" sources building extension "sklearn.cluster._k_means" sources building extension "sklearn.datasets._svmlight_format" sources building extension "sklearn.decomposition._online_lda" sources building extension "sklearn.decomposition.cdnmf_fast" sources building extension "sklearn.ensemble._gradient_boosting" sources building extension "sklearn.feature_extraction._hashing" sources building extension "sklearn.manifold._utils" sources building extension "sklearn.manifold._barnes_hut_tsne" sources building extension "sklearn.metrics.pairwise_fast" sources building extension "sklearn.metrics/cluster.expected_mutual_info_fast" sources building extension "sklearn.neighbors.ball_tree" sources building extension "sklearn.neighbors.kd_tree" sources building extension "sklearn.neighbors.dist_metrics" sources building extension "sklearn.neighbors.typedefs" sources building extension "sklearn.neighbors.quad_tree" sources building extension "sklearn.tree._tree" sources building extension "sklearn.tree._splitter" sources building extension "sklearn.tree._criterion" sources building extension "sklearn.tree._utils" sources building extension "sklearn.svm.libsvm" sources building extension "sklearn.svm.liblinear" sources building extension "sklearn.svm.libsvm_sparse" sources building extension "sklearn._isotonic" sources building extension "sklearn.linear_model.cd_fast" sources building extension "sklearn.linear_model.sgd_fast" sources building extension "sklearn.linear_model.sag_fast" sources building extension "sklearn.utils.sparsefuncs_fast" sources building extension "sklearn.utils.arrayfuncs" sources building extension "sklearn.utils.murmurhash" sources building extension "sklearn.utils.lgamma" sources building extension "sklearn.utils.graph_shortest_path" sources building extension "sklearn.utils.fast_dict" sources building extension "sklearn.utils.seq_dataset" sources building extension "sklearn.utils.weight_vector" sources building extension "sklearn.utils._random" sources building extension "sklearn.utils._logistic_sigmoid" sources building data_files sources build_src: building npy-pkg config files writing requirements to scikit_learn.egg-info/requires.txt writing scikit_learn.egg-info/PKG-INFO writing top-level names to scikit_learn.egg-info/top_level.txt writing dependency_links to scikit_learn.egg-info/dependency_links.txt warning: manifest_maker: standard file '-c' not found reading manifest file 'scikit_learn.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'scikit_learn.egg-info/SOURCES.txt' running build_ext customize UnixCCompiler customize UnixCCompiler using build_clib customize UnixCCompiler customize UnixCCompiler using build_ext customize UnixCCompiler customize UnixCCompiler using build_ext building 'sklearn.neighbors.quad_tree' 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 -fstack-protector-strong -Wformat -Werror=format-security -fPIC compile options: '-I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -I/usr/include/python2.7 -c' x86_64-linux-gnu-gcc: sklearn/neighbors/quad_tree.c In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0, from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4, from sklearn/neighbors/quad_tree.c:259: /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^ sklearn/neighbors/quad_tree.c:2365:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] static PyObject *__pyx_pf_7sklearn_9neighbors_9quad_tree_9_QuadTree_16test_summarize(); /* proto */ ^ sklearn/neighbors/quad_tree.c: In function ‘__pyx_f_7sklearn_9neighbors_9quad_tree_9_QuadTree_insert_point’: sklearn/neighbors/quad_tree.c:3523:14: error: format not a string literal and no format arguments [-Werror=format-security] printf(__pyx_k_QuadTree_found_a_duplicate); ^ sklearn/neighbors/quad_tree.c: In function ‘__pyx_f_7sklearn_9neighbors_9quad_tree_9_QuadTree__get_cell_ndarray’: sklearn/neighbors/quad_tree.c:6584:36: warning: passing argument 1 of ‘(PyObject * (*)(PyTypeObject *, PyArray_Descr *, int, npy_intp *, npy_intp *, void *, int, PyObject *))*(PyArray_API + 752u)’ from incompatible pointer type [-Wincompatible-pointer-types] __pyx_t_2 = PyArray_NewFromDescr(((PyObject *)__pyx_ptype_5numpy_ndarray), ((PyArray_Descr *)__pyx_t_1), 1, __pyx_v_shape, __pyx_v_strides, ((void *)__pyx_v_self->cells), NPY_DEFAULT, Py_None); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;} ^ sklearn/neighbors/quad_tree.c:6584:36: note: expected ‘PyTypeObject * {aka struct _typeobject *}’ but argument is of type ‘PyObject * {aka struct _object *}’ sklearn/neighbors/quad_tree.c: At top level: sklearn/neighbors/quad_tree.c:7015:18: warning: function declaration isn’t a prototype [-Wstrict-prototypes] static PyObject *__pyx_pf_7sklearn_9neighbors_9quad_tree_9_QuadTree_16test_summarize() { ^ cc1: some warnings being treated as errors In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0, from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/arrayobject.h:4, from sklearn/neighbors/quad_tree.c:259: /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^ sklearn/neighbors/quad_tree.c:2365:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] static PyObject *__pyx_pf_7sklearn_9neighbors_9quad_tree_9_QuadTree_16test_summarize(); /* proto */ ^ sklearn/neighbors/quad_tree.c: In function ‘__pyx_f_7sklearn_9neighbors_9quad_tree_9_QuadTree_insert_point’: sklearn/neighbors/quad_tree.c:3523:14: error: format not a string literal and no format arguments [-Werror=format-security] printf(__pyx_k_QuadTree_found_a_duplicate); ^ sklearn/neighbors/quad_tree.c: In function ‘__pyx_f_7sklearn_9neighbors_9quad_tree_9_QuadTree__get_cell_ndarray’: sklearn/neighbors/quad_tree.c:6584:36: warning: passing argument 1 of ‘(PyObject * (*)(PyTypeObject *, PyArray_Descr *, int, npy_intp *, npy_intp *, void *, int, PyObject *))*(PyArray_API + 752u)’ from incompatible pointer type [-Wincompatible-pointer-types] __pyx_t_2 = PyArray_NewFromDescr(((PyObject *)__pyx_ptype_5numpy_ndarray), ((PyArray_Descr *)__pyx_t_1), 1, __pyx_v_shape, __pyx_v_strides, ((void *)__pyx_v_self->cells), NPY_DEFAULT, Py_None); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;} ^ sklearn/neighbors/quad_tree.c:6584:36: note: expected ‘PyTypeObject * {aka struct _typeobject *}’ but argument is of type ‘PyObject * {aka struct _object *}’ sklearn/neighbors/quad_tree.c: At top level: sklearn/neighbors/quad_tree.c:7015:18: warning: function declaration isn’t a prototype [-Wstrict-prototypes] static PyObject *__pyx_pf_7sklearn_9neighbors_9quad_tree_9_QuadTree_16test_summarize() { ^ cc1: some warnings being treated as errors error: Command "x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -I/usr/include/python2.7 -c sklearn/neighbors/quad_tree.c -o build/temp.linux-x86_64-2.7/sklearn/neighbors/quad_tree.o" failed with exit status 1 ---------------------------------------- Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/home/sumedh/Downloads/Programming/OpenSourceContributions/scikit-learn/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps" failed with error code 1 in /home/sumedh/Downloads/Programming/OpenSourceContributions/scikit-learn/ sumedh@sumedh-Inspiron-N4010:scikit-learn $
_______________________________________________ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn