pydata / xarray

N-D labeled arrays and datasets in Python
https://xarray.dev
Apache License 2.0
3.61k stars 1.08k forks source link

Issue w/ new rollout? 'numpy._DTypeMeta' object is not subscriptable #8342

Closed ekirkend8 closed 1 year ago

ekirkend8 commented 1 year ago

What happened?

Trying to use btyd package, which uses pymc, which uses xarray, I couldn't import the btyd package because of the following error in xarray:

TypeError: 'numpy._DTypeMeta' object is not subscriptable
. . .
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-49869aff-4f3a-4860-917c-83ddd6e30ee4/lib/python3.10/site-packages/xarray/namedarray/_typing.py:28
     24 _T = TypeVar("_T")
     25 _T_co = TypeVar("_T_co", covariant=True)
---> 28 _DType = TypeVar("_DType", bound=np.dtype[Any])
     29 _DType_co = TypeVar("_DType_co", covariant=True, bound=np.dtype[Any])
     30 # A subset of `npt.DTypeLike` that can be parametrized w.r.t. `np.generic`

The newest xarray version was installed on my instance - it was working just fine before the newest release.

Collecting xarray>=0.21.0
  Downloading xarray-2023.10.0-py3-none-any.whl (1.1 MB)

Installing the previous version allowed btyd to install correctly.

I also just realized while filling this out (xr.show_versions()), xarray can't be imported on its own without throwing this error.

What did you expect to happen?

I expected btyd to be imported as usual (I just ran it this morning and it worked).

Minimal Complete Verifiable Example

pip install btyd mlflow lifetimes

import btyd

MVCE confirmation

Relevant log output

TypeError: 'numpy._DTypeMeta' object is not subscriptable
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
File <command-2124478808935266>:9
      6 import numpy as np
      7 from datetime import timedelta
----> 9 import btyd
     10 from btyd.fitters.beta_geo_fitter import BetaGeoFitter
     12 from btyd.plotting import plot_calibration_purchases_vs_holdout_purchases

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/btyd/__init__.py:10
      8 from .fitters.gamma_gamma_fitter import GammaGammaFitter
      9 from .fitters.beta_geo_covar_fitter import BetaGeoCovarsFitter
---> 10 from .models import BaseModel
     11 from .models.beta_geo_model import BetaGeoModel
     13 __version__ = "0.1.0a1"

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/btyd/models/__init__.py:14
     11 import numpy as np
     12 import pandas as pd
---> 14 import pymc as pm
     15 import arviz as az
     16 import aesara.tensor as at

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/pymc/__init__.py:49
     44     aesara.config.gcc__cxxflags = augmented
     47 __set_compiler_flags()
---> 49 from pymc import _version, gp, ode, sampling
     50 from pymc.aesaraf import *
     51 from pymc.backends import *

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/pymc/gp/__init__.py:15
      1 #   Copyright 2020 The PyMC Developers
      2 #
      3 #   Licensed under the Apache License, Version 2.0 (the "License");
   (...)
     12 #   See the License for the specific language governing permissions and
     13 #   limitations under the License.
---> 15 from pymc.gp import cov, mean, util
     16 from pymc.gp.gp import (
     17     TP,
     18     Latent,
   (...)
     23     MarginalSparse,
     24 )

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/pymc/gp/util.py:32
     29 from pymc.aesaraf import compile_pymc, walk_model
     31 # Avoid circular dependency when importing modelcontext
---> 32 from pymc.distributions.distribution import Distribution
     34 _ = Distribution  # keep both pylint and black happy
     35 from pymc.model import modelcontext

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/pymc/distributions/__init__.py:21
      1 #   Copyright 2020 The PyMC Developers
      2 #
      3 #   Licensed under the Apache License, Version 2.0 (the "License");
   (...)
     12 #   See the License for the specific language governing permissions and
     13 #   limitations under the License.
     15 from pymc.distributions.logprob import (  # isort:skip
     16     logcdf,
     17     logp,
     18     joint_logp,
     19 )
---> 21 from pymc.distributions.bound import Bound
     22 from pymc.distributions.censored import Censored
     23 from pymc.distributions.continuous import (
     24     AsymmetricLaplace,
     25     Beta,
   (...)
     57     Weibull,
     58 )

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/pymc/distributions/bound.py:24
     21 from aesara.tensor.var import TensorVariable
     23 from pymc.aesaraf import floatX, intX
---> 24 from pymc.distributions.continuous import BoundedContinuous, bounded_cont_transform
     25 from pymc.distributions.dist_math import check_parameters
     26 from pymc.distributions.distribution import Continuous, Discrete

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/pymc/distributions/continuous.py:78
     76 from pymc.aesaraf import floatX
     77 from pymc.distributions import transforms
---> 78 from pymc.distributions.dist_math import (
     79     SplineWrapper,
     80     check_parameters,
     81     clipped_beta_rvs,
     82     i0e,
     83     log_normal,
     84     logpow,
     85     normal_lccdf,
     86     normal_lcdf,
     87     zvalue,
     88 )
     89 from pymc.distributions.distribution import DIST_PARAMETER_TYPES, Continuous
     90 from pymc.distributions.shape_utils import rv_size_is_none

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/pymc/distributions/dist_math.py:40
     37 from aesara.tensor.slinalg import Cholesky, SolveTriangular
     39 from pymc.aesaraf import floatX
---> 40 from pymc.distributions.shape_utils import to_tuple
     42 solve_lower = SolveTriangular(lower=True)
     43 solve_upper = SolveTriangular(lower=False)

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/pymc/distributions/shape_utils.py:38
     35 from typing_extensions import TypeAlias
     37 from pymc.aesaraf import convert_observed_data
---> 38 from pymc.model import modelcontext
     40 __all__ = [
     41     "to_tuple",
     42     "shapes_broadcasting",
   (...)
     48     "change_dist_size",
     49 ]
     51 from pymc.aesaraf import PotentialShapeType

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/pymc/model.py:67
     65 from pymc.distributions.transforms import _default_transform
     66 from pymc.exceptions import ImputationWarning, SamplingError, ShapeError, ShapeWarning
---> 67 from pymc.initial_point import make_initial_point_fn
     68 from pymc.util import (
     69     UNSET,
     70     WithMemoization,
   (...)
     76     treelist,
     77 )
     78 from pymc.vartypes import continuous_types, discrete_types, typefilter

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/pymc/initial_point.py:29
     26 from aesara.tensor.var import TensorVariable
     28 from pymc.aesaraf import compile_pymc, find_rng_nodes, replace_rng_nodes, reseed_rngs
---> 29 from pymc.util import get_transformed_name, get_untransformed_name, is_transformed_name
     31 StartDict = Dict[Union[Variable, str], Union[np.ndarray, Variable, str]]
     32 PointType = Dict[str, np.ndarray]

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/pymc/util.py:20
     16 import warnings
     18 from typing import Any, Dict, List, Optional, Sequence, Tuple, Union, cast
---> 20 import arviz
     21 import cloudpickle
     22 import numpy as np

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/arviz/__init__.py:33
     27         super()._log(level, msg, *args, **kwargs)
     30 _log = Logger("arviz")
---> 33 from .data import *
     34 from .plots import *
     35 from .plots.backends import *

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/arviz/data/__init__.py:2
      1 """Code for loading and manipulating data structures."""
----> 2 from .base import CoordSpec, DimSpec, dict_to_dataset, numpy_to_data_array
      3 from .converters import convert_to_dataset, convert_to_inference_data
      4 from .datasets import clear_data_home, list_datasets, load_arviz_data

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/arviz/data/base.py:11
      8 from typing import Any, Callable, Dict, List, Optional, Tuple, TypeVar, Union
     10 import numpy as np
---> 11 import xarray as xr
     13 try:
     14     import ujson as json

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/xarray/__init__.py:3
      1 from importlib.metadata import version as _version
----> 3 from xarray import testing, tutorial
      4 from xarray.backends.api import (
      5     load_dataarray,
      6     load_dataset,
   (...)
     10     save_mfdataset,
     11 )
     12 from xarray.backends.zarr import open_zarr

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/xarray/testing.py:11
      8 import pandas as pd
     10 from xarray.core import duck_array_ops, formatting, utils
---> 11 from xarray.core.coordinates import Coordinates
     12 from xarray.core.dataarray import DataArray
     13 from xarray.core.dataset import Dataset

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/xarray/core/coordinates.py:16
     13 import pandas as pd
     15 from xarray.core import formatting
---> 16 from xarray.core.alignment import Aligner
     17 from xarray.core.indexes import (
     18     Index,
     19     Indexes,
   (...)
     23     create_default_index_implicit,
     24 )
     25 from xarray.core.merge import merge_coordinates_without_align, merge_coords

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/xarray/core/alignment.py:24
     22 from xarray.core.types import T_Alignable
     23 from xarray.core.utils import is_dict_like, is_full_slice
---> 24 from xarray.core.variable import Variable, as_compatible_data, calculate_dimensions
     26 if TYPE_CHECKING:
     27     from xarray.core.dataarray import DataArray

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/xarray/core/variable.py:48
     30 from xarray.core.pycompat import (
     31     integer_types,
     32     is_0d_dask_array,
   (...)
     35     to_numpy,
     36 )
     37 from xarray.core.utils import (
     38     OrderedSet,
     39     _default,
   (...)
     46     maybe_coerce_to_str,
     47 )
---> 48 from xarray.namedarray.core import NamedArray
     50 NON_NUMPY_SUPPORTED_ARRAY_TYPES = (
     51     indexing.ExplicitlyIndexed,
     52     pd.Index,
     53 )
     54 # https://github.com/python/mypy/issues/224

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/xarray/namedarray/core.py:24
     22 from xarray.core import dtypes, formatting, formatting_html
     23 from xarray.namedarray._aggregations import NamedArrayAggregations
---> 24 from xarray.namedarray._typing import (
     25     _arrayfunction_or_api,
     26     _chunkedarray,
     27     _DType,
     28     _DType_co,
     29     _ScalarType_co,
     30     _ShapeType_co,
     31 )
     32 from xarray.namedarray.utils import (
     33     _default,
     34     is_duck_dask_array,
     35     to_0d_object_array,
     36 )
     38 if TYPE_CHECKING:

File /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332/lib/python3.10/site-packages/xarray/namedarray/_typing.py:28
     24 _T = TypeVar("_T")
     25 _T_co = TypeVar("_T_co", covariant=True)
---> 28 _DType = TypeVar("_DType", bound=np.dtype[Any])
     29 _DType_co = TypeVar("_DType_co", covariant=True, bound=np.dtype[Any])
     30 # A subset of `npt.DTypeLike` that can be parametrized w.r.t. `np.generic`

TypeError: 'numpy._DTypeMeta' object is not subscriptable

# from installs:

Collecting btyd
  Using cached btyd-0.1a1-py3-none-any.whl (594 kB)
Collecting mlflow
  Using cached mlflow-2.7.1-py3-none-any.whl (18.5 MB)
Collecting lifetimes
  Using cached Lifetimes-0.11.3-py3-none-any.whl (584 kB)
Requirement already satisfied: psutil<6.0.0,>=5.8.0 in /databricks/python3/lib/python3.10/site-packages (from btyd) (5.9.0)
Collecting pymc<5.0.0,>=4.0.0
  Downloading pymc-4.4.0-py3-none-any.whl (590 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 590.2/590.2 kB 3.9 MB/s eta 0:00:00
Collecting dill==0.3.5.1
  Using cached dill-0.3.5.1-py2.py3-none-any.whl (95 kB)
Collecting autograd==1.4
  Using cached autograd-1.4-py3-none-any.whl (48 kB)
Requirement already satisfied: numpy>=1.12 in /databricks/python3/lib/python3.10/site-packages (from autograd==1.4->btyd) (1.21.5)
Collecting future>=0.15.2
  Using cached future-0.18.3-py3-none-any.whl
Requirement already satisfied: importlib-metadata!=4.7.0,<7,>=3.7.0 in /usr/lib/python3/dist-packages (from mlflow) (4.6.4)
Collecting sqlalchemy<3,>=1.4.0
  Using cached SQLAlchemy-2.0.22-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB)
Requirement already satisfied: packaging<24 in /databricks/python3/lib/python3.10/site-packages (from mlflow) (21.3)
Collecting sqlparse<1,>=0.4.0
  Using cached sqlparse-0.4.4-py3-none-any.whl (41 kB)
Collecting databricks-cli<1,>=0.8.7
  Using cached databricks_cli-0.18.0-py2.py3-none-any.whl (150 kB)
Collecting alembic!=1.10.0,<2
  Using cached alembic-1.12.0-py3-none-any.whl (226 kB)
Requirement already satisfied: click<9,>=7.0 in /databricks/python3/lib/python3.10/site-packages (from mlflow) (8.0.4)
Collecting gunicorn<22
  Using cached gunicorn-21.2.0-py3-none-any.whl (80 kB)
Requirement already satisfied: pytz<2024 in /databricks/python3/lib/python3.10/site-packages (from mlflow) (2022.1)
Requirement already satisfied: requests<3,>=2.17.3 in /databricks/python3/lib/python3.10/site-packages (from mlflow) (2.28.1)
Collecting gitpython<4,>=2.1.0
  Using cached GitPython-3.1.40-py3-none-any.whl (190 kB)
Collecting cloudpickle<3
  Using cached cloudpickle-2.2.1-py3-none-any.whl (25 kB)
Requirement already satisfied: protobuf<5,>=3.12.0 in /databricks/python3/lib/python3.10/site-packages (from mlflow) (3.19.4)
Requirement already satisfied: scipy<2 in /databricks/python3/lib/python3.10/site-packages (from mlflow) (1.9.1)
Requirement already satisfied: Jinja2<4,>=2.11 in /databricks/python3/lib/python3.10/site-packages (from mlflow) (2.11.3)
Requirement already satisfied: matplotlib<4 in /databricks/python3/lib/python3.10/site-packages (from mlflow) (3.5.2)
Collecting Flask<3
  Using cached flask-2.3.3-py3-none-any.whl (96 kB)
Requirement already satisfied: scikit-learn<2 in /databricks/python3/lib/python3.10/site-packages (from mlflow) (1.1.1)
Collecting docker<7,>=4.0.0
  Using cached docker-6.1.3-py3-none-any.whl (148 kB)
Collecting pyyaml<7,>=5.1
  Using cached PyYAML-6.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (705 kB)
Collecting markdown<4,>=3.3
  Using cached Markdown-3.5-py3-none-any.whl (101 kB)
Requirement already satisfied: entrypoints<1 in /databricks/python3/lib/python3.10/site-packages (from mlflow) (0.4)
Requirement already satisfied: pandas<3 in /databricks/python3/lib/python3.10/site-packages (from mlflow) (1.4.4)
Collecting querystring-parser<2
  Using cached querystring_parser-1.2.4-py2.py3-none-any.whl (7.9 kB)
Requirement already satisfied: pyarrow<14,>=4.0.0 in /databricks/python3/lib/python3.10/site-packages (from mlflow) (8.0.0)
Requirement already satisfied: typing-extensions>=4 in /databricks/python3/lib/python3.10/site-packages (from alembic!=1.10.0,<2->mlflow) (4.3.0)
Collecting Mako
  Using cached Mako-1.2.4-py3-none-any.whl (78 kB)
Requirement already satisfied: oauthlib>=3.1.0 in /usr/lib/python3/dist-packages (from databricks-cli<1,>=0.8.7->mlflow) (3.2.0)
Requirement already satisfied: pyjwt>=1.7.0 in /usr/lib/python3/dist-packages (from databricks-cli<1,>=0.8.7->mlflow) (2.3.0)
Requirement already satisfied: urllib3<3,>=1.26.7 in /databricks/python3/lib/python3.10/site-packages (from databricks-cli<1,>=0.8.7->mlflow) (1.26.11)
Collecting tabulate>=0.7.7
  Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Requirement already satisfied: six>=1.10.0 in /usr/lib/python3/dist-packages (from databricks-cli<1,>=0.8.7->mlflow) (1.16.0)
Collecting websocket-client>=0.32.0
  Using cached websocket_client-1.6.4-py3-none-any.whl (57 kB)
Collecting click<9,>=7.0
  Using cached click-8.1.7-py3-none-any.whl (97 kB)
Collecting blinker>=1.6.2
  Using cached blinker-1.6.3-py3-none-any.whl (13 kB)
Collecting Jinja2<4,>=2.11
  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting Werkzeug>=2.3.7
  Using cached werkzeug-3.0.0-py3-none-any.whl (226 kB)
Collecting itsdangerous>=2.1.2
  Using cached itsdangerous-2.1.2-py3-none-any.whl (15 kB)
Collecting gitdb<5,>=4.0.1
  Using cached gitdb-4.0.10-py3-none-any.whl (62 kB)
Requirement already satisfied: MarkupSafe>=2.0 in /databricks/python3/lib/python3.10/site-packages (from Jinja2<4,>=2.11->mlflow) (2.0.1)
Requirement already satisfied: pyparsing>=2.2.1 in /databricks/python3/lib/python3.10/site-packages (from matplotlib<4->mlflow) (3.0.9)
Requirement already satisfied: kiwisolver>=1.0.1 in /databricks/python3/lib/python3.10/site-packages (from matplotlib<4->mlflow) (1.4.2)
Requirement already satisfied: pillow>=6.2.0 in /databricks/python3/lib/python3.10/site-packages (from matplotlib<4->mlflow) (9.2.0)
Requirement already satisfied: python-dateutil>=2.7 in /databricks/python3/lib/python3.10/site-packages (from matplotlib<4->mlflow) (2.8.2)
Requirement already satisfied: cycler>=0.10 in /databricks/python3/lib/python3.10/site-packages (from matplotlib<4->mlflow) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in /databricks/python3/lib/python3.10/site-packages (from matplotlib<4->mlflow) (4.25.0)
Collecting arviz>=0.13.0
  Using cached arviz-0.16.1-py3-none-any.whl (1.7 MB)
Collecting aesara==2.8.7
  Using cached aesara-2.8.7-py3-none-any.whl (1.4 MB)
Collecting cachetools>=4.2.1
  Using cached cachetools-5.3.1-py3-none-any.whl (9.3 kB)
Collecting aeppl==0.0.38
  Using cached aeppl-0.0.38-py3-none-any.whl (52 kB)
Collecting fastprogress>=0.2.0
  Using cached fastprogress-1.0.3-py3-none-any.whl (12 kB)
Collecting miniKanren
  Using cached miniKanren-1.0.3-py3-none-any.whl
Collecting logical-unification
  Using cached logical_unification-0.4.6-py3-none-any.whl
Collecting cons
  Using cached cons-0.4.6-py3-none-any.whl
Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from aesara==2.8.7->pymc<5.0.0,>=4.0.0->btyd) (3.12.0)
Collecting etuples
  Using cached etuples-0.3.9-py3-none-any.whl
Requirement already satisfied: setuptools>=48.0.0 in /databricks/python3/lib/python3.10/site-packages (from aesara==2.8.7->pymc<5.0.0,>=4.0.0->btyd) (63.4.1)
Requirement already satisfied: certifi>=2017.4.17 in /databricks/python3/lib/python3.10/site-packages (from requests<3,>=2.17.3->mlflow) (2022.9.14)
Requirement already satisfied: idna<4,>=2.5 in /databricks/python3/lib/python3.10/site-packages (from requests<3,>=2.17.3->mlflow) (3.3)
Requirement already satisfied: charset-normalizer<3,>=2 in /databricks/python3/lib/python3.10/site-packages (from requests<3,>=2.17.3->mlflow) (2.0.4)
Requirement already satisfied: joblib>=1.0.0 in /databricks/python3/lib/python3.10/site-packages (from scikit-learn<2->mlflow) (1.2.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in /databricks/python3/lib/python3.10/site-packages (from scikit-learn<2->mlflow) (2.2.0)
Collecting greenlet!=0.4.17
  Using cached greenlet-3.0.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (612 kB)
Collecting xarray>=0.21.0
  Using cached xarray-2023.10.0-py3-none-any.whl (1.1 MB)
Collecting h5netcdf>=1.0.2
  Using cached h5netcdf-1.2.0-py3-none-any.whl (43 kB)
Collecting xarray-einstats>=0.3
  Using cached xarray_einstats-0.6.0-py3-none-any.whl (31 kB)
Collecting smmap<6,>=3.0.1
  Using cached smmap-5.0.1-py3-none-any.whl (24 kB)
Collecting MarkupSafe>=2.0
  Using cached MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Collecting h5py
  Using cached h5py-3.10.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB)
Collecting multipledispatch
  Using cached multipledispatch-1.0.0-py3-none-any.whl (12 kB)
Collecting toolz
  Using cached toolz-0.12.0-py3-none-any.whl (55 kB)
Installing collected packages: multipledispatch, websocket-client, toolz, tabulate, sqlparse, smmap, querystring-parser, pyyaml, MarkupSafe, markdown, itsdangerous, h5py, greenlet, future, fastprogress, dill, cloudpickle, click, cachetools, blinker, Werkzeug, sqlalchemy, Mako, logical-unification, Jinja2, h5netcdf, gunicorn, gitdb, docker, databricks-cli, autograd, xarray, lifetimes, gitpython, Flask, cons, alembic, xarray-einstats, mlflow, etuples, miniKanren, arviz, aesara, aeppl, pymc, btyd
  Attempting uninstall: MarkupSafe
    Found existing installation: MarkupSafe 2.0.1
    Not uninstalling markupsafe at /databricks/python3/lib/python3.10/site-packages, outside environment /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332
    Can't uninstall 'MarkupSafe'. No files were found to uninstall.
  Attempting uninstall: click
    Found existing installation: click 8.0.4
    Not uninstalling click at /databricks/python3/lib/python3.10/site-packages, outside environment /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332
    Can't uninstall 'click'. No files were found to uninstall.
  Attempting uninstall: blinker
    Found existing installation: blinker 1.4
    Not uninstalling blinker at /usr/lib/python3/dist-packages, outside environment /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332
    Can't uninstall 'blinker'. No files were found to uninstall.
  Attempting uninstall: Jinja2
    Found existing installation: Jinja2 2.11.3
    Not uninstalling jinja2 at /databricks/python3/lib/python3.10/site-packages, outside environment /local_disk0/.ephemeral_nfs/envs/pythonEnv-05addbad-3c99-4e84-aae8-6f682b6ae332
    Can't uninstall 'Jinja2'. No files were found to uninstall.
Successfully installed Flask-2.3.3 Jinja2-3.1.2 Mako-1.2.4 MarkupSafe-2.1.3 Werkzeug-3.0.0 aeppl-0.0.38 aesara-2.8.7 alembic-1.12.0 arviz-0.16.1 autograd-1.4 blinker-1.6.3 btyd-0.1a1 cachetools-5.3.1 click-8.1.7 cloudpickle-2.2.1 cons-0.4.6 databricks-cli-0.18.0 dill-0.3.5.1 docker-6.1.3 etuples-0.3.9 fastprogress-1.0.3 future-0.18.3 gitdb-4.0.10 gitpython-3.1.40 greenlet-3.0.0 gunicorn-21.2.0 h5netcdf-1.2.0 h5py-3.10.0 itsdangerous-2.1.2 lifetimes-0.11.3 logical-unification-0.4.6 markdown-3.5 miniKanren-1.0.3 mlflow-2.7.1 multipledispatch-1.0.0 pymc-4.4.0 pyyaml-6.0.1 querystring-parser-1.2.4 smmap-5.0.1 sqlalchemy-2.0.22 sqlparse-0.4.4 tabulate-0.9.0 toolz-0.12.0 websocket-client-1.6.4 xarray-2023.10.0 xarray-einstats-0.6.0

Anything else we need to know?

I know I should create a contained env for my packages, but others who will use xarray, pymc, btyd, etc., in the future may run into this.

Environment

Not able to get because I can't import it :/
welcome[bot] commented 1 year ago

Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you!

max-sixty commented 1 year ago

Does upgrading numpy solve it?

Illviljan commented 1 year ago

Do you have numpy version 1.21.5? xarray only supports >1.22 now:

https://github.com/pydata/xarray/blob/1e8f618e9d3754cb892a8438a1a7745aadce2bbf/ci/requirements/min-all-deps.yml#L35

Is the issue that we have missed updating the pyproject? https://github.com/pydata/xarray/blob/1e8f618e9d3754cb892a8438a1a7745aadce2bbf/pyproject.toml#L25

dcherian commented 1 year ago

Can someone issue a patch release please?

max-sixty commented 1 year ago

Can someone issue a patch release please?

Yes I can now

max-sixty commented 1 year ago

Closed with a new release!

dcherian commented 1 year ago

Thanks Max!