https://github.com/gsuitedevs/python-samples/blob/4acb66239db78090eacd1863afbd060a4438462a/drive/quickstart/quickstart.py#L33
When I tried the quickstart.py example, I ran into the following error
run_flow() missing 1 required positional argument: 'flags'
This can be fixed by adding a call to tools.argparser.parse_args and including the returned flags in the run_flow call:
flags = tools.argparser.parse_args(args=[])
if not creds or creds.invalid:
flow = client.flow_from_clientsecrets('client_secret.json', SCOPES)
creds = tools.run_flow(flow, store, flags)
Hat tip to John Ruddell via StackOverflow
https://github.com/gsuitedevs/python-samples/blob/4acb66239db78090eacd1863afbd060a4438462a/drive/quickstart/quickstart.py#L33
When I tried the
quickstart.pyexample, I ran into the following errorThis can be fixed by adding a call to
tools.argparser.parse_argsand including the returned flags in therun_flowcall:Hat tip to John Ruddell via StackOverflow