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/5944#issuecomment-963583761,https://api.github.com/repos/pydata/xarray/issues/5944,963583761,IC_kwDOAMm_X845bx8R,8699967,2021-11-08T21:19:08Z,2021-11-08T21:21:02Z,CONTRIBUTOR,"I see the same issue reported here: https://github.com/pydata/xarray/issues/5944#issuecomment-962958896
See: https://github.com/corteva/rioxarray/runs/4140632105 (Note: updated CI build link)","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046454702
https://github.com/pydata/xarray/issues/5944#issuecomment-963281576,https://api.github.com/repos/pydata/xarray/issues/5944,963281576,IC_kwDOAMm_X845aoKo,8699967,2021-11-08T15:38:55Z,2021-11-08T15:38:55Z,CONTRIBUTOR,"When a fix is added for this, feel free to ping me to test the fix on `rioxarray`.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046454702
https://github.com/pydata/xarray/issues/5944#issuecomment-963006086,https://api.github.com/repos/pydata/xarray/issues/5944,963006086,IC_kwDOAMm_X845Zk6G,9155111,2021-11-08T10:19:37Z,2021-11-08T10:19:37Z,CONTRIBUTOR,"To use the `select` method, the following should be changed:
- Swap the imports so that newer `importlib_metadata` is imported first:
https://github.com/pydata/xarray/blob/e0deb9cf0a5cd5c9e3db033fd13f075added9c1e/xarray/backends/plugins.py#L8-L12
- Require importlib_metadata for Python < 3.10
https://github.com/pydata/xarray/blob/e0deb9cf0a5cd5c9e3db033fd13f075added9c1e/setup.cfg#L81","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046454702
https://github.com/pydata/xarray/issues/5944#issuecomment-963003300,https://api.github.com/repos/pydata/xarray/issues/5944,963003300,IC_kwDOAMm_X845ZkOk,9155111,2021-11-08T10:16:35Z,2021-11-08T10:16:35Z,CONTRIBUTOR,"@kmuehlbauer
- Add a `breakpoint()` below line 102 and print out entrypoints. Step into `build_engines` follow it using the debugger.
- Can you also try this suggestion https://github.com/pydata/xarray/issues/5944#issuecomment-962414054
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046454702
https://github.com/pydata/xarray/issues/5944#issuecomment-962958896,https://api.github.com/repos/pydata/xarray/issues/5944,962958896,IC_kwDOAMm_X845ZZYw,23487320,2021-11-08T09:21:10Z,2021-11-08T09:22:16Z,CONTRIBUTOR,"I'm getting a similar issue with `xarray=0.20.1` when `rioxarray` and `rasterio` are both installed, looks like #5931 didn't fully fix things? Here's the full traceback.
```python-traceback
_________________ test_open_variable_filter[open_rasterio_engine] _________________
open_rasterio =
def test_open_variable_filter(open_rasterio):
> with open_rasterio(
os.path.join(TEST_INPUT_DATA_DIR, ""PLANET_SCOPE_3D.nc""), variable=[""blue""]
) as rds:
test/integration/test_integration__io.py:185:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/conftest.py:103: in open_rasterio_engine
return xr.open_dataset(file_name_or_object, engine=""rasterio"", **kwargs)
../../../miniconda3/envs/rioxarray/lib/python3.9/site-packages/xarray/backends/api.py:481: in open_dataset
backend = plugins.get_backend(engine)
../../../miniconda3/envs/rioxarray/lib/python3.9/site-packages/xarray/backends/plugins.py:158: in get_backend
engines = list_engines()
../../../miniconda3/envs/rioxarray/lib/python3.9/site-packages/xarray/backends/plugins.py:103: in list_engines
return build_engines(entrypoints)
../../../miniconda3/envs/rioxarray/lib/python3.9/site-packages/xarray/backends/plugins.py:92: in build_engines
entrypoints = remove_duplicates(entrypoints)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
entrypoints = [EntryPoint(name='rasterio', value='rioxarray.xarray_plugin:RasterioBackend', group='xarray.backends'), EntryPoint(nam...rray.backends'), EntryPoint(name='rasterio', value='rioxarray.xarray_plugin:RasterioBackend', group='xarray.backends')]
def remove_duplicates(entrypoints):
# sort and group entrypoints by name
entrypoints = sorted(entrypoints, key=lambda ep: ep.name)
entrypoints_grouped = itertools.groupby(entrypoints, key=lambda ep: ep.name)
# check if there are multiple entrypoints for the same name
unique_entrypoints = []
for name, matches in entrypoints_grouped:
matches = list(matches)
unique_entrypoints.append(matches[0])
matches_len = len(matches)
if matches_len > 1:
> selected_module_name = matches[0].module_name
E AttributeError: 'EntryPoint' object has no attribute 'module_name'
../../../miniconda3/envs/rioxarray/lib/python3.9/site-packages/xarray/backends/plugins.py:29: AttributeError
================================ warnings summary =================================
test/integration/test_integration__io.py::test_open_variable_filter[open_rasterio]
/home/username/projects/rioxarray/rioxarray/_io.py:366: DeprecationWarning: string or file could not be read to its end due to unmatched data; this will raise a ValueError in the future.
new_val = np.fromstring(value.strip(""{}""), dtype=""float"", sep="","")
-- Docs: https://docs.pytest.org/en/stable/warnings.html
============================= short test summary info =============================
FAILED test/integration/test_integration__io.py::test_open_variable_filter[open_rasterio_engine]
!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!
```
Output of `xr.show_versions()`
```
INSTALLED VERSIONS
------------------
commit: None
python: 3.9.7 | packaged by conda-forge | (default, Sep 29 2021, 19:20:46)
[GCC 9.4.0]
python-bits: 64
OS: Linux
OS-release: 5.10.0-8-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_NZ.UTF-8
LOCALE: ('en_NZ', 'UTF-8')
libhdf5: 1.12.1
libnetcdf: 4.8.1
xarray: 0.20.1
pandas: 1.3.4
numpy: 1.21.4
scipy: 1.7.1
netCDF4: 1.5.8
pydap: None
h5netcdf: None
h5py: None
Nio: None
zarr: None
cftime: 1.5.1.1
nc_time_axis: None
PseudoNetCDF: None
rasterio: 1.2.10
cfgrib: None
iris: None
bottleneck: None
dask: 2021.11.0
distributed: 2021.11.0
matplotlib: None
cartopy: None
seaborn: None
numbagg: None
fsspec: 2021.11.0
cupy: None
pint: None
sparse: None
setuptools: 58.5.3
pip: 21.3.1
conda: None
pytest: 6.2.5
IPython: None
sphinx: 1.8.5
```
","{""total_count"": 2, ""+1"": 2, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046454702
https://github.com/pydata/xarray/issues/5944#issuecomment-962414054,https://api.github.com/repos/pydata/xarray/issues/5944,962414054,IC_kwDOAMm_X845XUXm,9155111,2021-11-06T07:50:52Z,2021-11-06T07:50:52Z,CONTRIBUTOR,"On a side note, the syntax `.get` is deprecated in the `importlib_metadata` package and most likely in Python 3.10's `importlib.metadata` stdlib.
```py
In [16]: from importlib_metadata import entry_points
In [17]: entry_points().get('xarray.backends', ())
:1: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select.
entry_points().get('xarray.backends', ())
Out[17]:
[EntryPoint(name='rasterio', value='rioxarray.xarray_plugin:RasterioBackend', group='xarray.backends'),
EntryPoint(name='pymech', value='pymech.dataset:PymechXarrayBackend', group='xarray.backends')]
In [18]: entry_points().select(group='xarray.backends')
Out[18]:
[EntryPoint(name='rasterio', value='rioxarray.xarray_plugin:RasterioBackend', group='xarray.backends'),
EntryPoint(name='pymech', value='pymech.dataset:PymechXarrayBackend', group='xarray.backends')]
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1046454702