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/5150#issuecomment-820537456,https://api.github.com/repos/pydata/xarray/issues/5150,820537456,MDEyOklzc3VlQ29tbWVudDgyMDUzNzQ1Ng==,14808389,2021-04-15T15:50:48Z,2021-04-16T10:31:15Z,MEMBER,"did you try `mamba` or `conda` from `miniconda`? Edit: also, did you make sure to activate the new environment (check `$PYTHONPATH` and `which python`) and that you are not in a directory containing the code of `xarray` or `cfgrib`?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,856915051 https://github.com/pydata/xarray/issues/5150#issuecomment-820513082,https://api.github.com/repos/pydata/xarray/issues/5150,820513082,MDEyOklzc3VlQ29tbWVudDgyMDUxMzA4Mg==,14808389,2021-04-15T15:19:25Z,2021-04-15T15:19:25Z,MEMBER,"strange. This seems like a environment issue. Could you try creating a environment with `conda env create -f env.yml`?
contents of env.yml ``` name: test channels: - conda-forge dependencies: - python=3.8.6 - xarray=0.16.2 - pandas=1.2.1 - numpy=1.19.2 - scipy=1.6.0 - netCDF4=1.5.5.1 - h5py=2.10.0 - zarr=2.6.1 - cftime=1.3.1 - nc-time-axis=1.2.0 - iris=2.4.0 - bottleneck=1.3.2 - dask=2021.01.0 - distributed=2021.01.0 - matplotlib=3.3.3 - cartopy=0.18.0 - seaborn=0.11.1 - setuptools=49.6.0 - pip=20.3.1 - conda=4.9.2 - pytest=6.2.1 - ipython=7.19.0 - sphinx=3.4.3 - libnetcdf=4.7.4 - cfgrib=0.9.9.0 - h5netcdf=0.8.1 ```
With that, `python -c 'import xarray as xr; xr.tutorial.open_dataset(""era5-2mt-2019-03-uk.grib"", engine=""cfgrib"")'` passes for me.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,856915051 https://github.com/pydata/xarray/issues/5150#issuecomment-820427610,https://api.github.com/repos/pydata/xarray/issues/5150,820427610,MDEyOklzc3VlQ29tbWVudDgyMDQyNzYxMA==,14808389,2021-04-15T13:36:12Z,2021-04-15T13:36:57Z,MEMBER,"I still can't reproduce this. For reference, here's my environment:
output of xr.show_versions() ``` INSTALLED VERSIONS ------------------ commit: None python: 3.8.8 | packaged by conda-forge | (default, Feb 20 2021, 16:22:27) [GCC 9.3.0] python-bits: 64 OS: Linux OS-release: 4.19.0-16-amd64 machine: x86_64 processor: byteorder: little libhdf5: None libnetcdf: None xarray: 0.16.2 pandas: 1.2.4 numpy: 1.20.2 scipy: None netCDF4: None pydap: None h5netcdf: None h5py: None Nio: None zarr: None cftime: None nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: 0.9.9.0 iris: None bottleneck: None dask: None distributed: None matplotlib: None cartopy: None seaborn: None numbagg: None pint: None setuptools: 49.6.0.post20210108 pip: 21.0.1 conda: 4.10.1 pytest: None IPython: 7.22.0 sphinx: None ```
> And I attached the output of ""xr.show_versions()"" I can't seem to find that. Am I missing something? > xr.show_versions shows ""cfgrib: None"", too. I guess that's because the import fails.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,856915051 https://github.com/pydata/xarray/issues/5150#issuecomment-818712744,https://api.github.com/repos/pydata/xarray/issues/5150,818712744,MDEyOklzc3VlQ29tbWVudDgxODcxMjc0NA==,14808389,2021-04-13T12:55:15Z,2021-04-13T12:55:15Z,MEMBER,"We would need more information about your environments. Could you post the output of `xr.show_versions()`? Also, can you reproduce this with ```python xr.tutorial.open_dataset(""era5-2mt-2019-03-uk.grib"", engine=""cfgrib"") ```","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,856915051