1 |
On 12/17/2014 03:46 AM, rhannek@×××.de wrote: |
2 |
> Hi, |
3 |
> |
4 |
> When emergin matplotlib (as dependency of ipython) it fails with the |
5 |
> following error: |
6 |
> |
7 |
> src/_png.cpp:264:13: error: 'npy_PyFile_DupClose' was not declared in |
8 |
> |
9 |
> Full output of build.log, emerge --info and emerge -pqv is attached |
10 |
|
11 |
I believe the real error message appears several lines above the one |
12 |
you quoted above: |
13 |
|
14 |
In file included from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0, |
15 |
from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17, |
16 |
from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, |
17 |
from src/_png.cpp:28: |
18 |
/usr/lib64/python2.7/site-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] |
19 |
#warning "Using deprecated NumPy API, disable it by " \ |
20 |
^ |
21 |
src/_png.cpp:243:48: error: macro "npy_PyFile_DupClose" requires 3 arguments, but only 2 given |
22 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
23 |
|
24 |
That kind of message is classic for a mis-matched library version. In this |
25 |
case the numpy library is either too new or too old for the package you're |
26 |
trying to emerge. |
27 |
|
28 |
Are you mixing stable/unstable packages on that machine? If not, then this |
29 |
looks like a bug in the ebuild. |