-
-
Notifications
You must be signed in to change notification settings - Fork 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
import_metadata==5.0.0 causes error when loading netcdf file #7115
Comments
Hello, We try to follow nep-29 and intend to only support python >=3.8: Lines 72 to 76 in f5884a2
There's a change to this behavior in 3.10 as well, see: xarray/xarray/backends/plugins.py Lines 101 to 105 in f5884a2
|
Ok, thank you. I need to update my env then :) |
If you want to investigate more, feel free to try with python 3.8 as well. |
Thanks @EtienneCmb |
I was about to open the same issue but can confirm that I only get an issue with |
There is an incompatibility between `python<3.8` and `importlib_metadata==5.0.0` and (pydata/xarray#7115, NEP 29).
Without cartopy dependency docs can be built in virtualenv with pip. The readthedocs builds revealed an incompatibility between `python<3.8` and `importlib_metadata==5.0.0` (see pydata/xarray#7115, NEP 29). * Remove readthedocs conda enviromnent. * Ask readthedocs to use Python 3.8. * Require Python >= 3.8. * Remove readthedocs build settings. * Replace conda with pip for readthedocs build.
What happened?
Loading an .nc file under Python 3.7 and with the latest importlib_metadata==5.0.0 doesn't work.
What did you expect to happen?
File should be loaded.
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
Environment
INSTALLED VERSIONS
commit: None
python: 3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 06:08:21)
[GCC 9.4.0]
python-bits: 64
OS: Linux
OS-release: 5.4.210-1-MANJARO
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: fr_FR.UTF-8
LOCALE: ('fr_FR', 'UTF-8')
libhdf5: 1.12.2
libnetcdf: 4.9.0
xarray: 0.20.2
pandas: 1.3.5
numpy: 1.21.6
scipy: None
netCDF4: 1.6.1
pydap: None
h5netcdf: 1.0.2
h5py: 3.7.0
Nio: None
zarr: None
cftime: 1.6.2
nc_time_axis: None
PseudoNetCDF: None
rasterio: None
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: 65.4.1
pip: 22.2.2
conda: None
pytest: None
IPython: 7.34.0
sphinx: None
The text was updated successfully, but these errors were encountered: