DurhamARC / ManyFEWS

The Many Flood Early Warning System
GNU General Public License v3.0
7 stars 3 forks source link

Pygrib install fails with build error #79

Closed sjmf closed 2 years ago

sjmf commented 2 years ago

The command conda env create --file condaEnv/manyFEMSenv.yml fails with the following error:

 #warning "Using deprecated NumPy API, disable it with " \
       ^
      src/pygrib/_pygrib.c:756:10: fatal error: 'grib_api.h' file not found
      #include "grib_api.h"
               ^~~~~~~~~~~~
      1 warning and 1 error generated.
      error: command '/usr/bin/clang' failed with exit code 1
      [end of output]

Error can be fixed/bypassed by moving pygrib from the pip install dependencies (line 27 of condaEnv/manyFEMSenv.yml) into the conda dependencies list instead.

Unless anyone objects, I'll commit this change.

Reference issue: https://github.com/jswhit/pygrib/issues/115