sassoftware / sassoftware/python-swat

Insufficient authorization to access /opt/cascache

Open
#180 0 comments 0 reactions 0 assignees View on GitHub

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:

image

Any idea?

Kind regards from Germany

Klaus

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.