Xarray failure to open netcdf from ERA5 CDS-beta

I have a Jupyter notebook that was reading the netcdf file from the old version of the CDS (ERA5 hourly data on single levels from 1940 to present - I extracted the boundary layer height).

import xarray as xr
filename = ‘data_stream-oper.nc’
ds = xr.open_dataset(filename)

With the new nc file I got the error:

→ 177 raise ValueError(error_msg)

ValueError: found the following matches with the input file in xarray’s IO backends: [‘netcdf4’, ‘h5netcdf’]. But their dependencies may not be installed, see:

If I specify the engine (netcdf4 should be the default) I get:

ValueError: unrecognized engine netcdf4 must be one of: [‘scipy’, ‘store’]

netCDF4 is the default only if it IS installed. Installing netCDF4 python package should solve this issue. Depending on the python environment you are using, conda install netCDF4 or pip install netCDF4 or whatever package manager install [python-|python3-]netCDF4 should do the trick. This pops out now because the data are by default now in netCDF4 format. Blame the new GRIB->netCDF cfGRIB converter.