python-swat icon indicating copy to clipboard operation
python-swat copied to clipboard

Insufficient authorization to access /opt/cascache

Open klroesner opened this issue 1 year ago • 0 comments
trafficstars

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

klroesner avatar May 17 '24 09:05 klroesner