Title: run_flow() missing 1 required positional argument: 'flags' · Issue #6 · googleworkspace/python-samples · GitHub
Open Graph Title: run_flow() missing 1 required positional argument: 'flags' · Issue #6 · googleworkspace/python-samples
X Title: run_flow() missing 1 required positional argument: 'flags' · Issue #6 · googleworkspace/python-samples
Description: 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...
Open Graph Description: 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 ...
X Description: 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 ...
Opengraph URL: https://github.com/googleworkspace/python-samples/issues/6
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"run_flow() missing 1 required positional argument: 'flags'","articleBody":"https://github.com/gsuitedevs/python-samples/blob/4acb66239db78090eacd1863afbd060a4438462a/drive/quickstart/quickstart.py#L33\r\n\r\nWhen I tried the `quickstart.py` example, I ran into the following error\r\n```\r\nrun_flow() missing 1 required positional argument: 'flags'\r\n```\r\n\r\nThis can be fixed by adding a call to `tools.argparser.parse_args` and including the returned flags in the `run_flow` call:\r\n\r\n```python\r\nflags = tools.argparser.parse_args(args=[])\r\n\r\nif not creds or creds.invalid:\r\n flow = client.flow_from_clientsecrets('client_secret.json', SCOPES)\r\n creds = tools.run_flow(flow, store, flags)\r\n```\r\n\r\nHat tip to John Ruddell via [StackOverflow](https://stackoverflow.com/questions/25422545/which-flag-for-run-flow-will-simulate-the-now-deprecated-run/27736269#27736269)","author":{"url":"https://github.com/tomsing1","@type":"Person","name":"tomsing1"},"datePublished":"2018-05-06T23:27:50Z","url":"https://github.com/googleworkspace/python-samples/issues/6"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:25e4ee64-c5a4-997f-7912-79a384368832 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC4A:2AFC5E:3F7C6:500E9:6B088837 |
| html-safe-nonce | 0213c3d5751938651e30619016ea69d0ef2a17000d94b9f6c6a9511472e297b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzRBOjJBRkM1RTozRjdDNjo1MDBFOTo2QjA4ODgzNyIsInZpc2l0b3JfaWQiOiI2ODEyNjQ2OTU4ODYwNjM0MTY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 28e2626d3d2af03de01db9a89a584695faed64b5c4ed2646e4f0b18da8787bdd |
| hovercard-subject-tag | issue:320638596 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleworkspace/python-samples/6/issue_layout |
| twitter:image | https://opengraph.githubassets.com/61bb6388005c82b766d5fed2bad70a0ebb46f0bf34724ddfa84b738842687dfc/googleworkspace/python-samples/issues/6 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/61bb6388005c82b766d5fed2bad70a0ebb46f0bf34724ddfa84b738842687dfc/googleworkspace/python-samples/issues/6 |
| og:image:alt | 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tomsing1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60e86161f3e246339ce8d4bd308e3da0ecd5ebd5e610d57e00d21487fe085d68 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleworkspace/python-samples git https://github.com/googleworkspace/python-samples.git |
| octolytics-dimension-user_id | 3708359 |
| octolytics-dimension-user_login | googleworkspace |
| octolytics-dimension-repository_id | 14163863 |
| octolytics-dimension-repository_nwo | googleworkspace/python-samples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14163863 |
| octolytics-dimension-repository_network_root_nwo | googleworkspace/python-samples |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e87e2b0f8aff9e45b7ac6c81be5a939ad971830c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width