-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
We started seeing RuntimeError: Cannot find the ecCodes library errors after 2.45.0 update. We use the binary packages for speed and ease of use.
Please note that the error is not triggered if there is a system eccodes installation since it seems to auto-fallback to that (even if it is very old / should not be used).
What are the steps to reproduce the bug?
TEST_PROJ_DIR=~/test_eccodes_add_to_project
mkdir $TEST_PROJ_DIR
cd $TEST_PROJ_DIR
uv init -p 3.13
uv add eccodes # will add the latest (2.45.0)
uv run python -c 'import eccodes; print("ok")' # will error if no system eccodes
uv add "eccodes<2.45" # will add 2.44 (also shows eccodeslib et al. added back)
uv run python -c 'import eccodes; print("ok")' # runs okVersion
v2.45.0
Platform (OS and architecture)
Ubuntu 25.10 / WSL2
Relevant log output
jlb@computer:~/test_eccodes_add_to_project$ uv run python -c 'import eccodes'
Traceback (most recent call last):
File "<string>", line 1, in <module>
import eccodes
File "/home/jlb/test_eccodes_add_to_project/.venv/lib/python3.14/site-packages/eccodes/__init__.py", line 13, in <module>
from .eccodes import * # noqa
^^^^^^^^^^^^^^^^^^^^^^
File "/home/jlb/test_eccodes_add_to_project/.venv/lib/python3.14/site-packages/eccodes/eccodes.py", line 12, in <module>
from gribapi import (
...<8 lines>...
)
File "/home/jlb/test_eccodes_add_to_project/.venv/lib/python3.14/site-packages/gribapi/__init__.py", line 13, in <module>
from .gribapi import * # noqa
^^^^^^^^^^^^^^^^^^^^^^
File "/home/jlb/test_eccodes_add_to_project/.venv/lib/python3.14/site-packages/gribapi/gribapi.py", line 34, in <module>
from gribapi.errors import GribInternalError
File "/home/jlb/test_eccodes_add_to_project/.venv/lib/python3.14/site-packages/gribapi/errors.py", line 16, in <module>
from .bindings import ENC, ffi, lib
File "/home/jlb/test_eccodes_add_to_project/.venv/lib/python3.14/site-packages/gribapi/bindings.py", line 105, in <module>
raise RuntimeError("Cannot find the ecCodes library")
RuntimeError: Cannot find the ecCodes library
jlb@computer:~/test_eccodes_add_to_project$ uv add "eccodes<2.45"
Resolved 10 packages in 5ms
Uninstalled 1 package in 1ms
Installed 4 packages in 17ms
- eccodes==2.45.0
+ eccodes==2.44.0
+ eccodeslib==2.44.1.8
+ eckitlib==1.32.4.8
+ fckitlib==0.14.1.8
jlb@computer:~/test_eccodes_add_to_project$ uv run python -c 'import eccodes;print("ok")'
okAccompanying data
No response
Organisation
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working