d-chambers / Detex

A Python package for subspace detection and waveform similarity clustering
Other
32 stars 6 forks source link

Detex compilation warnings with Anaconda3 install. #37

Open blyck opened 6 years ago

blyck commented 6 years ago

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 commented 6 years ago

Hey @blyck, thanks for the heads up. Googling around a bit this appears to be a common issue. For example: https://github.com/scipy/scipy/issues/5889, https://github.com/scikit-image/scikit-image/issues/2037, https://github.com/ioam/topographica/issues/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.