-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression: 3rd party backends are not discovered with xarray==0.20.0
#5930
Comments
xarray==0.20.0 does not recognize backend. See also pydata/xarray#5930
In the same example 1st party backends such as |
thanks for the report, @ashwinvis, that's indeed a bug in the new version, specifically here: xarray/xarray/backends/plugins.py Lines 102 to 106 in 960010b
"xarray" distribution, in a module called "xarray.backends" . That's not true, though: the distribution for third-party backends is the third-party library, and we're actually looking for all entrypoints in the "xarray.backends" group. Thus, the code should actually be:
entrypoints = entry_points().get("xarray.backends", ()) I've opened a PR to fix this: #5931 |
😅 Good catch. I was getting an error with cfgrib not recognizing kwargs, and it's this same issue. |
I think this might not actually be fixed... I now get a different error from xarray==0.20.1 than I did from xarray==0.20.0 : Appveyor
|
@da-wad I have the same issues. It looks like that the call to You can try to test #5959, where I hopefully fixed all issues. |
Nice work, @kmuehlbauer ! #5959 does fix the issue I was experiencing - thanks! Hope we get a 0.20.2 with that soon... |
What happened:
I am a library developer for
pymech
and I added a (unreleased) xarray backend following the documentation andrioxarray
's implementation. This works withxarray==0.19.0
, but with thexarray==0.20.0
it no longer works. Could someone clarify what has changed?What you expected to happen:
Backends can be discovered while using
xr.open_dataset(...)
with or without using theengine=
keyword argument.Minimal Complete Verifiable Example:
Since
pymech
's xarray backend is unreleased, I will demonstrate it via rioxarray:Anything else we need to know?:
Environment:
Output of xr.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.9.7 (default, Oct 10 2021, 15:13:22)
[GCC 11.1.0]
python-bits: 64
OS: Linux
OS-release: 5.10.75-1-lts
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: C
LOCALE: (None, None)
libhdf5: None
libnetcdf: None
xarray: 0.20.0
pandas: 1.3.4
numpy: 1.21.3
scipy: None
netCDF4: None
pydap: None
h5netcdf: None
h5py: None
Nio: None
zarr: None
cftime: None
nc_time_axis: None
PseudoNetCDF: None
rasterio: 1.2.10
cfgrib: None
iris: None
bottleneck: None
dask: None
distributed: None
matplotlib: None
cartopy: None
seaborn: None
numbagg: None
fsspec: None
cupy: None
pint: None
sparse: None
setuptools: 57.4.0
pip: 21.2.3
conda: None
pytest: None
IPython: 7.29.0
sphinx: None
The text was updated successfully, but these errors were encountered: