Patch applied to xarray=2023.10.0 is not in effect
bug
### Solution to issue cannot be found in the documentation.
- [x] I checked the documentation.
### Issue
Hello,
Some time ago, I raised an issue that the NumPy dependency for Xarray 2023.10.0 should be increased from ≥1.21.0 to >=1.22.0, and this was accepted and merged by @hmaarrfk.
https://github.com/conda-forge/admin-requests/pull/917
https://github.com/conda-forge/xarray-feedstock/pull/97
However, this patch is no longer in effect, even though it's still in this repository.
https://github.com/conda-forge/conda-forge-repodata-patches-feedstock/blob/main/recipe/patch_yaml/xarray.yaml
You can check this by creating an environment with
```
mamba create -n xarray_test_env xarray=2023.10.0 numpy=1.21.0
mamba run -n xarray_test_env python -c "import xarray"
```
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "C:\Users\j.belina\AppData\Local\miniforge3\envs\xarray_test_env\lib\site-packages\xarray\__ini>
> from xarray import testing, tutorial
> File "C:\Users\j.belina\AppData\Local\miniforge3\envs\xarray_test_env\lib\site-packages\xarray\testi>
> from xarray.core.coordinates import Coordinates
> File "C:\Users\j.belina\AppData\Local\miniforge3\envs\xarray_test_env\lib\site-packages\xarray\core\>
> from xarray.core.alignment import Aligner
> File "C:\Users\j.belina\AppData\Local\miniforge3\envs\xarray_test_env\lib\site-packages\xarray\core\>
> from xarray.core.variable import Variable, as_compatible_data, calculate_dimensions
> File "C:\Users\j.belina\AppData\Local\miniforge3\envs\xarray_test_env\lib\site-packages\xarray\core\>
> from xarray.namedarray.core import NamedArray
> File "C:\Users\j.belina\AppData\Local\miniforge3\envs\xarray_test_env\lib\site-packages\xarray\named>
> from xarray.namedarray._typing import (
> File "C:\Users\j.belina\AppData\Local\miniforge3\envs\xarray_test_env\lib\site-packages\xarray\named>
> _DType = TypeVar("_DType", bound=np.dtype[Any])
> TypeError: 'numpy._DTypeMeta' object is not subscriptable
### Installed packages
```shell
bzip2 1.0.8 h2466b09_7 conda-forge
ca-certificates 2025.8.3 h4c7d964_0 conda-forge
libblas 3.9.0 34_h5709861_mkl conda-forge
libcblas 3.9.0 34_h2a3cdd5_mkl conda-forge
libexpat 2.7.1 hac47afa_0 conda-forge
libffi 3.4.6 h537db12_1 conda-forge
libhwloc 2.12.1 default_h88281d1_1000 conda-forge
libiconv 1.18 hc1393d2_2 conda-forge
liblapack 3.9.0 34_hf9ab0e9_mkl conda-forge
liblzma 5.8.1 h2466b09_2 conda-forge
libsqlite 3.50.4 hf5d6505_0 conda-forge
libwinpthread 12.0.0.r4.gg4f2fc60ca h57928b3_9 conda-forge
libxml2 2.13.8 h741aa76_1 conda-forge
libzlib 1.3.1 h2466b09_2 conda-forge
llvm-openmp 20.1.8 hfa2b4ca_2 conda-forge
mkl 2024.2.2 h57928b3_16 conda-forge
numpy 1.21.0 py39h6635163_0 conda-forge
openssl 3.5.2 h725018a_0 conda-forge
packaging 25.0 pyh29332c3_1 conda-forge
pandas 2.0.0 py39h2ba5b7c_0 conda-forge
pip 25.2 pyh8b19718_0 conda-forge
python 3.9.23 h8c5b53a_0_cpython conda-forge
python-dateutil 2.9.0.post0 pyhe01879c_2 conda-forge
python-tzdata 2025.2 pyhd8ed1ab_0 conda-forge
python_abi 3.9 8_cp39 conda-forge
pytz 2025.2 pyhd8ed1ab_0 conda-forge
setuptools 80.9.0 pyhff2d567_0 conda-forge
six 1.17.0 pyhe01879c_1 conda-forge
tbb 2021.13.0 h18a62a1_3 conda-forge
tk 8.6.13 h2c6b04d_2 conda-forge
tzdata 2025b h78e105d_0 conda-forge
ucrt 10.0.26100.0 h57928b3_0 conda-forge
vc 14.3 h41ae7f8_31 conda-forge
vc14_runtime 14.44.35208 h818238b_31 conda-forge
vcomp14 14.44.35208 h818238b_31 conda-forge
vs2015_runtime 14.44.35208 h38c0c73_31 conda-forge
wheel 0.45.1 pyhd8ed1ab_1 conda-forge
xarray 2023.10.0 pyhd8ed1ab_0 conda-forge
```
### Environment info
```shell
active environment : None
shell level : 0
user config file : C:\Users\j.belina\.condarc
populated config files : C:\Users\j.belina\AppData\Local\miniforge3\.condarc
C:\Users\j.belina\.condarc
conda version : 24.3.0
conda-build version : not installed
python version : 3.10.14.final.0
solver : libmamba (default)
virtual packages : __archspec=1=skylake
__conda=24.3.0=0
__win=0=0
base environment : C:\Users\j.belina\AppData\Local\miniforge3 (writable)
conda av data dir : C:\Users\j.belina\AppData\Local\miniforge3\etc\conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
package cache : C:\Users\j.belina\AppData\Local\miniforge3\pkgs
C:\Users\j.belina\.conda\pkgs
C:\Users\j.belina\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\j.belina\AppData\Local\miniforge3\envs
C:\Users\j.belina\.conda\envs
C:\Users\j.belina\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/24.3.0 requests/2.31.0 CPython/3.10.14 Windows/10 Windows/10.0.22631 solver/libmamba conda-libmamba-solver/24.11.1 libmambapy/2.3.2
administrator : False
netrc file : None
offline mode : False
```
关闭于 2025-10-18 11 条评论