ecmwf / eccodes-python

Python interface to the ecCodes GRIB/BUFR decoder/encoder
Apache License 2.0
113 stars 32 forks source link

Wrong version or selfcheck error ? #19

Closed chikibot closed 1 year ago

chikibot commented 4 years ago

I installed ecCodes 2.16.0 as suggested here, and bindings with PyPi. The selfcheck command gives me Warning: ecCodes 2.16.0 or higher is recommended. You are running version 2.6.0 Found: ecCodes v2.6.0. Your system is ready.

And yet in every ecCodes related file I can find, the version seems to be 2.16.0.

I'm not sure what the problem is, wrong version or error in selfcheck.

Does anyone know where exactly the selfcheck command looks to check the version ?

tovogt commented 2 years ago

I had the same issue and solved it as follows:

Running python -m eccodes selfcheck in the console provides us with the paths to the library file libeccodes.so. I found that there was a system-wide installation of an outdated version that was used instead of the one I installed in my conda environment. I could enforce the use of the library in the conda environment by setting export LD_LIBRARY_PATH="$CONDA_PREFIX/lib/:${LD_LIBRARY_PATH}". You can make this permanent with your conda environment following the steps here: https://stackoverflow.com/a/49238956