Skip to content

run_flow() missing 1 required positional argument: 'flags' #6

Description

@tomsing1

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions