Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on page /index.html #107

Open
afshin-arj opened this issue Jan 19, 2025 · 1 comment
Open

Issue on page /index.html #107

afshin-arj opened this issue Jan 19, 2025 · 1 comment

Comments

@afshin-arj
Copy link

Hi, I tried to use tutorial to "open and plot a shot" with debugging on.
"import matplotlib.pyplot as plt
dataset = catalog.level1.sources(url="s3://mast/level1/shots/30420.zarr/amc").to_dask()
plt.plot(dataset['time'], dataset['plasma_current'])"

and I get the following error. Would you kindly help me with a solution?

DEBUG:numcodecs:Registering codec 'zlib'
DEBUG:numcodecs:Registering codec 'gzip'
DEBUG:numcodecs:Registering codec 'bz2'
DEBUG:numcodecs:Registering codec 'lzma'
DEBUG:numcodecs:Registering codec 'blosc'
DEBUG:numcodecs:Registering codec 'zstd'
DEBUG:numcodecs:Registering codec 'lz4'
DEBUG:numcodecs:Registering codec 'astype'
DEBUG:numcodecs:Registering codec 'delta'
DEBUG:numcodecs:Registering codec 'quantize'
DEBUG:numcodecs:Registering codec 'fixedscaleoffset'
DEBUG:numcodecs:Registering codec 'packbits'
DEBUG:numcodecs:Registering codec 'categorize'
DEBUG:numcodecs:Registering codec 'pickle'
DEBUG:numcodecs:Registering codec 'base64'
DEBUG:numcodecs:Registering codec 'shuffle'
DEBUG:numcodecs:Registering codec 'bitround'
DEBUG:numcodecs:Registering codec 'crc32'
DEBUG:numcodecs:Registering codec 'adler32'
DEBUG:numcodecs:Registering codec 'jenkins_lookup3'
DEBUG:numcodecs:Registering codec 'json2'
DEBUG:numcodecs:Registering codec 'vlen-utf8'
DEBUG:numcodecs:Registering codec 'vlen-bytes'
DEBUG:numcodecs:Registering codec 'vlen-array'
DEBUG:numcodecs:Registering codec 'fletcher32'
DEBUG:numcodecs:Registering codec 'msgpack2'
DEBUG:numcodecs:Registering codec 'crc32c'
DEBUG:zarr.core.sync:Creating Zarr event loop
DEBUG:asyncio:Using proactor: IocpProactor
Traceback (most recent call last):
File "C:\Users\BROOZD\Desktop\MAST_shots\Tutorial_run_mastapp.py", line 39, in
).to_dask()
~~~~~~~^^
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\intake_xarray\base.py", line 8, in to_dask
return self.reader(chunks={}).read()
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\intake\readers\readers.py", line 121, in read
return self._read(*args, **kw)
~~~~~~~~~~^^^^^^^^^^^^^
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\intake\readers\readers.py", line 1327, in _read
return open_dataset(data.url, **kw)
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\xarray\backends\api.py", line 679, in open_dataset
backend_ds = backend.open_dataset(
filename_or_obj,
...<2 lines>...
**kwargs,
)
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\xarray\backends\zarr.py", line 1564, in open_dataset
store = ZarrStore.open_group(
filename_or_obj,
...<10 lines>...
cache_members=cache_members,
)
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\xarray\backends\zarr.py", line 703, in open_group
) = _get_open_params(
~~~~~~~~~~~~~~~~^
store=store,
^^^^^^^^^^^^
...<9 lines>...
zarr_format=zarr_format,
^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\xarray\backends\zarr.py", line 1786, in _get_open_params
zarr_group = zarr.open_consolidated(store, **open_kwargs)
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\zarr\api\synchronous.py", line 212, in open_consolidated
sync(async_api.open_consolidated(*args, use_consolidated=use_consolidated, **kwargs))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\zarr\core\sync.py", line 142, in sync
raise return_result
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\zarr\core\sync.py", line 98, in _runner
return await coro
^^^^^^^^^^
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\zarr\api\asynchronous.py", line 346, in open_consolidated
return await open_group(*args, use_consolidated=use_consolidated, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\zarr\api\asynchronous.py", line 800, in open_group
store_path = await make_store_path(store, mode=mode, storage_options=storage_options, path=path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\zarr\storage_common.py", line 305, in make_store_path
store = FsspecStore.from_url(
store_like, storage_options=storage_options, read_only=_read_only
)
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\zarr\storage_fsspec.py", line 182, in from_url
return cls(fs=fs, path=path, read_only=read_only, allowed_exceptions=allowed_exceptions)
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\zarr\storage_fsspec.py", line 96, in init
raise TypeError("Filesystem needs to support async operations.")
TypeError: Filesystem needs to support async operations.

@afshin-arj
Copy link
Author

afshin-arj commented Jan 19, 2025

Based on other issues, I reinstalled intake==0.7.0, intake-xarray==0.7.0 and zarr==2.12.0.
Now I have the following error:

DEBUG:fsspec.http:Retrieve file size for https://mastapp.site/intake/level1.yml
DEBUG:fsspec.http:Fetch range for <File-like object HTTPFileSystem, https://mastapp.site/intake/level1.yml>: 0-1473
DEBUG:fsspec.http:https://mastapp.site/intake/level1.yml : bytes=0-1472
DEBUG:fsspec:<File-like object HTTPFileSystem, https://mastapp.site/intake/level1.yml> read: 0 - 1473 , bytes: 0 hits, 1 misses, 1473 total requested bytes
DEBUG:fsspec.local:open file: C:/Users/BROOZD/.intake/persisted/cat.yaml
Traceback (most recent call last):
File "C:\Users\BROOZD\Desktop\MAST_shots\Tutorial_run_mastapp.py", line 36, in
dataset = catalog.level1.sources(
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\intake\catalog\base.py", line 402, in getattr
return self[item] # triggers reload_on_change
~~~~^^^^^^
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\intake\catalog\base.py", line 447, in getitem
s = self._get_entry(key)
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\intake\catalog\utils.py", line 45, in wrapper
return f(self, *args, **kwargs)
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\intake\catalog\base.py", line 333, in _get_entry
return entry()
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\intake\catalog\entry.py", line 79, in call
s = self.get(**kwargs)
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\intake\catalog\local.py", line 272, in get
plugin, open_args = self._create_open_args(user_parameters)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "C:\Users\BROOZD\AppData\Local\Programs\Python\Python313\Lib\site-packages\intake\catalog\local.py", line 246, in _create_open_args
raise ValueError(
...<4 lines>...
)
ValueError: No plugins loaded for this entry: intake_xarray.xzarr.ZarrSource
A listing of installable plugins can be found at https://intake.readthedocs.io/en/latest/plugin-directory.html

But compatible version of zarr is reinstalled. Any solutions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant