Failed to load cmip6 data using to_dataset_dict function #557
-
Hi all, Iam trying to create a simple example to load cmip6 data. Then I got error when converting my subset to dictionary. -> The keys in the returned dictionary of datasets are constructed as follows: 0.00% [0/1 00:00<?]ModuleNotFoundError Traceback (most recent call last) File ~\miniconda3\lib\site-packages\fsspec\registry.py:266, in _import_class(cls, minv) File ~\miniconda3\lib\importlib_init_.py:126, in import_module(name, package) File :1050, in _gcd_import(name, package, level) File :1027, in find_and_load(name, import) File :1004, in find_and_load_unlocked(name, import) ModuleNotFoundError: No module named 'gcsfs' The above exception was the direct cause of the following exception: ImportError Traceback (most recent call last) File ~\miniconda3\lib\site-packages\dask\base.py:600, in compute(traverse, optimize_graph, scheduler, get, *args, **kwargs) File ~\miniconda3\lib\site-packages\dask\threaded.py:89, in get(dsk, keys, cache, num_workers, pool, **kwargs) File ~\miniconda3\lib\site-packages\dask\local.py:511, in get_async(submit, num_workers, dsk, result, cache, get_id, rerun_exceptions_locally, pack_exception, raise_exception, callbacks, dumps, loads, chunksize, **kwargs) File ~\miniconda3\lib\site-packages\dask\local.py:319, in reraise(exc, tb) File ~\miniconda3\lib\site-packages\dask\local.py:224, in execute_task(key, task_info, dumps, loads, get_id, pack_exception) File ~\miniconda3\lib\site-packages\dask\core.py:119, in _execute_task(arg, cache, dsk) File ~\miniconda3\lib\site-packages\dask\utils.py:71, in apply(func, args, kwargs) File ~\miniconda3\lib\site-packages\intake_esm\source.py:73, in _open_dataset(urlpath, varname, xarray_open_kwargs, preprocess, requested_variables, additional_attrs, expand_dims, data_format) File ~\miniconda3\lib\site-packages\xarray\backends\api.py:540, in open_dataset(filename_or_obj, engine, chunks, cache, decode_cf, mask_and_scale, decode_times, decode_timedelta, use_cftime, concat_characters, decode_coords, drop_variables, inline_array, backend_kwargs, **kwargs) File ~\miniconda3\lib\site-packages\xarray\backends\zarr.py:882, in ZarrBackendEntrypoint.open_dataset(self, filename_or_obj, mask_and_scale, decode_times, concat_characters, decode_coords, drop_variables, use_cftime, decode_timedelta, group, mode, synchronizer, consolidated, chunk_store, storage_options, stacklevel, zarr_version) File ~\miniconda3\lib\site-packages\xarray\backends\zarr.py:418, in ZarrStore.open_group(cls, store, mode, synchronizer, group, consolidated, consolidate_on_close, chunk_store, storage_options, append_dim, write_region, safe_chunks, stacklevel, zarr_version) File ~\miniconda3\lib\site-packages\zarr\convenience.py:1283, in open_consolidated(store, metadata_key, mode, **kwargs) File ~\miniconda3\lib\site-packages\zarr\storage.py:171, in normalize_store_arg(store, storage_options, mode, zarr_version) File ~\miniconda3\lib\site-packages\zarr\storage.py:144, in _normalize_store_arg_v2(store, storage_options, mode) File ~\miniconda3\lib\site-packages\zarr\storage.py:1328, in FSStore.init(self, url, normalize_keys, key_separator, mode, exceptions, dimension_separator, fs, check, create, missing_exceptions, **storage_options) File ~\miniconda3\lib\site-packages\fsspec\mapping.py:237, in get_mapper(url, check, create, missing_exceptions, alternate_root, **kwargs) File ~\miniconda3\lib\site-packages\fsspec\core.py:382, in url_to_fs(url, **kwargs) File ~\miniconda3\lib\site-packages\fsspec\registry.py:245, in get_filesystem_class(protocol) ImportError: Please install gcsfs to access Google Storage The above exception was the direct cause of the following exception: ESMDataSourceError Traceback (most recent call last) File ~\miniconda3\lib\site-packages\pydantic\decorator.py:40, in pydantic.decorator.validate_arguments.validate.wrapper_function() File ~\miniconda3\lib\site-packages\pydantic\decorator.py:134, in pydantic.decorator.ValidatedFunction.call() File ~\miniconda3\lib\site-packages\pydantic\decorator.py:206, in pydantic.decorator.ValidatedFunction.execute() File ~\miniconda3\lib\site-packages\intake_esm\core.py:651, in esm_datastore.to_dataset_dict(self, xarray_open_kwargs, xarray_combine_by_coords_kwargs, preprocess, storage_options, progressbar, aggregate, skip_on_error, **kwargs) File ~\miniconda3\lib\site-packages\intake_esm\core.py:647, in esm_datastore.to_dataset_dict(self, xarray_open_kwargs, xarray_combine_by_coords_kwargs, preprocess, storage_options, progressbar, aggregate, skip_on_error, **kwargs) File ~\miniconda3\lib\concurrent\futures_base.py:451, in Future.result(self, timeout) File ~\miniconda3\lib\concurrent\futures_base.py:403, in Future.__get_result(self) File ~\miniconda3\lib\concurrent\futures\thread.py:58, in _WorkItem.run(self) File ~\miniconda3\lib\site-packages\intake_esm\core.py:789, in _load_source(key, source) File ~\miniconda3\lib\site-packages\intake_esm\source.py:273, in ESMDataSource.to_dask(self) File ~\miniconda3\lib\site-packages\intake\source\base.py:285, in DataSourceBase._load_metadata(self) File ~\miniconda3\lib\site-packages\intake_esm\source.py:205, in ESMDataSource._get_schema(self) File ~\miniconda3\lib\site-packages\intake_esm\source.py:265, in ESMDataSource._open_dataset(self) ESMDataSourceError: Failed to load dataset with key='CMIP.IPSL.IPSL-CM6A-LR.historical.Oyr.gn' Could someone help me out? I tried other subset. Same errror raised. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@zhentaom4w, it appears you are missing the packages needed to interact with Google cloud storage. You can install these via pip or conda $ conda install -c conda-forge gcsfs Or $ python -m pip install gcsfs |
Beta Was this translation helpful? Give feedback.
@zhentaom4w, it appears you are missing the packages needed to interact with Google cloud storage. You can install these via pip or conda
Or