Closed brandimarte closed 5 years ago
I also have problems building sisl for newer numpy versions. This is apparently known in the community (which was why I made a comment here: https://github.com/conda-forge/sisl-feedstock/blob/061ea1e85f2200ff608ff21234883693e79caf0e/recipe/meta.yaml#L32)
If you do:
conda remove numpy scipy
conda install -c conda-forge numpy=1.15.3 scipy
and then run python setup.py build
it should work (just tested).
Let me know if it works!
Note, that this only affects conda
installations. It should have been fixed in the latest numpy release, but apparently I still see the error...
I have to play a bit more with it. :)
For now, downgrading numpy
seems to fix the issue.
Thanks!
I did what you proposed but still I got the same error. I also tried rebasing with conda-forge with:
conda config --add channels conda-forge
conda config --set channel_priority strict
And then installing scipy
and numpy=1.15.3
, but the error persisted... Then I removed again completely the anaconda installation, installed minconda, and the following steps:
conda install -c conda-forge scipy
conda install six netcdf4 setuptools pyparsing pytest matplotlib tqdm xarray
conda install -c conda-forge numpy=1.15.3
Again the same error as the message above.
I basically did this:
<download and install Miniconda3.sh>
conda install -c conda-forge fortran-compiler
conda install -c conda-forge numpy=1.15.3 scipy matplotlib netcdf4
then it should work (xarray
is not really needed).
When you install these packages from different channels they may also do problematic things. Especially since xarray
and netcdf4 depends on numpy, so probably already before you installed numpy=1.15.3 it didn't work?
As
Thanks!
Installing fortran-compiler
from conda-forge
fixed the problem, with no need to downgrade numpy
(1.16.3 here). I got a few warnings like:
gcc: sisl/physics/_matrix_ddk.c
In file included from /home/pedro/local/opt/python/miniconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822,
from /home/pedro/local/opt/python/miniconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/pedro/local/opt/python/miniconda3/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from sisl/physics/_matrix_ddk.c:607:
/home/pedro/local/opt/python/miniconda3/lib/python3.7/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 " \
^~~~~~~
but I guess this will not affect the program, right?
Ok, great! No these are warnings implicitly raised by numpy (i.e. they have nothing to do with sisl). :)
Hi!
I'm facing the following error when building sisl, git version. I'm reporting as an issue because anaconda is a probable culprit here, but since many people uses this environment manager I though it was maybe worth to report. It's been actually a few months since this error starting to show up, so now I did a clean installation of the python environment in order to avoid having libraries inconsistencies, but the error persists.
Thanks!
Pedro
Here you are relevant info (please, let me know if you need something else):
gcc: 6.3.0 and 8.3.0 (same error with both) python: 3.7.3 (anaconda)
Output of the build: