Error related to 'numpy_bind.hh' while doing 'make'

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error related to 'numpy_bind.hh' while doing 'make'

vineeshvs
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?

_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool
Reply | Threaded
Open this post in threaded view
|

Re: Error related to 'numpy_bind.hh' while doing 'make'

Tiago Peixoto
Administrator
On 28.06.2016 07:40, vineesh vs wrote:
> ./../numpy_bind.hh:83:34: error: ‘NPY_ARRAY_ALIGNED’ was not declared in this scope

Which numpy version do you have installed?

Best,
Tiago

--
Tiago de Paula Peixoto <[hidden email]>


_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool

signature.asc (836 bytes) Download Attachment
--
Tiago de Paula Peixoto <tiago@skewed.de>
Reply | Threaded
Open this post in threaded view
|

Re: Error related to 'numpy_bind.hh' while doing 'make'

vineeshvs
The version was 1.60

I installed the numpy using command line

sudo apt-get install python-numpy

---------------------------
Somebody was suggesting (in web) that installing 1.71 might help!!! Not tried yet.
---------------------------
There is an unanswered question with same issue one web. Just in case you want to check
http://codegur.com/32778731/installing-graph-tool-manually

To: [hidden email]
From: [hidden email]
Date: Tue, 28 Jun 2016 08:20:27 +0200
Subject: Re: [graph-tool] Error related to 'numpy_bind.hh' while doing 'make'

On 28.06.2016 07:40, vineesh vs wrote:
> ./../numpy_bind.hh:83:34: error: ‘NPY_ARRAY_ALIGNED’ was not declared in this scope

Which numpy version do you have installed?

Best,
Tiago

--
Tiago de Paula Peixoto <[hidden email]>


_______________________________________________ graph-tool mailing list [hidden email] https://lists.skewed.de/mailman/listinfo/graph-tool

_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool