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/6514#issuecomment-1109945309,https://api.github.com/repos/pydata/xarray/issues/6514,1109945309,IC_kwDOAMm_X85CKGvd,367900,2022-04-26T15:33:40Z,2022-04-26T15:33:40Z,CONTRIBUTOR,"> The _Compatibility Note_ I linked above appears to point out the the `entry_points(group=""xarray.backends"")` is available since Python 3.6, so we not need the versione check at all.
There's some unfortunate version numbers there. That refers to version 3.6 of the third-party [importlib_metadata](https://pypi.org/project/importlib-metadata/) library, a later version of which was used for the ``importlib.metadata`` library included with Python 3.10. If you try to run `entry_points(group=""xarray.backends"")` on Python 3.9 it fails with a TypeError.","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1215082284
https://github.com/pydata/xarray/issues/6514#issuecomment-1109723579,https://api.github.com/repos/pydata/xarray/issues/6514,1109723579,IC_kwDOAMm_X85CJQm7,367900,2022-04-26T12:16:48Z,2022-04-26T12:16:48Z,CONTRIBUTOR,"Just came to report this after seeing it in some tests of one of my projects. Based on a change I made for plugins in that project, I think that changing
https://github.com/pydata/xarray/blob/d479009d79374dc4a56c9f4346b1af38f5ac182c/xarray/backends/plugins.py#L96-L99
to
```python
@functools.lru_cache(maxsize=1)
def list_engines():
try:
entrypoints = entry_points(group=""xarray.backends"") # Python >= 3.10
except TypeError:
entrypoints = entry_points().get(""xarray.backends"", ())
return build_engines(entrypoints)
```
will take care of this. Not tested as I don't have access to an older Python environment right now, but I can make a pull request later if this would be a suitable workaround and nobody else does so first.","{""total_count"": 2, ""+1"": 2, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1215082284