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

Detex compilation warnings with Anaconda3 install. #37

Open
blyck opened this issue Oct 3, 2017 · 1 comment
Open

Detex compilation warnings with Anaconda3 install. #37

blyck opened this issue Oct 3, 2017 · 1 comment

Comments

@blyck
Copy link

blyck commented Oct 3, 2017

Derrick,
After installing the newer Anaconda3-5.0.0-MacOSX-x86_64 and using the below configuration,

conda config --add channels conda-forge
conda create -n detex python=2.7
source activate detex
conda install pyqt=4 (Had to use an older version)
conda install joblib
conda install simplekml
conda install basemap
conda install obspy_

we get the warning

/home/blycker/anaconda3/envs/detex/lib/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]
#warning "Using deprecated NumPy API, disable it by " \

I didnt know if you were still supporting this but I thought I should drop you a line.

Bill

@d-chambers
Copy link
Owner

Hey @blyck, thanks for the heads up. Googling around a bit this appears to be a common issue. For example: scipy/scipy#5889, scikit-image/scikit-image#2037, ioam/topographica#559, https://stackoverflow.com/questions/25789055/cython-numpy-warning-about-npy-no-deprecated-api-when-using-memoryview.

However, reading through some of the raised issues it wasn't really clear how to fix it. It might be abated by explicitly requiring a higher version of numpy. In the setup.py try replacing:

    install_requires = ['obspy >= 1.0.0', 'numpy', 'pandas >= 0.17.0',
                        'scipy', 'matplotlib', 'glob2'],

with

    install_requires = ['obspy >= 1.0.0', 'numpy>=1.12.0', 'pandas >= 0.17.0', 'scipy', 'matplotlib'],

and let me know if it goes away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants