Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Fixed auth_helpers.py to work with Python 3.7 #706

Open
wants to merge 1 commit into
base: aiyprojects
Choose a base branch
from

Conversation

daOrangePeeler
Copy link

This commit fixes a bug where the web browser doesn't open properly because of improper syntax for Python 3.7. The improper call of webbrowser.register in auth_helpers.py causes the entire authentication to fail, which prevents the user from starting any of the example programs. This only happens when the user tries to authenticate using the desktop interface. When the user uses ssh, the problem is avoided.

The change in auth_helpers.py is on line 75 and the last argument is changed from "-1" to "preferred=True." The documentation explains that the last argument takes boolean values instead of numeric values. This comment also explains how to implement the fix.

Resolves #658.

@google-cla google-cla bot added the cla: yes label Aug 23, 2020
@daOrangePeeler daOrangePeeler force-pushed the aiyprojects branch 2 times, most recently from 3e249cb to c0d3a38 Compare August 23, 2020 03:31
Copy link

@MariusLang MariusLang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed webbrowser

Copy link

@MariusLang MariusLang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed webbrowser

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

Successfully merging this pull request may close these issues.

Error when executing src/examples/voice/assistant_grpc_demo.py
2 participants