question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

#warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"

See original GitHub issue

I got this error message when trying to install Scipy via command line on Centos 7

sudo easy_install scipy

Error message

In file included from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1728:0,
                 from /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from scipy/sparse/sparsetools/sparsetools.h:5,
                 from scipy/sparse/sparsetools/csr.cxx:4:
/usr/lib64/python2.7/site-packages/numpy/core/include/numpy/npy_deprecated_api.h:11: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 #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
  ^

Please advice. Thank you.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:18 (8 by maintainers)

github_iconTop GitHub Comments

10reactions
ekhaydarovcommented, Jun 11, 2019

@quantum6 where would that need to be placed?

1reaction
2sncommented, Mar 27, 2018

Unfortunately it floods [i]python screen output.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using deprecated Numpy API - python - Stack Overflow
include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API ...
Read more >
C API Deprecations — NumPy v1.14 Manual
One way to do deprecations is to flag them in the documentation and release notes, then remove or change the deprecated features in...
Read more >
core/include/numpy/npy_1_7_deprecated_api.h - Gemfury
... disable it by " \ "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION") #elif defined(__GNUC__) #warning "Using deprecated NumPy API, disable it by ...
Read more >
Failed to install Tensorflow for Python 3.6 + JetPack4.2
It failed in the middle, and got the error: ... #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API ...
Read more >
Suppressing warnings - Google Groups
/usr/include/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found