RuntimeError: Could not load the ecCodes library!
GloryPassarello opened this issue · comments
Hi all,
I have installed the ecCodes with
pip3 install eccodes-python
but the python -m eccodes selfcheck
fails, giving back :
RuntimeError: Could not load the ecCodes library!
I have installed it on a virtualenv and I am on Ubuntu 18.04
@GloryPassarello you need to follow the instructions to install the ecCodes library: https://github.com/ecmwf/eccodes-python#system-dependencies
edit You may also try to install it via APT, but the version shipped may be old:
sudo apt install libeccodes-tools
@alexamici , I tried with the instruction you reported before, but I solved with the last line of code and I have back:
Warning: ecCodes 2.17.0 or higher is recommended. You are running version 2.6.0 Found: ecCodes v2.6.0. Your system is ready.
I have installed the version of eccodes 2.17.
why is the version changed?
@GloryPassarello you need to follow the instructions to install the ecCodes library: https://github.com/ecmwf/eccodes-python#system-dependencies
edit You may also try to install it via APT, but the version shipped may be old:
sudo apt install libeccodes-tools
this worked for ubuntu
for mac os
brew install eccodes
If your coming here with this error on an M1 mac, see https://github.com/ecmwf/findlibs/pull/3/files homebrew install eccodes to an unrecognised place