python-samples icon indicating copy to clipboard operation
python-samples copied to clipboard

Fallback Creds

Open notionparallax opened this issue 6 years ago • 3 comments

When doing the Python Quickstart for Google Sheets, on Windows 10, it gives an error:

[WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

It's caused by creds = flow.run_local_server()

This PR adds a fallback to it shows a different auth method, as per the docs: "_ If this fails, copy the URL from the console and manually open it in your browser._"

notionparallax avatar Jun 15 '19 09:06 notionparallax