html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/5138#issuecomment-826390033,https://api.github.com/repos/pydata/xarray/issues/5138,826390033,MDEyOklzc3VlQ29tbWVudDgyNjM5MDAzMw==,14808389,2021-04-25T21:06:52Z,2021-04-25T21:08:43Z,MEMBER,"both ``` mamba create -n py39-mamba python=3.9 mamba mamba env update -n py39-mamba -f ci/requirements/environment.yml ``` and ``` conda create -n py39-conda python=3.9 conda env update -n py39-conda -f ci/requirements/environment.yml ``` work for me (on linux), but `mamba` installs the wrong version of `python-eccodes` (build number `0` instead of number `1`). Of course, there's lots of other differences (mostly different build hashes). Edit: not sure if I didn't do anything wrong, though","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,855330062 https://github.com/pydata/xarray/issues/5138#issuecomment-826344428,https://api.github.com/repos/pydata/xarray/issues/5138,826344428,MDEyOklzc3VlQ29tbWVudDgyNjM0NDQyOA==,226037,2021-04-25T15:41:07Z,2021-04-25T15:41:07Z,MEMBER,"I don't know, I've never managed to get *cfgrib* and *xarray* to install on python 3.9. The *conda* solver fails. It looks like there is a conflict between *xarray* and *eccodes* dependencies, but I didn't investigate. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,855330062 https://github.com/pydata/xarray/issues/5138#issuecomment-826311657,https://api.github.com/repos/pydata/xarray/issues/5138,826311657,MDEyOklzc3VlQ29tbWVudDgyNjMxMTY1Nw==,14808389,2021-04-25T11:54:06Z,2021-04-25T11:54:06Z,MEMBER,"@alexamici, I'm not sure why but `mamba` does not install the fixed build of `python-eccodes` on [py39](https://github.com/pydata/xarray/runs/2428353334#step:8:280): ``` /home/runner/work/xarray/xarray/xarray/backends/cfgrib_.py:27: UserWarning: Failed to load cfgrib - most likely there is a problem accessing the ecCodes library. Try `import cfgrib` to get the full error message ``` Do you have any idea how to fix that?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,855330062 https://github.com/pydata/xarray/issues/5138#issuecomment-818024428,https://api.github.com/repos/pydata/xarray/issues/5138,818024428,MDEyOklzc3VlQ29tbWVudDgxODAyNDQyOA==,14808389,2021-04-12T18:17:50Z,2021-04-12T18:17:50Z,MEMBER,"thanks, @alexamici ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,855330062 https://github.com/pydata/xarray/issues/5138#issuecomment-817864442,https://api.github.com/repos/pydata/xarray/issues/5138,817864442,MDEyOklzc3VlQ29tbWVudDgxNzg2NDQ0Mg==,226037,2021-04-12T14:34:13Z,2021-04-12T14:34:13Z,MEMBER,"Yes, I would close the issue.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,855330062 https://github.com/pydata/xarray/issues/5138#issuecomment-817732577,https://api.github.com/repos/pydata/xarray/issues/5138,817732577,MDEyOklzc3VlQ29tbWVudDgxNzczMjU3Nw==,14808389,2021-04-12T11:28:45Z,2021-04-12T11:28:45Z,MEMBER,"great. If this is nothing we have control over, should we close this?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,855330062 https://github.com/pydata/xarray/issues/5138#issuecomment-817566465,https://api.github.com/repos/pydata/xarray/issues/5138,817566465,MDEyOklzc3VlQ29tbWVudDgxNzU2NjQ2NQ==,226037,2021-04-12T07:37:25Z,2021-04-12T07:37:25Z,MEMBER,"@keewis after merging #5139 the CI should not be failing anymore. The problem is now that *cfgrib* may not be consistently tested on all jobs and failures are silent. I'll wait a bit for the fix in `python-eccodes`, otherwise I'll do a new release of the conda package of *cfgrib*.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,855330062 https://github.com/pydata/xarray/issues/5138#issuecomment-817557923,https://api.github.com/repos/pydata/xarray/issues/5138,817557923,MDEyOklzc3VlQ29tbWVudDgxNzU1NzkyMw==,226037,2021-04-12T07:25:03Z,2021-04-12T07:25:03Z,MEMBER,"Technically this is an incompatibility between `python-eccodes` and `eccodes`, I'm trying to resolve it via a PR to the `python-eccodes-feedstock`: https://github.com/conda-forge/python-eccodes-feedstock/pull/71","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,855330062 https://github.com/pydata/xarray/issues/5138#issuecomment-817360245,https://api.github.com/repos/pydata/xarray/issues/5138,817360245,MDEyOklzc3VlQ29tbWVudDgxNzM2MDI0NQ==,14808389,2021-04-11T19:32:44Z,2021-04-11T19:32:44Z,MEMBER,"> To work around the current problem we may need to add a `eccodes>=2.21.0` to the CI agreed. If `eccodes<2.21.0` is truly incompatible with the new version of `cfgrib`, you could also release a new build on `conda-forge`.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,855330062 https://github.com/pydata/xarray/issues/5138#issuecomment-817358999,https://api.github.com/repos/pydata/xarray/issues/5138,817358999,MDEyOklzc3VlQ29tbWVudDgxNzM1ODk5OQ==,226037,2021-04-11T19:23:14Z,2021-04-11T19:28:45Z,MEMBER,"As a general measure I would add `ImportError` to the exception caught on import so we avoid to crash *xarray*: https://github.com/pydata/xarray/blob/186c2ff6542f090a8e97ffb755f866030be30be9/xarray/backends/cfgrib_.py#L18-L29 To work around the current problem we may need to add a `eccodes>=2.21.0` to the CI :/","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,855330062 https://github.com/pydata/xarray/issues/5138#issuecomment-817357498,https://api.github.com/repos/pydata/xarray/issues/5138,817357498,MDEyOklzc3VlQ29tbWVudDgxNzM1NzQ5OA==,226037,2021-04-11T19:12:13Z,2021-04-11T19:12:30Z,MEMBER,"Thanks @keewis! ATM the main suspect is a flaky the dependency between `python-eccodes` and `eccodes`, not `cfgrib` itself. So it may look like a random error in CI.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,855330062 https://github.com/pydata/xarray/issues/5138#issuecomment-817356770,https://api.github.com/repos/pydata/xarray/issues/5138,817356770,MDEyOklzc3VlQ29tbWVudDgxNzM1Njc3MA==,14808389,2021-04-11T19:06:36Z,2021-04-11T19:06:36Z,MEMBER,"it is interesting that this only happens for `py37 macos`, `py37 ubuntu` and `py39 ubuntu` but nothing else. > Looking into ecmwf/cfgrib#226 that seems related. That does indeed seem related but seems to use `py38` which does not fail for us. For reference, this is the traceback:
traceback ```pytb Traceback (most recent call last): File """", line 1, in File ""/home/runner/work/xarray/xarray/xarray/__init__.py"", line 3, in from . import testing, tutorial, ufuncs File ""/home/runner/work/xarray/xarray/xarray/tutorial.py"", line 13, in from .backends.api import open_dataset as _open_dataset File ""/home/runner/work/xarray/xarray/xarray/backends/__init__.py"", line 6, in from .cfgrib_ import CfGribDataStore File ""/home/runner/work/xarray/xarray/xarray/backends/cfgrib_.py"", line 19, in import cfgrib File ""/usr/share/miniconda/envs/xarray-tests/lib/python3.9/site-packages/cfgrib/__init__.py"", line 19, in from .cfmessage import CfMessage File ""/usr/share/miniconda/envs/xarray-tests/lib/python3.9/site-packages/cfgrib/cfmessage.py"", line 29, in from . import messages File ""/usr/share/miniconda/envs/xarray-tests/lib/python3.9/site-packages/cfgrib/messages.py"", line 28, in import eccodes # type: ignore File ""/usr/share/miniconda/envs/xarray-tests/lib/python3.9/site-packages/eccodes/__init__.py"", line 15, in from .eccodes import * File ""/usr/share/miniconda/envs/xarray-tests/lib/python3.9/site-packages/eccodes/eccodes.py"", line 12, in from gribapi import __version__ File ""/usr/share/miniconda/envs/xarray-tests/lib/python3.9/site-packages/gribapi/__init__.py"", line 13, in from .gribapi import * # noqa File ""/usr/share/miniconda/envs/xarray-tests/lib/python3.9/site-packages/gribapi/gribapi.py"", line 32, in from .bindings import ENC, ffi, lib File ""/usr/share/miniconda/envs/xarray-tests/lib/python3.9/site-packages/gribapi/bindings.py"", line 29, in from ._bindings import ffi, lib ImportError: /usr/share/miniconda/envs/xarray-tests/lib/python3.9/site-packages/gribapi/_bindings.cpython-39-x86_64-linux-gnu.so: undefined symbol: codes_bufr_key_is_header ```
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,855330062 https://github.com/pydata/xarray/issues/5138#issuecomment-817355970,https://api.github.com/repos/pydata/xarray/issues/5138,817355970,MDEyOklzc3VlQ29tbWVudDgxNzM1NTk3MA==,226037,2021-04-11T19:00:30Z,2021-04-11T19:00:30Z,MEMBER,Looking into ecmwf/cfgrib#226 that seems related.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,855330062