Closed rickmini closed 4 years ago
i forgot to add these lines: File "/home/pi/AIY-projects-python/src/aiy/assistant/auth_helpers.py", line 75, in _credentials_flow_interactive webbrowser.register('chromium-browser', None, webbrowser.Chrome('chromium-browser'), -1) TypeError: register() takes from 2 to 3 positional arguments but 4 were given
You have to edit the auth_helpers.py file at line 75 as below:
webbrowser.register('chromium-browser', None, webbrowser.Chrome('chromium-browser'))
i did that, ran ./assistant_library_demo.py , then got the auth screen, and it completed authorization: Then it exited and and left output: Segmentation fault.
here is the outpu:
./assistant_library_demo.py
Please visit this URL to authorize this application: https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=23695939617-49irrcmkf3d8vms7i1n2si1u4g8ne3vs.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fassistant-sdk-prototype&state=LfjzwuQuw7vvFRlsv9RU8Dfve3480k&access_type=offline INFO:google_auth_oauthlib.flow:"GET /?state=LfjzwuQuw7vvFRlsv9RU8Dfve3480k&code=4/twGkL37URqEY3XwdNzYVuKSqgMS0XRgMAi6dGa1G_XtIdm0JQ6TUxk0sAJQ1VpPs7RCtj4NzuqiVrmLDuDGOwG4&scope= https://www.googleapis.com/auth/assistant-sdk-prototype HTTP/1.1" 200 65 INFO:root:OAuth credentials initialized: /home/pi/.cache/voice-recognizer/assistant_credentials.json Segmentation fault
On Sat, Nov 30, 2019 at 6:38 AM Alessandro Baldassari < notifications@github.com> wrote:
You have to edit the auth_helpers.py file at line 75 as below: webbrowser.register('chromium-browser', None, webbrowser.Chrome('chromium-browser'))
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/google/aiyprojects-raspbian/issues/654?email_source=notifications&email_token=AJLICWLUAXXSGVXY52UWGRTQWJGD5A5CNFSM4JTD3HQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFQDLIY#issuecomment-559953315, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJLICWNOQWXOHIXJMRGNZXTQWJGD5ANCNFSM4JTD3HQA .
Any idea on why segmentation fault? INFO:root:OAuth credentials initialized: /home/pi/.cache/voice-recognizer/assistant_credentials.json Segmentation fault
I have the same issue
From: rickmini notifications@github.com Sent: Wednesday, December 4, 2019 3:14:45 PM To: google/aiyprojects-raspbian aiyprojects-raspbian@noreply.github.com Cc: Alessandro Baldassari alessandro.baldassari@live.it; Comment comment@noreply.github.com Subject: Re: [google/aiyprojects-raspbian] 2019-11-13 image on buster error (#654)
Any idea on why segmentation fault? INFO:root:OAuth credentials initialized: /home/pi/.cache/voice-recognizer/assistant_credentials.json Segmentation fault
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/google/aiyprojects-raspbian/issues/654?email_source=notifications&email_token=ADTMZKTIXSXC665ISLHFLUDQW63NLA5CNFSM4JTD3HQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF5E5KI#issuecomment-561663657, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADTMZKUTSSMWKC3UL6OVR6DQW63NLANCNFSM4JTD3HQA.
Alessandro I had assumed you were a google tech helping me. But i guess that you and I are just suffering the same frustration. Does google ever respond to issues with their code?
@rickmini Assistant library SDK has been deprecated and assistant_library_demo is broken at backend now. assistant_grpc_demo is running fine though.
Check out my writeup on how to get it working and update stretch. https://medium.com/@michaeldbrewer/aiy-voice-deprecation-workaround-bd07559403df
pip3 install google-assistant-library==1.0.0
use that to update the Library
This seems to be a duplicate of #660, please comment there.
I am using the latest image from 2019-11-13 Raspberry Buster on both a Raspi 4 and 3b+. No matter what i do i cannot get past authentication.
Traceback (most recent call last): File "./assistant_library_demo.py", line 71, in
main()
File "./assistant_library_demo.py", line 64, in main
credentials = auth_helpers.get_assistant_credentials()
File "/home/pi/AIY-projects-python/src/aiy/assistant/auth_helpers.py", line 151, in get_assistant_credentials
return _try_to_get_credentials(credentials_file)
File "/home/pi/AIY-projects-python/src/aiy/assistant/auth_helpers.py", line 123, in _try_to_get_credentials
credentials = _credentials_flow_interactive(client_secrets)
File "/home/pi/AIY-projects-python/src/aiy/assistant/auth_helpers.py", line 75, in _credentials_flow_interactive
webbrowser.register('chromium-browser', None, webbrowser.Chrome('chromium-browser'), -1)