PermissionError: Access Denied
Closed this issue · 3 comments
ragonneau commented
Hi,
I am using the condastats
package, which relies on anaconda-package-data
. When running
import condastats.cli
condastats.cli.overall('numpy')
I get the error message
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/s3fs/core.py", line 110, in _error_wrapper
return await func(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/aiobotocore/client.py", line 265, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the GetObject operation: Access Denied
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/bin/condastats", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.8/site-packages/condastats/cli.py", line 387, in main
overall(
File "/usr/local/lib/python3.8/site-packages/condastats/cli.py", line 87, in overall
df = df.compute()
File "/usr/local/lib/python3.8/site-packages/dask/base.py", line 315, in compute
(result,) = compute(self, traverse=False, **kwargs)
File "/usr/local/lib/python3.8/site-packages/dask/base.py", line 598, in compute
results = schedule(dsk, keys, **kwargs)
File "/usr/local/lib/python3.8/site-packages/dask/threaded.py", line 89, in get
results = get_async(
File "/usr/local/lib/python3.8/site-packages/dask/local.py", line 511, in get_async
raise_exception(exc, tb)
File "/usr/local/lib/python3.8/site-packages/dask/local.py", line 319, in reraise
raise exc
File "/usr/local/lib/python3.8/site-packages/dask/local.py", line 224, in execute_task
result = _execute_task(task, data)
File "/usr/local/lib/python3.8/site-packages/dask/core.py", line 119, in _execute_task
return func(*(_execute_task(a, cache) for a in args))
File "/usr/local/lib/python3.8/site-packages/dask/optimization.py", line 990, in __call__
return core.get(self.dsk, self.outkey, dict(zip(self.inkeys, args)))
File "/usr/local/lib/python3.8/site-packages/dask/core.py", line 149, in get
result = _execute_task(task, cache)
File "/usr/local/lib/python3.8/site-packages/dask/core.py", line 119, in _execute_task
return func(*(_execute_task(a, cache) for a in args))
File "/usr/local/lib/python3.8/site-packages/dask/dataframe/io/parquet/core.py", line 89, in __call__
return read_parquet_part(
File "/usr/local/lib/python3.8/site-packages/dask/dataframe/io/parquet/core.py", line 587, in read_parquet_part
dfs = [
File "/usr/local/lib/python3.8/site-packages/dask/dataframe/io/parquet/core.py", line 588, in <listcomp>
func(fs, rg, columns.copy(), index, **toolz.merge(kwargs, kw))
File "/usr/local/lib/python3.8/site-packages/dask/dataframe/io/parquet/arrow.py", line 435, in read_partition
arrow_table = cls._read_table(
File "/usr/local/lib/python3.8/site-packages/dask/dataframe/io/parquet/arrow.py", line 1518, in _read_table
arrow_table = _read_table_from_path(
File "/usr/local/lib/python3.8/site-packages/dask/dataframe/io/parquet/arrow.py", line 239, in _read_table_from_path
return pq.ParquetFile(fil, **pre_buffer).read(
File "/usr/local/lib/python3.8/site-packages/pyarrow/parquet/__init__.py", line 277, in __init__
self.reader.open(
File "pyarrow/_parquet.pyx", line 1213, in pyarrow._parquet.ParquetReader.open
File "/usr/local/lib/python3.8/site-packages/fsspec/spec.py", line 1578, in read
out = self.cache._fetch(self.loc, self.loc + length)
File "/usr/local/lib/python3.8/site-packages/fsspec/caching.py", line 41, in _fetch
return self.fetcher(start, stop)
File "/usr/local/lib/python3.8/site-packages/s3fs/core.py", line 2030, in _fetch_range
return _fetch_range(
File "/usr/local/lib/python3.8/site-packages/s3fs/core.py", line 2173, in _fetch_range
resp = fs.call_s3(
File "/usr/local/lib/python3.8/site-packages/fsspec/asyn.py", line 86, in wrapper
return sync(self.loop, func, *args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/fsspec/asyn.py", line 66, in sync
raise return_result
File "/usr/local/lib/python3.8/site-packages/fsspec/asyn.py", line 26, in _runner
result[0] = await coro
File "/usr/local/lib/python3.8/site-packages/s3fs/core.py", line 332, in _call_s3
return await _error_wrapper(
File "/usr/local/lib/python3.8/site-packages/s3fs/core.py", line 137, in _error_wrapper
raise err
PermissionError: Access Denied
The owner of condastats
asked me to open an issue here (see conda-incubator/condastats#16).
Thank you very much for your kind help,
Cheers,
Tom.
sophiamyang commented
Thanks so much for the issue! @cappadona should be able to help : )
cappadona commented
Hi @ragonneau, thanks for reporting this issue. You should be able to access all package data now, but please let us know if you find otherwise.
ragonneau commented
Hi @cappadona! It works beautifully, thank you very much.
Cheers,
Tom.