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

Error with netcdf writing on azure #166

Open
BaptisteVandecrux opened this issue Aug 10, 2023 · 0 comments
Open

Error with netcdf writing on azure #166

BaptisteVandecrux opened this issue Aug 10, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@BaptisteVandecrux
Copy link
Member

  File "/home/aws/miniconda3/envs/py38/lib/python3.8/site-packages/xarray/backends/file_manager.py", line 209, in _acquire_with_cache_info
    file = self._cache[self._key]
  File "/home/aws/miniconda3/envs/py38/lib/python3.8/site-packages/xarray/backends/lru_cache.py", line 55, in __getitem__
    value = self._cache[key]
KeyError: [<class 'netCDF4._netCDF4.Dataset'>, ('/data/pypromice_aws/aws-l3/tx/THU_U2/THU_U2_hour.nc',), 'a', (('clobber', True), ('diskless', False), ('format', 'NETCDF4'), ('persist', Fa>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/aws/miniconda3/envs/py38/bin/getL3", line 36, in <module>
    pAWS.write(args.outpath)
  File "/home/aws/miniconda3/envs/py38/lib/python3.8/site-packages/pypromice/process/aws.py", line 82, in write
    self.writeArr(outpath)
  File "/home/aws/miniconda3/envs/py38/lib/python3.8/site-packages/pypromice/process/aws.py", line 178, in writeArr
    writeNC(out_nc, self.L3)
  File "/home/aws/miniconda3/envs/py38/lib/python3.8/site-packages/pypromice/process/aws.py", line 432, in writeNC
    Lx.to_netcdf(outfile, mode='w', format='NETCDF4', compute=True)
  File "/home/aws/miniconda3/envs/py38/lib/python3.8/site-packages/xarray/core/dataset.py", line 1903, in to_netcdf
    return to_netcdf(  # type: ignore  # mypy cannot resolve the overloads:(
  File "/home/aws/miniconda3/envs/py38/lib/python3.8/site-packages/xarray/backends/api.py", line 1213, in to_netcdf
    store = store_open(target, mode, format, group, **kwargs)
  File "/home/aws/miniconda3/envs/py38/lib/python3.8/site-packages/xarray/backends/netCDF4_.py", line 376, in open
    return cls(manager, group=group, mode=mode, lock=lock, autoclose=autoclose)
  File "/home/aws/miniconda3/envs/py38/lib/python3.8/site-packages/xarray/backends/netCDF4_.py", line 323, in __init__
    self.format = self.ds.data_model
  File "/home/aws/miniconda3/envs/py38/lib/python3.8/site-packages/xarray/backends/netCDF4_.py", line 385, in ds
    return self._acquire()
  File "/home/aws/miniconda3/envs/py38/lib/python3.8/site-packages/xarray/backends/netCDF4_.py", line 379, in _acquire
    with self._manager.acquire_context(needs_lock) as root:
  File "/home/aws/miniconda3/envs/py38/lib/python3.8/contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "/home/aws/miniconda3/envs/py38/lib/python3.8/site-packages/xarray/backends/file_manager.py", line 197, in acquire_context
    file, cached = self._acquire_with_cache_info(needs_lock)
  File "/home/aws/miniconda3/envs/py38/lib/python3.8/site-packages/xarray/backends/file_manager.py", line 215, in _acquire_with_cache_info
    file = self._opener(*self._args, **kwargs)
  File "src/netCDF4/_netCDF4.pyx", line 2463, in netCDF4._netCDF4.Dataset.__init__
  File "src/netCDF4/_netCDF4.pyx", line 2026, in netCDF4._netCDF4._ensure_nc_success
PermissionError: [Errno 13] Permission denied: b'/data/pypromice_aws/aws-l3/tx/THU_U2/THU_U2_hour.nc'

@BaptisteVandecrux BaptisteVandecrux changed the title Error with netcdf writing on azure-aws Error with netcdf writing on azure Aug 10, 2023
@PennyHow PennyHow added the bug Something isn't working label Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants