eccodes-python icon indicating copy to clipboard operation
eccodes-python copied to clipboard

RuntimeError: Could not load the ecCodes library!

Open GloryPassarello opened this issue 6 years ago • 4 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 avatar Dec 20 '19 15:12 GloryPassarello

@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 avatar Dec 20 '19 16:12 alexamici

@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 avatar Mar 26 '20 15:03 GloryPassarello

@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

zaheerkzz avatar Aug 19 '22 15:08 zaheerkzz

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

JonRowe avatar Nov 13 '22 08:11 JonRowe