issues: 1394854820
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1394854820 | I_kwDOAMm_X85TI8uk | 7115 | import_metadata==5.0.0 causes error when loading netcdf file | 15892073 | closed | 0 | 5 | 2022-10-03T14:39:57Z | 2022-10-03T16:13:20Z | 2022-10-03T16:11:53Z | CONTRIBUTOR | 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```Python Python version 3.7import_metadata==5.0.0import xarray as xr import numpy as np data = xr.DataArray( np.random.rand(10, 20) ) data.to_netcdf('test.nc') xr.load_dataarray('test.nc') ``` 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
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/7115/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |