Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running "auth projects" in Colab #4

Open
Malam9 opened this issue Nov 29, 2020 · 0 comments
Open

Error running "auth projects" in Colab #4

Malam9 opened this issue Nov 29, 2020 · 0 comments

Comments

@Malam9
Copy link

Malam9 commented Nov 29, 2020

Output:


IndexError Traceback (most recent call last)
in ()
7 sys.argv = [""] + list(command1.split(" "))
8 print(f"safire command: {command1} \n\nOutput: \n")
----> 9 fire.Fire(Commands)
10
11 command2 = "" #@param {type:"string"}

4 frames
/usr/local/lib/python3.6/dist-packages/fire/core.py in Fire(component, command, name)
136 context.update(caller_locals)
137
--> 138 component_trace = _Fire(component, args, parsed_flag_args, context, name)
139
140 if component_trace.HasError():

/usr/local/lib/python3.6/dist-packages/fire/core.py in _Fire(component, args, parsed_flag_args, context, name)
466 component_trace,
467 treatment='class' if is_class else 'routine',
--> 468 target=component.name)
469 handled = True
470 except FireError as error:

/usr/local/lib/python3.6/dist-packages/fire/core.py in _CallAndUpdateTrace(component, args, component_trace, treatment, target)
670 parse = _MakeParseFn(fn, metadata)
671 (varargs, kwargs), consumed_args, remaining_args, capacity = parse(args)
--> 672 component = fn(*varargs, **kwargs)
673
674 if treatment == 'class':

in projects(self, credentials, token)
121 """Create an auth token for accessing and changing projects,
122 service accounts, json keys and drives"""
--> 123 self.get_token(credentials, self.scopes_proj, token)
124
125 def groups(self, credentials=credentials, group_token=group_token):

in get_token(self, credentials, scopes, token)
147 creds.refresh(Request())
148 else:
--> 149 flow = InstalledAppFlow.from_client_secrets_file(cred_file[0], scopes)
150 yes_no = input(
151 "Run local server with browser? If no, generate console link. y/n: "

IndexError: list index out of range

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant