JamieMax
Posts: 4
Joined: Wed Nov 08, 2017 10:04 pm

Google Auth working only once?

Wed Nov 08, 2017 10:14 pm

Hi Folks,

I've been through the guide with my lovely new Google AIY kit, and when I get to section 3.1 where I start the library demo app for the first time (src/assistant_library_demo.py), I get prompted to Auth, and it starts working...

The problem is that after a reboot I run the same command and I get a long traceback error, that I forgot to copy down... Does anyone have any ideas on what might be causing that? I appreciate any help - I'm new to python/linux, but trying my best.

Jamie

JamieMax
Posts: 4
Joined: Wed Nov 08, 2017 10:04 pm

Re: Google Auth working only once?

Thu Nov 09, 2017 7:29 pm

This is what the dev terminal returns to me when I run the Code:

Code: Select all

env) pi@raspberrypi:~/AIY-voice-kit-python $ src/assistant_library_demo.py
Traceback (most recent call last):
  File "src/assistant_library_demo.py", line 69, in <module>
    main()
  File "src/assistant_library_demo.py", line 62, in main
    credentials = aiy.assistant.auth_helpers.get_assistant_credentials()
  File "/home/pi/AIY-voice-kit-python/src/aiy/assistant/auth_helpers.py", line 127, in get_assistant_credentials
    return _try_to_get_credentials(credentials_file)
  File "/home/pi/AIY-voice-kit-python/src/aiy/assistant/auth_helpers.py", line 95, in _try_to_get_credentials
    return _load_credentials(_ASSISTANT_CREDENTIALS)
  File "/home/pi/AIY-voice-kit-python/src/aiy/assistant/auth_helpers.py", line 51, in _load_credentials
    credentials_data = json.load(f)
  File "/usr/lib/python3.4/json/__init__.py", line 268, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib/python3.4/json/__init__.py", line 318, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.4/json/decoder.py", line 343, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.4/json/decoder.py", line 361, in raw_decode
    raise ValueError(errmsg("Expecting value", s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)

newtonheath
Posts: 1
Joined: Tue Nov 14, 2017 5:32 pm

Re: Google Auth working only once?

Tue Nov 14, 2017 5:55 pm

Mmm - getting the same issue after ran test, got no answer, and button press caused a reboot. Any update or solution?

Return to “AIY Projects”