hydrologie / xhydro

Hydrological analysis library built with xarray.
https://xhydro.readthedocs.io
Other
12 stars 4 forks source link

Bug dans Notebook local_frequency_analysis #105

Closed EdouardMailhot closed 4 months ago

EdouardMailhot commented 4 months ago

Setup Information

Description

J'obtiens une erreur à la ligne:

ds = xd.Query( *{ "datasets":{ "deh":{ "id" :["020"], "regulated":["Natural"], "variables":["streamflow"], } }, "time":{"start": "1970-01-01", "minimum_duration":(15*365, 'd')},

} ).data.squeeze().load()

L'erreur:


ValidationError Traceback (most recent call last) Cell In[2], line 1 ----> 1 ds = xd.Query( 2 *{ 3 "datasets":{ 4 "deh":{ 5 "id" :["020"], 6 "regulated":["Natural"], 7 "variables":["streamflow"], 8 } 9 }, "time":{"start": "1970-01-01", 10 "minimum_duration":(15*365, 'd')}, 11 12 } 13 ).data.squeeze().load() 15 # This dataset lacks some of the aforementioned attributes, so we need to add them. 16 ds["id"].attrs["cf_role"] = "timeseries_id"

File ~\Anaconda3\envs\xhydro-dev\Lib\site-packages\xdatasets\core.py:122, in Query.init(self, datasets, space, time, catalog_path) 119 self.space = self._resolve_space_params(space) 120 self.time = self._resolve_time_params(time) --> 122 self.load_query(datasets=self.datasets, space=self.space, time=self.time)

File ~\Anaconda3\envs\xhydro-dev\Lib\site-packages\xdatasets\core.py:256, in Query.load_query(self, datasets, space, time) 253 except: 254 pass --> 256 ds_one = self._process_one_dataset( 257 dataset_name=dataset_name, 258 variables=variables_name, 259 space=space, 260 time=time, 261 **kwargs, 262 ) 263 dsets.append(ds_one) 265 try: 266 # Try naively merging datasets into single dataset

File ~\Anaconda3\envs\xhydro-dev\Lib\site-packages\xdatasets\core.py:299, in Query._process_one_dataset(self, dataset_name, variables, space, time, **kwargs) 296 dataset_category = "user-provided" 298 elif isinstance(dataset_name, str): --> 299 dataset_category = [ 300 category 301 for category in self.catalog._entries.keys() 302 for name in self.catalog[category]._entries.keys() 303 if name == dataset_name 304 ][0] 306 if dataset_category in ["atmosphere"]: 307 with warnings.catch_warnings():

File ~\Anaconda3\envs\xhydro-dev\Lib\site-packages\xdatasets\core.py:302, in (.0) 296 dataset_category = "user-provided" 298 elif isinstance(dataset_name, str): 299 dataset_category = [ 300 category 301 for category in self.catalog._entries.keys() --> 302 for name in self.catalog[category]._entries.keys() 303 if name == dataset_name 304 ][0] 306 if dataset_category in ["atmosphere"]: 307 with warnings.catch_warnings():

File ~\Anaconda3\envs\xhydro-dev\Lib\site-packages\intake\catalog\base.py:472, in Catalog.getitem(self, key) 463 """Return a catalog entry by name. 464 465 Can also use attribute syntax, like cat.entry_name, or (...) 468 cat['name1', 'name2'] 469 """ 470 if not isinstance(key, list) and key in self: 471 # triggers reload_on_change --> 472 s = self._get_entry(key) 473 if s.container == "catalog": 474 s.name = key

File ~\Anaconda3\envs\xhydro-dev\Lib\site-packages\intake\catalog\utils.py:43, in reload_on_change..wrapper(self, *args, kwargs) 40 @functools.wraps(f) 41 def wrapper(self, *args, *kwargs): 42 self.reload() ---> 43 return f(self, args, kwargs)

File ~\Anaconda3\envs\xhydro-dev\Lib\site-packages\intake\catalog\base.py:355, in Catalog._get_entry(self, name) 353 ups = [up for name, up in self.user_parameters.items() if name not in up_names] 354 entry._user_parameters = ups + (entry._user_parameters or []) --> 355 return entry()

File ~\Anaconda3\envs\xhydro-dev\Lib\site-packages\intake\catalog\entry.py:60, in CatalogEntry.call(self, persist, kwargs) 58 def call(self, persist=None, kwargs): 59 """Instantiate DataSource with given user arguments""" ---> 60 s = self.get(**kwargs) 61 s._entry = self 62 s._passed_kwargs = list(kwargs)

File ~\Anaconda3\envs\xhydro-dev\Lib\site-packages\intake\catalog\local.py:313, in LocalCatalogEntry.get(self, user_parameters) 310 return self._default_source 312 plugin, open_args = self._create_open_args(user_parameters) --> 313 data_source = plugin(open_args) 314 data_source.catalog_object = self._catalog 315 data_source.name = self.name

File ~\Anaconda3\envs\xhydro-dev\Lib\site-packages\intake\catalog\local.py:613, in YAMLFileCatalog.init(self, path, text, autoreload, kwargs) 611 self.filesystem = kwargs.pop("fs", None) 612 self.access = "name" not in kwargs --> 613 super(YAMLFileCatalog, self).init(kwargs)

File ~\Anaconda3\envs\xhydro-dev\Lib\site-packages\intake\catalog\base.py:128, in Catalog.init(self, entries, name, description, metadata, ttl, getenv, getshell, persist_mode, storage_options, user_parameters) 126 self.updated = time.time() 127 self._entries = entries if entries is not None else self._make_entries_container() --> 128 self.force_reload()

File ~\Anaconda3\envs\xhydro-dev\Lib\site-packages\intake\catalog\base.py:186, in Catalog.force_reload(self) 184 """Imperative reload data now""" 185 self.updated = time.time() --> 186 self._load()

File ~\Anaconda3\envs\xhydro-dev\Lib\site-packages\intake\catalog\local.py:648, in YAMLFileCatalog._load(self, reload) 646 logger.warning("Use of '!template' deprecated - fixing") 647 text = text.replace("!template ", "") --> 648 self.parse(text)

File ~\Anaconda3\envs\xhydro-dev\Lib\site-packages\intake\catalog\local.py:728, in YAMLFileCatalog.parse(self, text) 726 result = CatalogParser(data, context=context, getenv=self.getenv, getshell=self.getshell) 727 if result.errors: --> 728 raise exceptions.ValidationError( 729 "Catalog '{}' has validation errors:\n\n{}" 730 "".format(self.path, "\n".join(result.errors)), 731 result.errors, 732 ) 734 cfg = result.data 736 self._entries = {}

ValidationError: Catalog 'C:/Users/maied01/AppData/Local/Temp/catalogs//hydrology.yaml' has validation errors:

("missing 'module'", {'module': 'intake_xarray'})

Steps To Reproduce

No response

Additional context

J'ai créé un environnement conda en suivant les étapes de la procédure et j'ai lancé un Jupyter Notebook en utilisant Anaconda Navigator.

image

Contribution

RondeauG commented 4 months ago

Peux-tu me copier-coller ton conda list ? Le problème est qu'il te manque intake-xarray, mais ça devrait être ajouté quand tu crées l'environnement.

EdouardMailhot commented 4 months ago

Il semble y être.

Name Version Build Channel aiobotocore 2.11.2 pypi_0 pypi aiohttp 3.9.3 py311ha68e1ae_0 conda-forge aioitertools 0.11.0 pypi_0 pypi aiosignal 1.3.1 pyhd8ed1ab_0 conda-forge alabaster 0.7.16 pyhd8ed1ab_0 conda-forge annotated-types 0.6.0 pyhd8ed1ab_0 conda-forge anyascii 0.3.2 pyhd8ed1ab_0 conda-forge anyio 4.3.0 pyhd8ed1ab_0 conda-forge appdirs 1.4.4 pyh9f0ad1d_0 conda-forge argon2-cffi 23.1.0 pyhd8ed1ab_0 conda-forge argon2-cffi-bindings 21.2.0 py311ha68e1ae_4 conda-forge arrow 1.3.0 pyhd8ed1ab_0 conda-forge asciitree 0.3.3 py_2 conda-forge astroid 3.0.3 py311h1ea47a8_0 conda-forge asttokens 2.4.1 pyhd8ed1ab_0 conda-forge async-lru 2.0.4 pyhd8ed1ab_0 conda-forge attrs 23.2.0 pyh71513ae_0 conda-forge aws-c-auth 0.7.15 ha04060b_0 conda-forge aws-c-cal 0.6.9 hd33547d_3 conda-forge aws-c-common 0.9.12 hcfcfb64_0 conda-forge aws-c-compression 0.2.17 hd33547d_8 conda-forge aws-c-event-stream 0.4.1 hf127292_5 conda-forge aws-c-http 0.8.0 h0cc4be6_5 conda-forge aws-c-io 0.14.3 hf372335_1 conda-forge aws-c-mqtt 0.10.1 h189e261_3 conda-forge aws-c-s3 0.5.0 h582d114_2 conda-forge aws-c-sdkutils 0.1.14 hd33547d_0 conda-forge aws-checksums 0.1.17 hd33547d_7 conda-forge aws-crt-cpp 0.26.1 he292853_9 conda-forge aws-sdk-cpp 1.11.242 hf72cfbd_0 conda-forge azure-core-cpp 1.10.3 h249a519_1 conda-forge azure-storage-blobs-cpp 12.10.0 h91493d7_0 conda-forge azure-storage-common-cpp 12.5.0 h91493d7_2 conda-forge babel 2.14.0 pyhd8ed1ab_0 conda-forge beautifulsoup4 4.12.3 pyha770c72_0 conda-forge bleach 6.1.0 pyhd8ed1ab_0 conda-forge blosc 1.21.5 hdccc3a2_0 conda-forge bokeh 3.3.4 pyhd8ed1ab_0 conda-forge boltons 23.1.1 pyhd8ed1ab_0 conda-forge botocore 1.34.34 pypi_0 pypi bottleneck 1.3.7 py311h59ca53f_1 conda-forge branca 0.7.1 pyhd8ed1ab_0 conda-forge brotli 1.1.0 hcfcfb64_1 conda-forge brotli-bin 1.1.0 hcfcfb64_1 conda-forge brotli-python 1.1.0 py311h12c1d0e_1 conda-forge build 0.7.0 pyhd8ed1ab_0 conda-forge bump2version 1.0.1 pyh9f0ad1d_0 conda-forge bzip2 1.0.8 hcfcfb64_5 conda-forge c-ares 1.26.0 hcfcfb64_0 conda-forge c-blosc2 2.13.2 h183a6f4_0 conda-forge ca-certificates 2024.2.2 h56e8100_0 conda-forge cached-property 1.5.2 hd8ed1ab_1 conda-forge cached_property 1.5.2 pyha770c72_1 conda-forge cairo 1.18.0 h1fef639_0 conda-forge cartopy 0.22.0 py311hf63dbb6_1 conda-forge certifi 2024.2.2 pyhd8ed1ab_0 conda-forge cf_xarray 0.8.9 pyhd8ed1ab_0 conda-forge cffi 1.16.0 py311ha68e1ae_0 conda-forge cfgv 3.3.1 pyhd8ed1ab_0 conda-forge cfitsio 4.3.1 h9b0cee5_0 conda-forge cftime 1.6.3 py311h59ca53f_0 conda-forge charset-normalizer 3.3.2 pyhd8ed1ab_0 conda-forge click 8.1.7 win_pyh7428d3b_0 conda-forge click-plugins 1.1.1 py_0 conda-forge cligj 0.7.2 pyhd8ed1ab_1 conda-forge clisops 0.13.0 pyhca7485f_0 conda-forge cloudpickle 3.0.0 pyhd8ed1ab_0 conda-forge colorama 0.4.6 pyhd8ed1ab_0 conda-forge colorcet 3.0.1 pyhd8ed1ab_0 conda-forge comm 0.2.1 pyhd8ed1ab_0 conda-forge contourpy 1.2.0 py311h005e61a_0 conda-forge coverage 6.5.0 py311ha68e1ae_1 conda-forge coveralls 3.3.1 pyhd8ed1ab_0 conda-forge cycler 0.12.1 pyhd8ed1ab_0 conda-forge cytoolz 0.12.3 py311ha68e1ae_0 conda-forge dask 2024.2.0 pyhd8ed1ab_0 conda-forge dask-core 2024.2.0 pyhd8ed1ab_0 conda-forge dask-geopandas 0.3.1 pypi_0 pypi dataclasses 0.8 pyhc8e2a94_3 conda-forge debugpy 1.8.1 py311h12c1d0e_0 conda-forge decorator 5.1.1 pyhd8ed1ab_0 conda-forge defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge distlib 0.3.8 pyhd8ed1ab_0 conda-forge distributed 2024.2.0 pyhd8ed1ab_0 conda-forge docopt 0.6.2 py_1 conda-forge docutils 0.20.1 py311h1ea47a8_3 conda-forge entrypoints 0.4 pyhd8ed1ab_0 conda-forge esmf 8.4.2 nompi_hee46c9f_3 conda-forge esmpy 8.4.2 pyhc1e730c_4 conda-forge exceptiongroup 1.2.0 pyhd8ed1ab_2 conda-forge executing 2.0.1 pyhd8ed1ab_0 conda-forge expat 2.5.0 h63175ca_1 conda-forge fasteners 0.17.3 pyhd8ed1ab_0 conda-forge fastprogress 1.0.3 pyhd8ed1ab_0 conda-forge filelock 3.13.1 pyhd8ed1ab_0 conda-forge fiona 1.9.5 py311hbcf8545_3 conda-forge flox 0.9.2 pyhd8ed1ab_0 conda-forge folium 0.15.1 pyhd8ed1ab_0 conda-forge font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge font-ttf-inconsolata 3.000 h77eed37_0 conda-forge font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge font-ttf-ubuntu 0.83 h77eed37_1 conda-forge fontconfig 2.14.2 hbde0cde_0 conda-forge fonts-conda-ecosystem 1 0 conda-forge fonts-conda-forge 1 0 conda-forge fonttools 4.49.0 py311ha68e1ae_0 conda-forge fqdn 1.5.1 pyhd8ed1ab_0 conda-forge freetype 2.12.1 hdaf720e_2 conda-forge freexl 2.0.0 h8276f4a_0 conda-forge frozenlist 1.4.1 py311ha68e1ae_0 conda-forge fsspec 2024.2.0 pyhca7485f_0 conda-forge furo 2024.1.29 pyhd8ed1ab_0 conda-forge gdal 3.8.4 py311h21a6730_0 conda-forge geopandas 0.14.3 pyhd8ed1ab_0 conda-forge geopandas-base 0.14.3 pyha770c72_0 conda-forge geos 3.12.1 h1537add_0 conda-forge geotiff 1.7.1 hbf5ca3a_15 conda-forge gettext 0.21.1 h5728263_0 conda-forge h11 0.14.0 pyhd8ed1ab_0 conda-forge h2 4.1.0 pyhd8ed1ab_0 conda-forge h5netcdf 1.3.0 pyhd8ed1ab_0 conda-forge h5py 3.10.0 nompi_py311h7195302_101 conda-forge hdf4 4.2.15 h5557f11_7 conda-forge hdf5 1.14.3 nompi_h73e8ff5_100 conda-forge holoviews 1.18.3 pyhd8ed1ab_0 conda-forge hpack 4.0.0 pyh9f0ad1d_0 conda-forge httpcore 1.0.3 pyhd8ed1ab_0 conda-forge httpx 0.26.0 pyhd8ed1ab_0 conda-forge hvplot 0.9.2 pyhd8ed1ab_0 conda-forge hyperframe 6.0.1 pyhd8ed1ab_0 conda-forge icu 73.2 h63175ca_0 conda-forge identify 2.5.35 pyhd8ed1ab_0 conda-forge idna 3.6 pyhd8ed1ab_0 conda-forge imagesize 1.4.1 pyhd8ed1ab_0 conda-forge importlib-metadata 7.0.1 pyha770c72_0 conda-forge importlib_metadata 7.0.1 hd8ed1ab_0 conda-forge importlib_resources 6.1.1 pyhd8ed1ab_0 conda-forge iniconfig 2.0.0 pyhd8ed1ab_0 conda-forge intake 2.0.1 pyhd8ed1ab_1 conda-forge intake-esm 2023.11.10 pyhd8ed1ab_0 conda-forge intake-geopandas 0.4.0 pypi_0 pypi intake-xarray 0.7.0 pypi_0 pypi intel-openmp 2024.0.0 h57928b3_49841 conda-forge ipykernel 6.29.2 pyha63f2e9_0 conda-forge ipython 8.21.0 pyh7428d3b_0 conda-forge ipywidgets 8.1.2 pyhd8ed1ab_0 conda-forge isoduration 20.11.0 pyhd8ed1ab_0 conda-forge jedi 0.19.1 pyhd8ed1ab_0 conda-forge jinja2 3.1.3 pyhd8ed1ab_0 conda-forge jmespath 1.0.1 pypi_0 pypi joblib 1.3.2 pyhd8ed1ab_0 conda-forge json5 0.9.17 pyhd8ed1ab_0 conda-forge jsonpickle 3.0.2 pyhd8ed1ab_1 conda-forge jsonpointer 2.4 py311h1ea47a8_3 conda-forge jsonschema 4.21.1 pyhd8ed1ab_0 conda-forge jsonschema-specifications 2023.12.1 pyhd8ed1ab_0 conda-forge jsonschema-with-format-nongpl 4.21.1 pyhd8ed1ab_0 conda-forge jupyter 1.0.0 pyhd8ed1ab_10 conda-forge jupyter-lsp 2.2.2 pyhd8ed1ab_0 conda-forge jupyter_client 8.6.0 pyhd8ed1ab_0 conda-forge jupyter_console 6.6.3 pyhd8ed1ab_0 conda-forge jupyter_core 5.7.1 py311h1ea47a8_0 conda-forge jupyter_events 0.9.0 pyhd8ed1ab_0 conda-forge jupyter_server 2.12.5 pyhd8ed1ab_0 conda-forge jupyter_server_terminals 0.5.2 pyhd8ed1ab_0 conda-forge jupyterlab 4.1.2 pyhd8ed1ab_0 conda-forge jupyterlab_pygments 0.3.0 pyhd8ed1ab_1 conda-forge jupyterlab_server 2.25.3 pyhd8ed1ab_0 conda-forge jupyterlab_widgets 3.0.10 pyhd8ed1ab_0 conda-forge kealib 1.5.3 hd248416_0 conda-forge kiwisolver 1.4.5 py311h005e61a_1 conda-forge krb5 1.21.2 heb0366b_0 conda-forge lcms2 2.16 h67d730c_0 conda-forge lerc 4.0.0 h63175ca_0 conda-forge libabseil 20230802.1 cxx17_h63175ca_0 conda-forge libaec 1.1.2 h63175ca_1 conda-forge libarchive 3.7.2 h313118b_1 conda-forge libarrow 15.0.0 h33d03ac_2_cpu conda-forge libarrow-acero 15.0.0 h63175ca_2_cpu conda-forge libarrow-dataset 15.0.0 h63175ca_2_cpu conda-forge libarrow-flight 15.0.0 he112ba8_2_cpu conda-forge libarrow-flight-sql 15.0.0 h8f0bfdc_2_cpu conda-forge libarrow-gandiva 15.0.0 hb2eaab1_2_cpu conda-forge libarrow-substrait 15.0.0 h7aa34db_2_cpu conda-forge libblas 3.9.0 18_win64_mkl conda-forge libboost-headers 1.84.0 h57928b3_1 conda-forge libbrotlicommon 1.1.0 hcfcfb64_1 conda-forge libbrotlidec 1.1.0 hcfcfb64_1 conda-forge libbrotlienc 1.1.0 hcfcfb64_1 conda-forge libcblas 3.9.0 18_win64_mkl conda-forge libcrc32c 1.1.2 h0e60522_0 conda-forge libcurl 8.5.0 hd5e4a3a_0 conda-forge libdeflate 1.19 hcfcfb64_0 conda-forge libevent 2.1.12 h3671451_1 conda-forge libexpat 2.5.0 h63175ca_1 conda-forge libffi 3.4.2 h8ffe710_5 conda-forge libgdal 3.8.4 h7c2897a_0 conda-forge libglib 2.78.4 h16e383f_0 conda-forge libgoogle-cloud 2.12.0 hc7cbac0_5 conda-forge libgrpc 1.60.1 h0bf0bfa_0 conda-forge libhwloc 2.9.3 default_haede6df_1009 conda-forge libiconv 1.17 hcfcfb64_2 conda-forge libjpeg-turbo 3.0.0 hcfcfb64_1 conda-forge libkml 1.3.0 haf3e7a6_1018 conda-forge liblapack 3.9.0 18_win64_mkl conda-forge libnetcdf 4.9.2 nompi_h07c049d_113 conda-forge libparquet 15.0.0 h7ec3a38_2_cpu conda-forge libpng 1.6.42 h19919ed_0 conda-forge libpq 16.2 hdb24f17_0 conda-forge libprotobuf 4.25.1 hb8276f3_1 conda-forge libre2-11 2023.06.02 h8c5ae5e_0 conda-forge librttopo 1.1.0 h94c4f80_15 conda-forge libsodium 1.0.18 h8d14728_1 conda-forge libspatialindex 1.9.3 h39d44d4_4 conda-forge libspatialite 5.1.0 hf2f0abc_4 conda-forge libsqlite 3.45.1 hcfcfb64_0 conda-forge libssh2 1.11.0 h7dfc565_0 conda-forge libthrift 0.19.0 ha2b3283_1 conda-forge libtiff 4.6.0 h6e2ebb7_2 conda-forge libutf8proc 2.8.0 h82a8f57_0 conda-forge libwebp-base 1.3.2 hcfcfb64_0 conda-forge libxcb 1.15 hcd874cb_0 conda-forge libxml2 2.12.5 hc3477c8_0 conda-forge libzip 1.10.1 h1d365fa_3 conda-forge libzlib 1.2.13 hcfcfb64_5 conda-forge linkify-it-py 2.0.3 pyhd8ed1ab_0 conda-forge llvmlite 0.42.0 py311h5bc0dda_1 conda-forge lmoments3 1.0.6 pyhd8ed1ab_0 conda-forge locket 1.0.0 pyhd8ed1ab_0 conda-forge loguru 0.7.2 py311h1ea47a8_1 conda-forge lz4 4.3.3 py311haddf500_0 conda-forge lz4-c 1.9.4 hcfcfb64_0 conda-forge lzo 2.10 he774522_1000 conda-forge m2w64-gcc-libgfortran 5.3.0 6 conda-forge m2w64-gcc-libs 5.3.0 7 conda-forge m2w64-gcc-libs-core 5.3.0 7 conda-forge m2w64-gmp 6.1.0 2 conda-forge m2w64-libwinpthread-git 5.0.0.4634.697f757 2 conda-forge mapclassify 2.6.1 pyhd8ed1ab_0 conda-forge markdown 3.5.2 pyhd8ed1ab_0 conda-forge markdown-it-py 3.0.0 pyhd8ed1ab_0 conda-forge markupsafe 2.1.5 py311ha68e1ae_0 conda-forge matplotlib-base 3.8.3 py311h6e989c2_0 conda-forge matplotlib-inline 0.1.6 pyhd8ed1ab_0 conda-forge mdit-py-plugins 0.4.0 pyhd8ed1ab_0 conda-forge mdurl 0.1.2 pyhd8ed1ab_0 conda-forge minizip 4.0.4 h5bed578_0 conda-forge mistune 3.0.2 pyhd8ed1ab_0 conda-forge mkl 2022.1.0 h6a75c08_874 conda-forge msgpack-python 1.0.7 py311h005e61a_0 conda-forge msys2-conda-epoch 20160418 1 conda-forge multidict 6.0.5 py311ha68e1ae_0 conda-forge munkres 1.1.4 pyh9f0ad1d_0 conda-forge mypy_extensions 1.0.0 pyha770c72_0 conda-forge nbclient 0.8.0 pyhd8ed1ab_0 conda-forge nbconvert 7.16.1 pyhd8ed1ab_0 conda-forge nbconvert-core 7.16.1 pyhd8ed1ab_0 conda-forge nbconvert-pandoc 7.16.1 pyhd8ed1ab_0 conda-forge nbformat 5.9.2 pyhd8ed1ab_0 conda-forge nbsphinx 0.9.3 pyhd8ed1ab_0 conda-forge nbval 0.10.0 pyhd8ed1ab_0 conda-forge nc-time-axis 1.4.1 pyhd8ed1ab_0 conda-forge nest-asyncio 1.6.0 pyhd8ed1ab_0 conda-forge netcdf-fortran 4.6.1 nompi_h9cdda27_103 conda-forge netcdf4 1.6.5 nompi_py311he019f65_100 conda-forge networkx 3.2.1 pyhd8ed1ab_0 conda-forge nodeenv 1.8.0 pyhd8ed1ab_0 conda-forge notebook 7.1.1 pyhd8ed1ab_0 conda-forge notebook-shim 0.2.4 pyhd8ed1ab_0 conda-forge numba 0.59.0 py311h2c0921f_1 conda-forge numcodecs 0.12.1 py311h12c1d0e_0 conda-forge numexpr 2.8.4 mkl_py311h9a3bfb6_1 conda-forge numpy 1.26.4 py311h0b4df5a_0 conda-forge numpy_groupies 0.10.2 pyhd8ed1ab_0 conda-forge openjpeg 2.5.0 h3d672ee_3 conda-forge openssl 3.2.1 hcfcfb64_0 conda-forge orc 1.9.2 hf6f83f4_1 conda-forge overrides 7.7.0 pyhd8ed1ab_0 conda-forge packaging 23.2 pyhd8ed1ab_0 conda-forge pandas 2.2.0 pypi_0 pypi pandoc 3.1.12.1 h57928b3_0 conda-forge pandocfilters 1.5.0 pyhd8ed1ab_0 conda-forge panel 1.3.8 pyhd8ed1ab_0 conda-forge param 2.0.2 pyhca7485f_0 conda-forge parse 1.20.1 pyhd8ed1ab_0 conda-forge parso 0.8.3 pyhd8ed1ab_0 conda-forge partd 1.4.1 pyhd8ed1ab_0 conda-forge patsy 0.5.6 pyhd8ed1ab_0 conda-forge pcre2 10.42 h17e33f8_0 conda-forge pep517 0.13.0 pyhd8ed1ab_0 conda-forge pickleshare 0.7.5 py_1003 conda-forge pillow 10.2.0 py311h4dd8a23_0 conda-forge pint 0.23 pyhd8ed1ab_0 conda-forge pip 24.0 pyhd8ed1ab_0 conda-forge pixman 0.43.2 h63175ca_0 conda-forge pkgutil-resolve-name 1.3.10 pyhd8ed1ab_1 conda-forge platformdirs 4.2.0 pyhd8ed1ab_0 conda-forge pluggy 1.4.0 pyhd8ed1ab_0 conda-forge pockets 0.9.1 py_0 conda-forge pooch 1.8.0 pyhd8ed1ab_0 conda-forge poppler 24.02.0 hc2f3c52_0 conda-forge poppler-data 0.4.12 hd8ed1ab_0 conda-forge postgresql 16.2 h1beaf6b_0 conda-forge pre-commit 3.6.2 pyha770c72_0 conda-forge proj 9.3.1 he13c7e8_0 conda-forge prometheus_client 0.20.0 pyhd8ed1ab_0 conda-forge prompt-toolkit 3.0.42 pyha770c72_0 conda-forge prompt_toolkit 3.0.42 hd8ed1ab_0 conda-forge psutil 5.9.8 py311ha68e1ae_0 conda-forge pthread-stubs 0.4 hcd874cb_1001 conda-forge pthreads-win32 2.9.1 hfa6e2cd_3 conda-forge pure_eval 0.2.2 pyhd8ed1ab_0 conda-forge py 1.11.0 pyh6c4a22f_0 conda-forge py-cpuinfo 9.0.0 pyhd8ed1ab_0 conda-forge pyarrow 15.0.0 py311h6a6099b_2_cpu conda-forge pyarrow-hotfix 0.6 pyhd8ed1ab_0 conda-forge pycparser 2.21 pyhd8ed1ab_0 conda-forge pyct 0.5.0 pyhd8ed1ab_0 conda-forge pydantic 2.5.2 pypi_0 pypi pydantic-core 2.14.5 pypi_0 pypi pygments 2.17.2 pyhd8ed1ab_0 conda-forge pyparsing 3.1.1 pyhd8ed1ab_0 conda-forge pyproj 3.6.1 py311h82130bc_5 conda-forge pyshp 2.3.1 pyhd8ed1ab_0 conda-forge pysocks 1.7.1 pyh0701188_6 conda-forge pytables 3.9.2 py311heec7198_1 conda-forge pytest 8.0.0 pyhd8ed1ab_0 conda-forge pytest-cov 4.1.0 pyhd8ed1ab_0 conda-forge python 3.11.8 h2628c8c_0_cpython conda-forge python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge python-fastjsonschema 2.19.1 pyhd8ed1ab_0 conda-forge python-json-logger 2.0.7 pyhd8ed1ab_0 conda-forge python-tzdata 2024.1 pyhd8ed1ab_0 conda-forge python_abi 3.11 4_cp311 conda-forge pytz 2024.1 pyhd8ed1ab_0 conda-forge pyviz_comms 3.0.0 pyhd8ed1ab_0 conda-forge pywin32 306 py311h12c1d0e_2 conda-forge pywinpty 2.0.12 py311h12c1d0e_0 conda-forge pyyaml 6.0.1 py311ha68e1ae_1 conda-forge pyzmq 25.1.2 py311h9250fbb_0 conda-forge qtconsole-base 5.5.1 pyha770c72_0 conda-forge qtpy 2.4.1 pyhd8ed1ab_0 conda-forge re2 2023.06.02 hcbb65ff_0 conda-forge rechunker 0.5.2 pyhd8ed1ab_1 conda-forge referencing 0.33.0 pyhd8ed1ab_0 conda-forge requests 2.31.0 pyhd8ed1ab_0 conda-forge rfc3339-validator 0.1.4 pyhd8ed1ab_0 conda-forge rfc3986-validator 0.1.1 pyh9f0ad1d_0 conda-forge roocs-grids 0.1.2 pyhd8ed1ab_0 conda-forge roocs-utils 0.6.7 pyhca7485f_0 conda-forge rpds-py 0.18.0 py311hc37eb10_0 conda-forge rtree 1.2.0 py311hcacb13a_0 conda-forge ruamel.yaml 0.17.40 py311ha68e1ae_0 conda-forge ruamel.yaml.clib 0.2.8 py311ha68e1ae_0 conda-forge s3fs 2024.2.0 pypi_0 pypi scikit-learn 1.4.1.post1 py311h142b183_0 conda-forge scipy 1.12.0 py311h0b4df5a_2 conda-forge send2trash 1.8.2 pyh08f2357_0 conda-forge setuptools 69.1.0 pyhd8ed1ab_0 conda-forge shapely 2.0.2 py311h16bee0b_1 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge snappy 1.1.10 hfb803bf_0 conda-forge sniffio 1.3.0 pyhd8ed1ab_0 conda-forge snowballstemmer 2.2.0 pyhd8ed1ab_0 conda-forge sortedcontainers 2.4.0 pyhd8ed1ab_0 conda-forge soupsieve 2.5 pyhd8ed1ab_1 conda-forge sparse 0.15.1 pyhd8ed1ab_1 conda-forge sphinx 7.2.6 pyhd8ed1ab_0 conda-forge sphinx-autoapi 3.0.0 pyhd8ed1ab_0 conda-forge sphinx-basic-ng 1.0.0b2 pyhd8ed1ab_1 conda-forge sphinx-codeautolink 0.15.0 pyhd8ed1ab_0 conda-forge sphinx-copybutton 0.5.2 pyhd8ed1ab_0 conda-forge sphinxcontrib-applehelp 1.0.8 pyhd8ed1ab_0 conda-forge sphinxcontrib-devhelp 1.0.6 pyhd8ed1ab_0 conda-forge sphinxcontrib-htmlhelp 2.0.5 pyhd8ed1ab_0 conda-forge sphinxcontrib-jsmath 1.0.1 pyhd8ed1ab_0 conda-forge sphinxcontrib-napoleon 0.7 py_0 conda-forge sphinxcontrib-qthelp 1.0.7 pyhd8ed1ab_0 conda-forge sphinxcontrib-serializinghtml 1.1.10 pyhd8ed1ab_0 conda-forge spotpy 1.6.2 pypi_0 pypi sqlite 3.45.1 hcfcfb64_0 conda-forge stack_data 0.6.2 pyhd8ed1ab_0 conda-forge statsmodels 0.14.1 py311h59ca53f_0 conda-forge tbb 2021.11.0 h91493d7_1 conda-forge tblib 3.0.0 pyhd8ed1ab_0 conda-forge terminado 0.18.0 pyh5737063_0 conda-forge threadpoolctl 3.3.0 pyhc1e730c_0 conda-forge tiledb 2.20.0 h2657894_0 conda-forge tinycss2 1.2.1 pyhd8ed1ab_0 conda-forge tk 8.6.13 h5226925_1 conda-forge toml 0.10.2 pyhd8ed1ab_0 conda-forge tomli 2.0.1 pyhd8ed1ab_0 conda-forge toolz 0.12.1 pyhd8ed1ab_0 conda-forge tornado 6.3.3 py311ha68e1ae_1 conda-forge tox 3.27.1 pyhd8ed1ab_0 conda-forge tox-conda 0.10.2 pyhd8ed1ab_0 conda-forge tqdm 4.66.2 pyhd8ed1ab_0 conda-forge traitlets 5.14.1 pyhd8ed1ab_0 conda-forge types-python-dateutil 2.8.19.20240106 pyhd8ed1ab_0 conda-forge typing-extensions 4.9.0 hd8ed1ab_0 conda-forge typing_extensions 4.9.0 pyha770c72_0 conda-forge typing_utils 0.1.0 pyhd8ed1ab_0 conda-forge tzdata 2024a h0c530f3_0 conda-forge uc-micro-py 1.0.3 pyhd8ed1ab_0 conda-forge ucrt 10.0.22621.0 h57928b3_0 conda-forge ukkonen 1.0.1 py311h005e61a_4 conda-forge uri-template 1.3.0 pyhd8ed1ab_0 conda-forge uriparser 0.9.7 h1537add_1 conda-forge urllib3 2.0.7 pypi_0 pypi vc 14.3 hcf57466_18 conda-forge vc14_runtime 14.38.33130 h82b7239_18 conda-forge virtualenv 20.25.0 pyhd8ed1ab_0 conda-forge vs2015_runtime 14.38.33130 hcb4865c_18 conda-forge wcwidth 0.2.13 pyhd8ed1ab_0 conda-forge webcolors 1.13 pyhd8ed1ab_0 conda-forge webencodings 0.5.1 pyhd8ed1ab_2 conda-forge websocket-client 1.7.0 pyhd8ed1ab_0 conda-forge wheel 0.42.0 pyhd8ed1ab_0 conda-forge widgetsnbextension 4.0.10 pyhd8ed1ab_0 conda-forge win32_setctime 1.1.0 pyhd8ed1ab_0 conda-forge win_inet_pton 1.1.0 pyhd8ed1ab_6 conda-forge winpty 0.4.3 4 conda-forge wrapt 1.16.0 pypi_0 pypi xagg 0.3.2.0 pyhd8ed1ab_0 conda-forge xarray 2024.2.0 pyhd8ed1ab_0 conda-forge xclim 0.48.0 pypi_0 pypi xdatasets 0.3.4 pypi_0 pypi xerces-c 3.2.5 h63175ca_0 conda-forge xesmf 0.8.2 pyhd8ed1ab_0 conda-forge xhydro 0.3.3 pypi_0 pypi xorg-libxau 1.0.11 hcd874cb_0 conda-forge xorg-libxdmcp 1.1.3 hcd874cb_0 conda-forge xscen 0.7.1 pypi_0 pypi xyzservices 2023.10.1 pyhd8ed1ab_0 conda-forge xz 5.2.6 h8d14728_0 conda-forge yamale 4.0.4 pypi_0 pypi yaml 0.2.5 h8ffe710_2 conda-forge yarl 1.9.4 py311ha68e1ae_0 conda-forge zarr 2.17.0 pyhd8ed1ab_0 conda-forge zeromq 4.3.5 h63175ca_0 conda-forge zict 3.0.0 pyhd8ed1ab_0 conda-forge zipp 3.17.0 pyhd8ed1ab_0 conda-forge zlib 1.2.13 hcfcfb64_5 conda-forge zlib-ng 2.0.7 hcfcfb64_0 conda-forge zstandard 0.22.0 py311he5d195f_0 conda-forge zstd 1.5.5 h12be248_0 conda-forge

RondeauG commented 4 months ago

J'ai la même erreur avec intake 2.0.3. Tous nos environnements utilisent plutôt 0.7.0 (limité par intake-xarray lui-même, je crois). Donc entre temps, conda install "intake==0.7.0" devrait régler le problème... Cela dit, aucune idée pourquoi ton environnement s'est retrouvé avec 2.0.3.

Ça devrait être quelque chose à régler dans xdatasets @sebastienlanglois. La dernière mise à jour de intake_xarray date de 2021. Est-ce que c'est vraiment nécessaire pour xdatasets ?

EDIT: En fait, intake_esm semble être celui qui limite la version de intake à intake>=0.6.6,<2 depuis 3 semaines environ, mais il y a apparemment quelque chose qui brise aussi dans xdatasets.

EdouardMailhot commented 4 months ago

Je suis retourné à intake 0.7.0 et c'est résolu. Merci!