You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doing: from rucio.client import Client
crashes with
if self.creds['oidc_refresh_lifetime'] is None:
TypeError: 'NoneType' object is not subscriptable
Modification
rucio/client/baseclient.py
Default creds dictionary of the baseclient.py is accessible only if rucio/rucio-admin CLI is used. If Client is imported, it reads the auth_type to be oidc and looks for the self.creds dictionary which will be None in this case. The client needs to read the config from the rucio.cfg if self.creds == None.
The text was updated successfully, but these errors were encountered:
Motivation
For rucio.cfg file config:
Doing:
from rucio.client import Client
crashes with
Modification
rucio/client/baseclient.py
Default creds dictionary of the baseclient.py is accessible only if rucio/rucio-admin CLI is used. If Client is imported, it reads the auth_type to be oidc and looks for the self.creds dictionary which will be None in this case. The client needs to read the config from the rucio.cfg if self.creds == None.
The text was updated successfully, but these errors were encountered: