I am trying to use ECMWF GRIB_API to access GRIB files with Python. I get this error
Traceback (most recent call last):
File "/home/martin/markj/JustImportGRIB.py", line 1, in <module>
from gribapi import *
ImportError: No module named gribapi
One line of code :)
from gribapi import *
I am using Anaconda Python 2.7.12, Linux Centos 64-bit, installed as a user and not adding Anaconda to the path, if necessary - the Python system (2.6) is on the path. I installed GRIB_API from the Pingu Carsti channel , which was Google's best hit. The conda installation did not report any errors.
[martin@bonnie ~]$ anaconda2/bin/conda install -c pingucarsti grib_api=1.10.4
Fetching package metadata .........
Solving package specifications: ..........
Package plan for installation in environment /home/martin/anaconda2:
The following packages will be downloaded:
package | build
---------------------------|-----------------
grib_api-1.10.4 | 3 1.7 MB pingucarsti
The following NEW packages will be INSTALLED:
grib_api: 1.10.4-3 pingucarsti
Proceed ([y]/n)? y
Fetching packages ...
grib_api-1.10. 100% |
Extracting packages ...
[ COMPLETE ]|| 100%
I found some error messages about this error caused by an error in ECMWF GRIB_API, but I donβt know enough about Anaconda (or maybe Python) to figure out how to apply workarounds.