[graph-tool] Error related to 'numpy_bind.hh' while doing 'make'

vineesh vs shopping_vineeshvs at outlook.com
Tue Jun 28 07:40:00 CEST 2016


Commands used




------------
./configure
make


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




Errors


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

  CXX      graph_motifs.lo
In file included from ./../graph_python_interface.hh:47:0,
                 from graph_motifs.cc:26:
./../numpy_bind.hh: In function ‘boost::python::api::object wrap_vector_owned(std::vector<T>&)’:
./../numpy_bind.hh:83:34: error: ‘NPY_ARRAY_ALIGNED’ was not declared in this scope
     PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS |
                                  ^
./../numpy_bind.hh:83:54: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared in this scope
     PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS |
                                                      ^
./../numpy_bind.hh:84:25: error: ‘NPY_ARRAY_OWNDATA’ was not declared in this scope
                         NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE);
                         ^
./../numpy_bind.hh:84:45: error: ‘NPY_ARRAY_WRITEABLE’ was not declared in this scope
                         NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE);
                                             ^
./../numpy_bind.hh:84:64: error: there are no arguments to ‘PyArray_ENABLEFLAGS’ that depend on a template parameter, so a declaration of ‘PyArray_ENABLEFLAGS’ must be available [-fpermissive]
                         NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE);
                                                                ^
./../numpy_bind.hh:84:64: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
./../numpy_bind.hh: In function ‘boost::python::api::object wrap_vector_not_owned(std::vector<T>&)’:
./../numpy_bind.hh:101:33: error: ‘NPY_ARRAY_ALIGNED’ was not declared in this scope
     PyArray_ENABLEFLAGS(ndarray,NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS |
                                 ^
./../numpy_bind.hh:101:53: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared in this scope
     PyArray_ENABLEFLAGS(ndarray,NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS |
                                                     ^
./../numpy_bind.hh:102:25: error: ‘NPY_ARRAY_WRITEABLE’ was not declared in this scope
                         NPY_ARRAY_WRITEABLE);
                         ^
./../numpy_bind.hh:102:44: error: there are no arguments to ‘PyArray_ENABLEFLAGS’ that depend on a template parameter, so a declaration of ‘PyArray_ENABLEFLAGS’ must be available [-fpermissive]
                         NPY_ARRAY_WRITEABLE);
                                            ^
./../numpy_bind.hh: In function ‘boost::python::api::object wrap_multi_array_owned(boost::multi_array<ValueType, Dim>&)’:
./../numpy_bind.hh:121:34: error: ‘NPY_ARRAY_ALIGNED’ was not declared in this scope
     PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS |
                                  ^
./../numpy_bind.hh:121:54: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared in this scope
     PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS |
                                                      ^
./../numpy_bind.hh:122:25: error: ‘NPY_ARRAY_OWNDATA’ was not declared in this scope
                         NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE);
                         ^
./../numpy_bind.hh:122:45: error: ‘NPY_ARRAY_WRITEABLE’ was not declared in this scope
                         NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE);
                                             ^
./../numpy_bind.hh:122:64: error: there are no arguments to ‘PyArray_ENABLEFLAGS’ that depend on a template parameter, so a declaration of ‘PyArray_ENABLEFLAGS’ must be available [-fpermissive]
                         NPY_ARRAY_OWNDATA | NPY_ARRAY_WRITEABLE);
                                                                ^
./../numpy_bind.hh: In function ‘boost::python::api::object wrap_multi_array_not_owned(boost::multi_array<ValueType, Dim>&)’:
./../numpy_bind.hh:135:34: error: ‘NPY_ARRAY_ALIGNED’ was not declared in this scope
     PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS |
                                  ^
./../numpy_bind.hh:135:54: error: ‘NPY_ARRAY_C_CONTIGUOUS’ was not declared in this scope
     PyArray_ENABLEFLAGS(ndarray, NPY_ARRAY_ALIGNED | NPY_ARRAY_C_CONTIGUOUS |
                                                      ^
./../numpy_bind.hh:136:25: error: ‘NPY_ARRAY_WRITEABLE’ was not declared in this scope
                         NPY_ARRAY_WRITEABLE);
                         ^
./../numpy_bind.hh:136:44: error: there are no arguments to ‘PyArray_ENABLEFLAGS’ that depend on a template parameter, so a declaration of ‘PyArray_ENABLEFLAGS’ must be available [-fpermissive]
                         NPY_ARRAY_WRITEABLE);
                                            ^
make[4]: *** [graph_motifs.lo] Error 1
make[4]: Leaving directory `/home/wecare/Downloads/transferred/graph-tool-2.16/src/graph/clustering'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/wecare/Downloads/transferred/graph-tool-2.16/src/graph'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/wecare/Downloads/transferred/graph-tool-2.16/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/wecare/Downloads/transferred/graph-tool-2.16'
make: *** [all] Error 2
----------------------------------------------------------------------------------




What could be the reason?
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.skewed.de/pipermail/graph-tool/attachments/20160628/8baa8bb8/attachment.htm>


More information about the graph-tool mailing list