Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scikit-image installation fails with : #warning "Using deprecated NumPy API, disable it with....." #5430

Closed
IAM-P-LP opened this issue Jun 18, 2021 · 2 comments
Labels
🫂 Support User help and QA

Comments

@IAM-P-LP
Copy link

IAM-P-LP commented Jun 18, 2021

I was trying to install scikit-image in a virtual environment using pip install scikit-image.It fails with the following error.

/face-alignment/face-alignment-virtual/lib/python3.6/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with " \

Way to reproduce

pip install scikit-image -vv

Version information

Python 3.6.9
pip 21.1.2

The packages installed already are as follows.
Package Version


cycler 0.10.0
imutils 0.5.4
kiwisolver 1.3.1
matplotlib 3.3.4
numpy 1.18.5
Pillow 8.2.0
pip 21.1.2
pyparsing 2.4.7
python-dateutil 2.8.1
setuptools 57.0.0
six 1.16.0
wheel 0.36.2

NB :pip is already the latest version.

@hmaarrfk
Copy link
Member

hello. thank you for reaching out.

unfortunately, the error above isn't the underlying issue. it is simply a warning.

are you able to share the full output of the build?

what operating system are you using? what hardware are you using?

mkcor pushed a commit to mkcor/scikit-image that referenced this issue Jun 18, 2021
…age#5357)

* MAINT: minimal NumPy version from scikit-image#5430

* MAINT: remove RandomState in favour of Generator

* MAINT: refactor np.random calls to use objects

* STY: pep8

* MAINT: positional seed and rename to random_state the new ones

* MAINT: positional random_state in _bernoulli

Co-authored-by: Juan Nunez-Iglesias <juan.nunez-iglesias@monash.edu>

* MAINT: revert default and imports

* TST/DOC: fix random values in doctests

* TST: fix remaining random

* TST: update expected result in test_speckle and test_poisson

* TST: update files containing expected result of test_unsupervised_wiener

this is necessary due to change in the random noise from the new generator

* TST: Update FIJI reference data for skeletonize 3D

* MAINT: add versionadded information

* MAINT: update release notes with seeding

Co-authored-by: Juan Nunez-Iglesias <juan.nunez-iglesias@monash.edu>
Co-authored-by: Gregory Lee <grlee77@gmail.com>
@grlee77 grlee77 added the 🫂 Support User help and QA label Jun 27, 2021
@scikit-image scikit-image locked and limited conversation to collaborators Oct 18, 2021
@grlee77
Copy link
Contributor

grlee77 commented Feb 20, 2022

deleted the discussion, but not reopening the issue due to lack of feedback

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🫂 Support User help and QA
Projects
None yet
Development

No branches or pull requests

4 participants