sassoftware / sassoftware/python-swat
Insufficient authorization to access /opt/cascache
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 159
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I am trying to write a file to the CAS server from Python and I get this error:
`pip install swat
import swat
import getpass
import os
import pandas as pd
conn = swat.CAS(xxxxx, xxxx, 'xxx', getpass.getpass(prompt='Dear user please enter your password:'), protocol="cas")
df = pd.read_csv('/userfs/iris.csv')
conn.upload(df, casout=dict(name='iris3', caslib='casuser', replace=True))
ERROR: Insufficient authorization to access /opt/cascache/_f_2b68d67_7f8cb6e4cb68.csv.
ERROR: Failed to create temporary resources for file upload.
ERROR: The action stopped due to errors.`
The permissions on the CAS controller look good to me:
Any idea?
Kind regards from Germany
Klaus
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository files or tests are named. Start by reproducing the Python SWAT upload shown in the issue and compare the CAS controller's permissions for /opt/cascache and the temporary upload path; done means identifying the authorization or configuration cause of the failed upload and documenting a verified resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- pandas, python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100