shivasiddharth / GassistPi

Google Assistant for Single Board Computers
Other
1.02k stars 303 forks source link

[Headless startup issue] Loaded: bad-setting (Reason: Unit gassistpi.service has a bad unit file setting.) #1033

Closed Renison-Gohel closed 4 years ago

Renison-Gohel commented 4 years ago

IMPORTANT NOTICE
If you do not complete the template below it is likely that your issue will not be addressed. When providing information about your issue please be as extensive as possible so that it can be solved by as little as possible responses.

FAILURE TO COMPLETE THE REQUESTED INFORMATION WILL RESULT IN YOUR ISSUE BEING CLOSED

Which branch of GassistPi are you using ?

Master Branch

Board and OS details:

Open a terminal and run

cat /proc/cpuinfo  
cat /etc/os-release  
Paste your Board and OS details here.   

**processor : 0
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 76.80
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor   : 1
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 76.80
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor   : 2
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 76.80
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor   : 3
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 76.80
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

Hardware    : BCM2835
Revision    : a22082
Serial      : 000000003ec8578a
Model       : Raspberry Pi 3 Model B Rev 1.2**

**PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"**

### Describe the bug:

Headless auto start is not working. i tried many troubleshooting but none of them are working. systemctl status shows that unit part of .service part is bad configured


### Did you go through or search the issues section to check if your issue was already discussed (either currently open issues or closed issues)?
**Yes**

### 2. Is the issue related to assistant installation ?
**No, As i am able to run Google assistance with manual command**

### If answer to question 2 is Yes, then attach the contents of terminal as a file or paste it below.

### If answer to question 2 is No, then proceed further.
### 3. Does the assistant service start normally?
**No, This is the problem**

### 4. Is the assistant service restarting automatically?
No

### If answer to question 4 is Yes, then paste the contents of the terminal below.

### If answer to question 4 is No, then proceed further.
### Manually start the assistant. For guidelines to start the assistant manually refer [this](https://github.com/shivasiddharth/GassistPi#manually-start-the-assistant)

### Paste the command below, that crashed the assistant

sudo systemctl status gassistpi.service


### Paste the contents of the terminal below

● gassistpi.service - Google Assistant-Voice Loaded: bad-setting (Reason: Unit gassistpi.service has a bad unit file setti Active: inactive (dead) lines 1-3/3 (END)...skipping... ● gassistpi.service - Google Assistant-Voice Loaded: bad-setting (Reason: Unit gassistpi.service has a bad unit file setting.) Active: inactive (dead)

solidssss commented 4 years ago

I had the same issue. I had to reflash rasbpian from scratch and to it all again

Renison-Gohel commented 4 years ago

I had the same issue. I had to reflash rasbpian from scratch and to it all again

Have you manage to solve after reflashing raspbian os? Because i did it couple of times but don't know somehow i return to this same error.

shivasiddharth commented 4 years ago

Attach the contents of gassistpi.service file located inside the systemd folder within the GassistPi project folder directory. Do not change anything post it as such.

Renison-Gohel commented 4 years ago

Thanks a lot for your response. Here it is. i have go through many searches for this issue and one of the issue which was previously discussed here and it was solved by removing ' ' sing after --device_model_id so i did it and now i am copy pasting same content without correcting it so you have better idea if i am doing anything wrong.

[Unit]
Description=Google Assistant-Voice

[Service]
ExecStart=/home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --project_id 'assistantreni' --device_model_id assistantreni-eaglesmarthub-gbvix6
WorkingDirectory=/home/pi/
StandardOutput=inherit
StandardError=inherit
Restart=always
User=pi

[Install]
WantedBy=multi-user.target

I read somewhere on Home assistant forum where one guy having similar issue with home assistant headless startup and he removed ExecStart= Before ExecStart=/PATH_OF_HOME_ASSISTANCE_SERVICE_FILE and i followed him too but still i was unable to start GassistPi on boot. After that i opened this issue.

shivasiddharth commented 4 years ago

You need to have those quotes just like how you have it for the project_id. Looks like you have tinkered with the systemd file heavily. Why are pieces of the unit file missing ?

Renison-Gohel commented 4 years ago

When i boot raspberry pi then some text commands shows up for very few seconds before raspberry pi logo appears telling that unit file is configured bad. so i think removing other content under unit section may solve this problem but i was wrong.

Renison-Gohel commented 4 years ago

I'll try to put quotes on model id same as project id and revert back with the results. Anything more should i have to change? Should i again correct all changes which i made to the normal one For better troubleshooting?

shivasiddharth commented 4 years ago

You need to revert back to original systemd file that came with the project. Add back all the parts that you removed. Run sudo systemctl disable gassistpi.service Re-do the headless setup steps.

Renison-Gohel commented 4 years ago
pi@raspberrypi:~ $ sudo systemctl disable gassistpi.service
Removed /etc/systemd/system/multi-user.target.wants/gassistpi.service.
pi@raspberrypi:~ $ cd /home/${USER}   
pi@raspberrypi:~ $ sudo chmod +x ./GassistPi/scripts/service-installer.sh  
pi@raspberrypi:~ $ sudo ./GassistPi/scripts/service-installer.sh    
pi@raspberrypi:~ $ sudo systemctl enable gassistpi.service  
Created symlink /etc/systemd/system/multi-user.target.wants/gassistpi.service → /lib/systemd/system/gassistpi.service.
pi@raspberrypi:~ $ sudo systemctl start gassistpi.service  
Failed to start gassistpi.service: Unit gassistpi.service has a bad unit file setting.
See system logs and 'systemctl status gassistpi.service' for details.
pi@raspberrypi:~ $ systemctl status gassistpi.service
● gassistpi.service - Google Assistant-Voice
   Loaded: bad-setting (Reason: Unit gassistpi.service has a bad unit file setti
   Active: inactive (dead)

Aug 10 17:40:32 raspberrypi systemd[1]: gassistpi.service: Service has more than
Aug 10 17:43:39 raspberrypi systemd[1]: gassistpi.service: Service has more than
lines 1-6/6 (END)...skipping...
● gassistpi.service - Google Assistant-Voice
   Loaded: bad-setting (Reason: Unit gassistpi.service has a bad unit file setting.)
   Active: inactive (dead)

Aug 10 17:40:32 raspberrypi systemd[1]: gassistpi.service: Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.
Aug 10 17:43:39 raspberrypi systemd[1]: gassistpi.service: Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.

Still Getting Same

shivasiddharth commented 4 years ago

Its not the same. You dont need to have the ExecStart= with the pushbutton script. Remove that line and follow the steps that i mentioned previously again. Also share the service file here.

Renison-Gohel commented 4 years ago

Service is now working after following your instructions but still GassistPi is not starting (Google voice greeting with "HI" ) and i gave command to just check if GassistPi is working in background without startup sound but it was not running in background also.

Service File

[Unit]
Description=Google Assistant-Voice
Wants=network-online.target
After=network-online.target

[Service]
Environment=VIRTUAL_ENV=/home/__USER__/env
Environment=PATH=/home/__USER__/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ExecStart=/home/__USER__/env/bin/python -u /home/__USER__/GassistPi/src/main.py --project_id 'assistantreni' --device_model_id 'assistantreni-eaglesmarthub-gbvix6'

WorkingDirectory=/home/__USER__/
StandardOutput=inherit
StandardError=inherit
Restart=always
User=__USER__

[Install]
WantedBy=multi-user.targetsudo systemctl status gassistpi.service 

Terminal Output of sudo systemctl status gassistpi.service

pi@raspberrypi:~ $ sudo systemctl status gassistpi.service  
● gassistpi.service - Google Assistant-Voice
   Loaded: loaded (/lib/systemd/system/gassistpi.service; enabled; vendor preset
   Active: active (running) since Tue 2020-08-11 11:58:49 IST; 20s ago
 Main PID: 1027 (python)
    Tasks: 5 (limit: 1944)
   CGroup: /system.slice/gassistpi.service
           └─1027 /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --pr

Aug 11 11:59:09 raspberrypi python[1027]: Traceback (most recent call last):
Aug 11 11:59:09 raspberrypi python[1027]:   File "/home/pi/GassistPi/src/main.py
Aug 11 11:59:09 raspberrypi python[1027]:     logging.basicConfig(format='%(asct
Aug 11 11:59:09 raspberrypi python[1027]:   File "/usr/lib/python3.7/logging/__i
Aug 11 11:59:09 raspberrypi python[1027]:     h = FileHandler(filename, mode)
Aug 11 11:59:09 raspberrypi python[1027]:   File "/usr/lib/python3.7/logging/__i
Aug 11 11:59:09 raspberrypi python[1027]:     StreamHandler.__init__(self, self.
Aug 11 11:59:09 raspberrypi python[1027]:   File "/usr/lib/python3.7/logging/__i
Aug 11 11:59:09 raspberrypi python[1027]:     return open(self.baseFilename, sel
Aug 11 11:59:09 raspberrypi python[1027]: PermissionError: [Errno 13] Permission
lines 1-18/18 (END)...skipping...
● gassistpi.service - Google Assistant-Voice
   Loaded: loaded (/lib/systemd/system/gassistpi.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2020-08-11 11:58:49 IST; 20s ago
 Main PID: 1027 (python)
    Tasks: 5 (limit: 1944)
   CGroup: /system.slice/gassistpi.service
           └─1027 /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --project_id assistantreni --device_model_id assistantreni-eaglesmarthub-gbvix6

Aug 11 11:59:09 raspberrypi python[1027]: Traceback (most recent call last):
Aug 11 11:59:09 raspberrypi python[1027]:   File "/home/pi/GassistPi/src/main.py", line 118, in <module>
Aug 11 11:59:09 raspberrypi python[1027]:     logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.DEBUG , filename='/tmp/GassistPi.log')
Aug 11 11:59:09 raspberrypi python[1027]:   File "/usr/lib/python3.7/logging/__init__.py", line 1900, in basicConfig
Aug 11 11:59:09 raspberrypi python[1027]:     h = FileHandler(filename, mode)
Aug 11 11:59:09 raspberrypi python[1027]:   File "/usr/lib/python3.7/logging/__init__.py", line 1092, in __init__
Aug 11 11:59:09 raspberrypi python[1027]:     StreamHandler.__init__(self, self._open())
Aug 11 11:59:09 raspberrypi python[1027]:   File "/usr/lib/python3.7/logging/__init__.py", line 1121, in _open
Aug 11 11:59:09 raspberrypi python[1027]:     return open(self.baseFilename, self.mode, encoding=self.encoding)
Aug 11 11:59:09 raspberrypi python[1027]: PermissionError: [Errno 13] Permission denied: '/tmp/GassistPi.log

I have change nothing in Main.py file still i think this error shows that log file has some permission issues

Main.py file content

1. #!/usr/bin/env python
2. 
3. # Copyright (C) 2017 Google Inc.
4. #
5. # Licensed under the Apache License, Version 2.0 (the "License");
6. # you may not use this file except in compliance with the License.
7. # You may obtain a copy of the License at
8. #
9. #     http://www.apache.org/licenses/LICENSE-2.0
10. #
11. # Unless required by applicable law or agreed to in writing, software
12. # distributed under the License is distributed on an "AS IS" BASIS,
13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14. # See the License for the specific language governing permissions and
15. # limitations under the License.
16. 
17. from __future__ import print_function
18. import faulthandler
19. faulthandler.enable()
20. from kodijson import Kodi, PLAYER_VIDEO
21. try:
22.     import RPi.GPIO as GPIO
23. except Exception as e:
24.     GPIO = None
25. import argparse
26. import json
27. import os.path
28. import pathlib2 as pathlib
29. import os
30. import subprocess
31. import re
32. import psutil
33. import logging
34. import time
35. import random
36. import snowboydecoder
37. import sys
38. import signal
39. import requests
40. import io
41. import google.oauth2.credentials
42. from google.assistant.library import Assistant
43. from google.assistant.library.event import EventType
44. from google.assistant.library.file_helpers import existing_file
45. from google.assistant.library.device_helpers import register_device
46. from google.cloud import speech
47. from google.cloud.speech import enums
48. from google.cloud.speech import types
49. import paho.mqtt.client as mqtt
50. from actions import say
51. from actions import trans
52. from actions import Action
53. from actions import YouTube_No_Autoplay
54. from actions import YouTube_Autoplay
55. from actions import stop
56. from actions import radio
57. from actions import script
58. from actions import ESP
59. from actions import track
60. from actions import feed
61. from actions import kodiactions
62. from actions import mutevolstatus
63. from actions import gmusicselect
64. from actions import refreshlists
65. from actions import chromecast_play_video
66. from actions import chromecast_control
67. from actions import kickstarter_tracker
68. from actions import getrecipe
69. from actions import hue_control
70. from actions import vlcplayer
71. from actions import spotify_playlist_select
72. from actions import configuration
73. from actions import custom_action_keyword
74. from threading import Thread
75. if GPIO!=None:
76.     from indicator import assistantindicator
77.     from indicator import stoppushbutton
78.     from indicator import irreceiver
79.     GPIOcontrol=True
80. else:
81.     irreceiver=None
82.     GPIOcontrol=False
83. from pathlib import Path
84. from Adafruit_IO import MQTTClient
85. from actions import Domoticz_Device_Control
86. from actions import domoticz_control
87. from actions import domoticz_devices
88. from actions import gaana_playlist_select
89. from actions import deezer_playlist_select
90. from actions import gender
91. from actions import on_ir_receive
92. from actions import Youtube_credentials
93. from actions import Spotify_credentials
94. from actions import notify_tts
95. from actions import sendSMS
96. from actions import translanguage
97. from actions import language
98. from actions import voicenote
99. from actions import langlist
100. from audiorecorder import record_to_file
101. from actions import wemocontrol
102. from actions import wemodiscovery
103. try:
104.     FileNotFoundError
105. except NameError:
106.     FileNotFoundError = IOError
107. 
108. 
109. WARNING_NOT_REGISTERED = """
110.     This device is not registered. This means you will not be able to use
111.     Device Actions or see your device in Assistant Settings. In order to
112.     register this device follow instructions at:
113. 
114.     https://developers.google.com/assistant/sdk/guides/library/python/embed/register-device
115. """
116. 
117. logging.root.handlers = []
118. logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.DEBUG , filename='/tmp/GassistPi.log')
119. console = logging.StreamHandler()
120. console.setLevel(logging.ERROR)
121. formatter = logging.Formatter('%(asctime)s : %(levelname)s : %(message)s')
122. console.setFormatter(formatter)
123. logging.getLogger("").addHandler(console)
124. 
125. ROOT_PATH = os.path.realpath(os.path.join(__file__, '..', '..'))
126. USER_PATH = os.path.realpath(os.path.join(__file__, '..', '..','..'))
127. 
128. #Login with default kodi/kodi credentials
129. #kodi = Kodi("http://localhost:8080/jsonrpc")
130. 
131. #Login with custom credentials
132. # Kodi("http://IP-ADDRESS-OF-KODI:8080/jsonrpc", "username", "password")
133. kodiurl=("http://"+str(configuration['Kodi']['ip'])+":"+str(configuration['Kodi']['port'])+"/jsonrpc")
134. kodi = Kodi(kodiurl, configuration['Kodi']['username'], configuration['Kodi']['password'])
135. if configuration['Kodi']['Kodi_Control']=='Enabled':
136.     kodicontrol=True
137. else:
138.     kodicontrol=False
139. 
140. 
141. mutestopbutton=True
142. 
143. #Sonoff-Tasmota Declarations
144. #Make sure that the device name assigned here does not overlap any of your smart device names in the google home app
145. tasmota_devicelist=configuration['Tasmota_devicelist']['friendly-names']
146. tasmota_deviceip=configuration['Tasmota_devicelist']['ipaddresses']
147. tasmota_deviceportid=configuration['Tasmota_devicelist']['portID']
148. 
149. #Magic Mirror Remote Control Declarations
150. mmmip=configuration['Mmmip']
151. 
152. # Check if VLC is paused
153. def checkvlcpaused():
154.     state=vlcplayer.state()
155.     if str(state)=="State.Paused":
156.         currentstate=True
157.     else:
158.         currentstate=False
159.     return currentstate
160. 
161. #Function to control Sonoff Tasmota Devices
162. def tasmota_control(phrase,devname,devip,devportid):
163.     try:
164.         if custom_action_keyword['Dict']['On'] in phrase:
165.             rq=requests.head("http://"+devip+"/cm?cmnd=Power"+devportid+"%20on")
166.             say("Tunring on "+devname)
167.         elif custom_action_keyword['Dict']['Off'] in phrase:
168.             rq=requests.head("http://"+devip+"/cm?cmnd=Power"+devportid+"%20off")
169.             say("Tunring off "+devname)
170.     except requests.exceptions.ConnectionError:
171.         say("Device not online")
172. 
173. #Check if custom wakeword has been enabled
174. if configuration['Wakewords']['Custom_Wakeword']=='Enabled':
175.     custom_wakeword=True
176. else:
177.     custom_wakeword=False
178. 
179. models=configuration['Wakewords']['Custom_wakeword_models']
180. 
181. #Custom Conversation
182. numques=len(configuration['Conversation']['question'])
183. numans=len(configuration['Conversation']['answer'])
184. 
185. class Myassistant():
186. 
187.     def __init__(self):
188.         self.interrupted=False
189.         self.can_start_conversation=False
190.         self.assistant=None
191.         self.sensitivity = [0.5]*len(models)
192.         self.callbacks = [self.detected]*len(models)
193.         self.detector = snowboydecoder.HotwordDetector(models, sensitivity=self.sensitivity)
194.         self.mutestatus=False
195.         self.interpreter=False
196.         self.interpconvcounter=0
197.         self.interpcloudlang1=language
198.         self.interpttslang1=translanguage
199.         self.interpcloudlang2=''
200.         self.interpttslang2=''
201.         self.singleresposne=False
202.         self.singledetectedresponse=''
203.         self.t1 = Thread(target=self.start_detector)
204.         if GPIOcontrol:
205.             self.t2 = Thread(target=self.pushbutton)
206.         if configuration['MQTT']['MQTT_Control']=='Enabled':
207.             self.t3 = Thread(target=self.mqtt_start)
208.         if irreceiver!=None:
209.             self.t4 = Thread(target=self.ircommands)
210.         if configuration['ADAFRUIT_IO']['ADAFRUIT_IO_CONTROL']=='Enabled':
211.             self.t5 = Thread(target=self.adafruit_mqtt_start)
212. 
213.     def signal_handler(self,signal, frame):
214.         self.interrupted = True
215. 
216.     def interrupt_callback(self,):
217.         return self.interrupted
218. 
219.     def buttonsinglepress(self):
220.         if os.path.isfile("{}/.mute".format(USER_PATH)):
221.             os.system("sudo rm {}/.mute".format(USER_PATH))
222.             assistantindicator('unmute')
223.             if configuration['Wakewords']['Ok_Google']=='Disabled':
224.                 self.assistant.set_mic_mute(True)
225.                 print("Mic is open, but Ok-Google is disabled")
226.             else:
227.                 self.assistant.set_mic_mute(False)
228.             # if custom_wakeword:
229.             #     self.t1.start()
230.                 print("Turning on the microphone")
231.         else:
232.             open('{}/.mute'.format(USER_PATH), 'a').close()
233.             assistantindicator('mute')
234.             self.assistant.set_mic_mute(True)
235.             # if custom_wakeword:
236.             #     self.thread_end(t1)
237.             print("Turning off the microphone")
238. 
239.     def buttondoublepress(self):
240.         print('Stopped')
241.         stop()
242. 
243.     def buttontriplepress(self):
244.         print("Create your own action for button triple press")
245. 
246.     def pushbutton(self):
247.         if GPIOcontrol:
248.             while mutestopbutton:
249.                 time.sleep(.1)
250.                 if GPIO.event_detected(stoppushbutton):
251.                     GPIO.remove_event_detect(stoppushbutton)
252.                     now = time.time()
253.                     count = 1
254.                     GPIO.add_event_detect(stoppushbutton,GPIO.RISING)
255.                     while time.time() < now + 1:
256.                          if GPIO.event_detected(stoppushbutton):
257.                              count +=1
258.                              time.sleep(.25)
259.                     if count == 2:
260.                         self.buttonsinglepress()
261.                         GPIO.remove_event_detect(stoppushbutton)
262.                         GPIO.add_event_detect(stoppushbutton,GPIO.FALLING)
263.                     elif count == 3:
264.                         self.buttondoublepress()
265.                         GPIO.remove_event_detect(stoppushbutton)
266.                         GPIO.add_event_detect(stoppushbutton,GPIO.FALLING)
267.                     elif count == 4:
268.                         self.buttontriplepress()
269.                         GPIO.remove_event_detect(stoppushbutton)
270.                         GPIO.add_event_detect(stoppushbutton,GPIO.FALLING)
271. 
272. 
273.     def process_device_actions(self,event, device_id):
274.         if 'inputs' in event.args:
275.             for i in event.args['inputs']:
276.                 if i['intent'] == 'action.devices.EXECUTE':
277.                     for c in i['payload']['commands']:
278.                         for device in c['devices']:
279.                             if device['id'] == device_id:
280.                                 if 'execution' in c:
281.                                     for e in c['execution']:
282.                                         if 'params' in e:
283.                                             yield e['command'], e['params']
284.                                         else:
285.                                             yield e['command'], None
286. 
287. 
288.     def process_event(self,event):
289.         """Pretty prints events.
290.         Prints all events that occur with two spaces between each new
291.         conversation and a single space between turns of a conversation.
292.         Args:
293.             event(event.Event): The current event to process.
294.         """
295.         print(event)
296.         print()
297.         if event.type == EventType.ON_MUTED_CHANGED:
298.             self.mutestatus=event.args["is_muted"]
299. 
300.         if event.type == EventType.ON_START_FINISHED:
301.             self.can_start_conversation = True
302.             if GPIOcontrol:
303.                 self.t2.start()
304.             if os.path.isfile("{}/.mute".format(USER_PATH)):
305.                 assistantindicator('mute')
306.             if (configuration['Wakewords']['Ok_Google']=='Disabled' or os.path.isfile("{}/.mute".format(USER_PATH))):
307.                 self.assistant.set_mic_mute(True)
308.             if custom_wakeword:
309.                 self.t1.start()
310.             if configuration['MQTT']['MQTT_Control']=='Enabled':
311.                 self.t3.start()
312.             if irreceiver!=None:
313.                 self.t4.start()
314.             if configuration['ADAFRUIT_IO']['ADAFRUIT_IO_CONTROL']=='Enabled':
315.                 self.t5.start()
316. 
317.         if event.type == EventType.ON_CONVERSATION_TURN_STARTED:
318.             subprocess.Popen(["aplay", "{}/sample-audio-files/Fb.wav".format(ROOT_PATH)], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
319.             self.can_start_conversation = False
320.             if kodicontrol:
321.                 try:
322.                     status=mutevolstatus()
323.                     vollevel=status[1]
324.                     with open('{}/.volume.json'.format(USER_PATH), 'w') as f:
325.                            json.dump(vollevel, f)
326.                     kodi.Application.SetVolume({"volume": 0})
327.                     kodi.GUI.ShowNotification({"title": "", "message": ".....Listening.....", "image": "{}/GoogleAssistantImages/GoogleAssistantBarsTransparent.gif".format(ROOT_PATH)})
328.                 except requests.exceptions.ConnectionError:
329.                     print("Kodi TV box not online")
330. 
331.             if GPIOcontrol:
332.                 assistantindicator('listening')
333.             if vlcplayer.is_vlc_playing():
334.                 if os.path.isfile("{}/.mediavolume.json".format(USER_PATH)):
335.                     try:
336.                         with open('{}/.mediavolume.json'.format(USER_PATH), 'r') as vol:
337.                             volume = json.load(vol)
338.                         vlcplayer.set_vlc_volume(15)
339.                     except json.decoder.JSONDecodeError:
340.                         currentvolume=vlcplayer.get_vlc_volume()
341.                         print(currentvolume)
342.                         with open('{}/.mediavolume.json'.format(USER_PATH), 'w') as vol:
343.                            json.dump(currentvolume, vol)
344.                         vlcplayer.set_vlc_volume(15)
345.                 else:
346.                     currentvolume=vlcplayer.get_vlc_volume()
347.                     print(currentvolume)
348.                     with open('{}/.mediavolume.json'.format(USER_PATH), 'w') as vol:
349.                        json.dump(currentvolume, vol)
350.                     vlcplayer.set_vlc_volume(15)
351. 
352.         if (event.type == EventType.ON_CONVERSATION_TURN_TIMEOUT or event.type == EventType.ON_NO_RESPONSE):
353.             self.can_start_conversation = True
354.             if GPIOcontrol:
355.                 assistantindicator('off')
356.             if kodicontrol:
357.                 try:
358.                     with open('{}/.volume.json'.format(USER_PATH), 'r') as f:
359.                            vollevel = json.load(f)
360.                            kodi.Application.SetVolume({"volume": vollevel})
361.                 except requests.exceptions.ConnectionError:
362.                     print("Kodi TV box not online")
363. 
364.             if (configuration['Wakewords']['Ok_Google']=='Disabled' or os.path.isfile("{}/.mute".format(USER_PATH))):
365.                   self.assistant.set_mic_mute(True)
366.             if os.path.isfile("{}/.mute".format(USER_PATH)):
367.                 if GPIOcontrol:
368.                     assistantindicator('mute')
369.             if vlcplayer.is_vlc_playing():
370.                 with open('{}/.mediavolume.json'.format(USER_PATH), 'r') as vol:
371.                     oldvolume = json.load(vol)
372.                 vlcplayer.set_vlc_volume(int(oldvolume))
373. 
374.         if (event.type == EventType.ON_RESPONDING_STARTED and event.args and not event.args['is_error_response']):
375.             if GPIOcontrol:
376.                 assistantindicator('speaking')
377. 
378.         if event.type == EventType.ON_RESPONDING_FINISHED:
379.             if GPIOcontrol:
380.                 assistantindicator('off')
381. 
382.         if event.type == EventType.ON_RECOGNIZING_SPEECH_FINISHED:
383.             if GPIOcontrol:
384.                 assistantindicator('off')
385.             if self.singleresposne:
386.                 self.assistant.stop_conversation()
387.                 self.singledetectedresponse= event.args["text"]
388.             else:
389.                 usrcmd=event.args["text"]
390.                 self.custom_command(usrcmd)
391.                 if kodicontrol:
392.                     try:
393.                         kodi.GUI.ShowNotification({"title": "", "message": event.args["text"], "image": "{}/GoogleAssistantImages/GoogleAssistantDotsTransparent.gif".format(ROOT_PATH)})
394.                     except requests.exceptions.ConnectionError:
395.                         print("Kodi TV box not online")
396. 
397.         if event.type == EventType.ON_RENDER_RESPONSE:
398.             if GPIOcontrol:
399.                 assistantindicator('off')
400.             if kodicontrol:
401.                 try:
402.                     kodi.GUI.ShowNotification({"title": "", "message": event.args["text"], "image": "{}/GoogleAssistantImages/GoogleAssistantTransparent.gif".format(ROOT_PATH),"displaytime": 20000})
403.                 except requests.exceptions.ConnectionError:
404.                     print("Kodi TV box not online")
405. 
406.         if (event.type == EventType.ON_CONVERSATION_TURN_FINISHED and
407.                 event.args and not event.args['with_follow_on_turn']):
408.             self.can_start_conversation = True
409.             if GPIOcontrol:
410.                 assistantindicator('off')
411.             if (configuration['Wakewords']['Ok_Google']=='Disabled' or os.path.isfile("{}/.mute".format(USER_PATH))):
412.                 self.assistant.set_mic_mute(True)
413.             if os.path.isfile("{}/.mute".format(USER_PATH)):
414.                 if GPIOcontrol:
415.                     assistantindicator('mute')
416.             if kodicontrol:
417.                 try:
418.                     with open('{}/.volume.json'.format(USER_PATH), 'r') as f:
419.                         vollevel = json.load(f)
420.                         kodi.Application.SetVolume({"volume": vollevel})
421.                 except requests.exceptions.ConnectionError:
422.                     print("Kodi TV box not online")
423. 
424.             if vlcplayer.is_vlc_playing():
425.                 with open('{}/.mediavolume.json'.format(USER_PATH), 'r') as vol:
426.                     oldvolume= json.load(vol)
427.                 vlcplayer.set_vlc_volume(int(oldvolume))
428. 
429.         if event.type == EventType.ON_DEVICE_ACTION:
430.             for command, params in event.actions:
431.                 print('Do command', command, 'with params', str(params))
432. 
433. 
434.     def register_device(self,project_id, credentials, device_model_id, device_id):
435.         """Register the device if needed.
436.         Registers a new assistant device if an instance with the given id
437.         does not already exists for this model.
438.         Args:
439.            project_id(str): The project ID used to register device instance.
440.            credentials(google.oauth2.credentials.Credentials): The Google
441.                     OAuth2 credentials of the user to associate the device
442.                     instance with.
443.            device_model_id: The registered device model ID.
444.            device_id: The device ID of the new instance.
445.         """
446.         base_url = '/'.join([DEVICE_API_URL, 'projects', project_id, 'devices'])
447.         device_url = '/'.join([base_url, device_id])
448.         session = google.auth.transport.requests.AuthorizedSession(credentials)
449.         r = session.get(device_url)
450.         print(device_url, r.status_code)
451.         if r.status_code == 404:
452.             print('Registering....')
453.             r = session.post(base_url, data=json.dumps({
454.                 'id': device_id,
455.                 'model_id': device_model_id,
456.                 'client_type': 'SDK_LIBRARY'
457.             }))
458.             if r.status_code != 200:
459.                 raise Exception('failed to register device: ' + r.text)
460.             print('\rDevice registered.')
461. 
462. 
463.     def detected(self):
464.         if self.can_start_conversation == True:
465.             if self.mutestatus:
466.                 self.assistant.set_mic_mute(False)
467.                 time.sleep(1)
468.                 self.assistant.start_conversation()
469.             if not self.mutestatus:
470.                 self.assistant.start_conversation()
471.             print('Assistant is listening....')
472. 
473.     def start_detector(self):
474.         self.detector.start(detected_callback=self.callbacks,
475.             interrupt_check=self.interrupt_callback,
476.             sleep_time=0.03)
477. 
478.     def on_connect(self, client, userdata, flags, rc):
479.         print("Connected with result code "+str(rc))
480.         client.subscribe(configuration['MQTT']['TOPIC'])
481. 
482.     def on_message(self, client, userdata, msg):
483.         if self.can_start_conversation == True:
484.             print("Message from MQTT: "+str(msg.payload.decode('utf-8')))
485.             mqtt_query=str(msg.payload.decode('utf-8'))
486.             if 'custom' in mqtt_query.lower():
487.                 mqtt_query=mqtt_query.lower()
488.                 mqtt_queryidx=mqtt_query.find('custom')
489.                 mqtt_query=mqtt_query[mqtt_queryidx:]
490.                 mqtt_query=mqtt_query.replace('custom',"",1)
491.                 mqtt_query=mqtt_query.strip()
492.                 self.custom_command(mqtt_query)
493.             elif mqtt_query.lower() == 'mute':
494.                 self.buttonsinglepress()
495.             else:
496.                 self.assistant.send_text_query(mqtt_query)
497. 
498.     def mqtt_start(self):
499.         client = mqtt.Client()
500.         client.on_connect = self.on_connect
501.         client.on_message = self.on_message
502.         client.username_pw_set(configuration['MQTT']['UNAME'], configuration['MQTT']['PSWRD'])
503.         client.connect(configuration['MQTT']['IP'], 1883, 60)
504.         client.loop_forever()
505. 
506.     def adafruit_connected(self,client):
507.         print('Connected to Adafruit IO!  Listening for {0} changes...'.format(configuration['ADAFRUIT_IO']['FEEDNAME']))
508.         client.subscribe(configuration['ADAFRUIT_IO']['FEEDNAME'])
509. 
510.     def adafruit_disconnected(self,client):
511.         print('Disconnected from Adafruit IO!')
512. 
513.     def adafruit_message(self,client, feed_id, payload):
514.         if self.can_start_conversation == True:
515.             print("Message from ADAFRUIT MQTT: "+str(payload))
516.             adafruit_mqtt_query=str(payload)
517.             self.custom_command(adafruit_mqtt_query)
518. 
519.     def adafruit_mqtt_start(self):
520.         if configuration['ADAFRUIT_IO']['ADAFRUIT_IO_CONTROL']=='Enabled':
521.             client = MQTTClient(configuration['ADAFRUIT_IO']['ADAFRUIT_IO_USERNAME'], configuration['ADAFRUIT_IO']['ADAFRUIT_IO_KEY'])
522.             client.on_connect    = self.adafruit_connected
523.             client.on_disconnect = self.adafruit_disconnected
524.             client.on_message    = self.adafruit_message
525.             client.connect()
526.             client.loop_blocking()
527.         else:
528.             print("Adafruit_io MQTT client not enabled")
529. 
530.     def ircommands(self):
531.         if irreceiver!=None:
532.             try:
533.                 print("IR Sensor Started")
534.                 while True:
535.                     time.sleep(.1)
536.                     #print("Listening for IR Signal on GPIO "+irreceiver)
537.                     GPIO.wait_for_edge(irreceiver, GPIO.FALLING)
538.                     code = on_ir_receive(irreceiver)
539.                     if code:
540.                         if self.can_start_conversation == True:
541.                             for codenum, usercode in enumerate(configuration['IR']['Codes']):
542.                                 if usercode==code:
543.                                     if 'custom' in (configuration['IR']['Commands'][codenum]).lower():
544.                                         self.custom_command((configuration['IR']['Commands'][codenum]).lower())
545.                                     elif 'start conversation' in (configuration['IR']['Commands'][codenum]).lower():
546.                                         self.assistant.start_conversation()
547.                                     elif 'mute' in (configuration['IR']['Commands'][codenum]).lower():
548.                                         self.buttonsinglepress()
549.                                     else:
550.                                         self.assistant.send_text_query(configuration['IR']['Commands'][codenum])
551.                                     break
552.             except KeyboardInterrupt:
553.                 pass
554.             except RuntimeError:
555.                 pass
556.             print("Stopping IR Sensor")
557. 
558.     def cloud_speech_transcribe(self,speech_file,language):
559.         client = speech.SpeechClient()
560.         with io.open(speech_file, 'rb') as audio_file:
561.             content = audio_file.read()
562.         audio = types.RecognitionAudio(content=content)
563.         config = types.RecognitionConfig(
564.             encoding=enums.RecognitionConfig.AudioEncoding.LINEAR16,
565.             sample_rate_hertz=44100,
566.             language_code=language)
567.         response = client.recognize(config, audio)
568.         for result in response.results:
569.             transcribedtext=u'{}'.format(result.alternatives[0].transcript)
570.         return transcribedtext
571. 
572.     def interpreter_mode_trigger(self,switch):
573.         if configuration['Speechtotext']['Google_Cloud_Speech']['Cloud_Speech_Control']=='Disabled':
574.             say("Cloud speech has not been enabled")
575.         else:
576.             if not os.environ.get("GOOGLE_APPLICATION_CREDENTIALS", ""):
577.                 if configuration['Speechtotext']['Google_Cloud_Speech']['Google_Cloud_Speech_Credentials_Path']!="ENTER THE PATH TO YOUR CLOUD SPEECH CREDENTIALS FILE HERE":
578.                     os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = configuration['Speechtotext']['Google_Cloud_Speech']['Google_Cloud_Speech_Credentials_Path']
579.                     if switch=="Start":
580.                         self.interpreter=True
581.                         say("Starting interpreter.")
582.                         self.interpreter_speech_recorder()
583.                     elif switch=="Stop":
584.                         self.interpreter=False
585.                         self.interpconvcounter=0
586.                         say("Stopping interpreter.")
587.                     else:
588.                         self.interpreter=False
589.             else:
590.                 if switch=="Start":
591.                     self.interpreter=True
592.                     say("Starting interpreter.")
593.                     self.interpreter_speech_recorder()
594.                 elif switch=="Stop":
595.                     self.interpreter=False
596.                     self.interpconvcounter=0
597.                     say("Stopping interpreter.")
598.                 else:
599.                     self.interpreter=False
600. 
601.     def interpreter_speech_recorder(self):
602.         if self.interpreter:
603.             interpreteraudio='/tmp/interpreter.wav'
604.             subprocess.Popen(["aplay", "{}/sample-audio-files/Fb.wav".format(ROOT_PATH)], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
605.             while not record_to_file(interpreteraudio):
606.                 time.sleep(.1)
607.             if (self.interpconvcounter % 2)==0:
608.                 text=self.cloud_speech_transcribe(interpreteraudio,self.interpcloudlang1)
609.                 print("Local Speaker: "+text)
610.                 if 'stop' in text.lower():
611.                     self.interpreter_mode_trigger('Stop')
612.             elif (self.interpconvcounter % 2)==1:
613.                 text=self.cloud_speech_transcribe(interpreteraudio,self.interpcloudlang2)
614.                 print("Foreign Speaker: "+text)
615.             self.interpreter_mode_tts(text,self.interpconvcounter)
616.         else:
617.             say("Interpreter not active.")
618. 
619.     def interpreter_mode_tts(self,text,count):
620.         self.interpconvcounter=self.interpconvcounter+1
621.         if (count % 2)==0:
622.             say(text,self.interpttslang1,self.interpttslang2)
623.             self.interpreter_speech_recorder()
624.         else:
625.             say(text,self.interpttslang2,self.interpttslang1)
626.             self.interpreter_speech_recorder()
627. 
628.     def voicenote_recording(self):
629.         recordfilepath='/tmp/audiorecord.wav'
630.         subprocess.Popen(["aplay", "{}/sample-audio-files/Fb.wav".format(ROOT_PATH)], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
631.         while not record_to_file(recordfilepath):
632.             time.sleep(.1)
633.         voicenote(recordfilepath)
634. 
635.     def single_user_response(self,prompt):
636.         self.singledetectedresponse=''
637.         self.singleresposne=True
638.         say(prompt)
639.         self.assistant.start_conversation()
640.         while self.singledetectedresponse=='':
641.             time.sleep(.1)
642.         self.singleresposne=False
643.         return self.singledetectedresponse
644. 
645.     def custom_command(self,usrcmd):
646.         if configuration['Script']['Script_Control']=='Enabled':
647.             if 'script'.lower() in str(usrcmd).lower():
648.                 script(str(usrcmd).lower())
649.         
650.         if configuration['Wemo']['Wemo_Control']=='Enabled':
651.             for i in range(0,len(configuration['Wemo']['Wemo_Devices']['Device_Names'])):
652.                 if configuration['Wemo']['Wemo_Devices']['Device_Names'][i].lower() in usrcmd.lower():
653.                     self.assistant.stop_conversation()
654.                     wemocontrol(usrcmd)
655.                 break
656. 
657.         if configuration['DIYHUE']['DIYHUE_Control']=='Enabled':
658.             if os.path.isfile('/opt/hue-emulator/config.json'):
659.                 with open('/opt/hue-emulator/config.json', 'r') as config:
660.                      hueconfig = json.load(config)
661.                 for i in range(1,len(hueconfig['lights'])+1):
662.                     try:
663.                         if str(hueconfig['lights'][str(i)]['name']).lower() in str(usrcmd).lower():
664.                             self.assistant.stop_conversation()
665.                             hue_control(str(usrcmd).lower(),str(i),str(hueconfig['lights_address'][str(i)]['ip']))
666.                             break
667.                     except Keyerror:
668.                         say('Unable to help, please check your config file')
669.         if configuration['Tasmota_devicelist']['Tasmota_Control']=='Enabled':
670.             for num, name in enumerate(tasmota_devicelist):
671.                 if name.lower() in str(usrcmd).lower():
672.                     self.assistant.stop_conversation()
673.                     tasmota_control(str(usrcmd).lower(), name.lower(),tasmota_deviceip[num],tasmota_deviceportid[num])
674.         if configuration['Conversation']['Conversation_Control']=='Enabled':
675.             for i in range(1,numques+1):
676.                 try:
677.                     if str(configuration['Conversation']['question'][i][0]).lower() in str(usrcmd).lower():
678.                         self.assistant.stop_conversation()
679.                         selectedans=random.sample(configuration['Conversation']['answer'][i],1)
680.                         say(selectedans[0])
681.                         break
682.                 except Keyerror:
683.                     say('Please check if the number of questions matches the number of answers')
684. 
685.         if Domoticz_Device_Control==True and len(domoticz_devices['result'])>0:
686.             if len(configuration['Domoticz']['Devices']['Name'])==len(configuration['Domoticz']['Devices']['Id']):
687.                 for i in range(0,len(configuration['Domoticz']['Devices']['Name'])):
688.                     if str(configuration['Domoticz']['Devices']['Name'][i]).lower() in str(usrcmd).lower():
689.                         self.assistant.stop_conversation()
690.                         domoticz_control(str(usrcmd).lower(),configuration['Domoticz']['Devices']['Id'][i],configuration['Domoticz']['Devices']['Name'][i])
691.                         break
692.             else:
693.                 say("Number of devices and the number of ids given in config file do not match")
694. 
695.         if (custom_action_keyword['Keywords']['Magic_mirror'][0]).lower() in str(usrcmd).lower():
696.             self.assistant.stop_conversation()
697.             try:
698.                 mmmcommand=str(usrcmd).lower()
699.                 if 'weather'.lower() in mmmcommand:
700.                     if 'show'.lower() in mmmcommand:
701.                         mmreq_one=requests.get("http://"+mmmip+":8080/remote?action=SHOW&module=module_2_currentweather")
702.                         mmreq_two=requests.get("http://"+mmmip+":8080/remote?action=SHOW&module=module_3_currentweather")
703.                     if 'hide'.lower() in mmmcommand:
704.                         mmreq_one=requests.get("http://"+mmmip+":8080/remote?action=HIDE&module=module_2_currentweather")
705.                         mmreq_two=requests.get("http://"+mmmip+":8080/remote?action=HIDE&module=module_3_currentweather")
706.                 if 'power off'.lower() in mmmcommand:
707.                     mmreq=requests.get("http://"+mmmip+":8080/remote?action=SHUTDOWN")
708.                 if 'reboot'.lower() in mmmcommand:
709.                     mmreq=requests.get("http://"+mmmip+":8080/remote?action=REBOOT")
710.                 if 'restart'.lower() in mmmcommand:
711.                     mmreq=requests.get("http://"+mmmip+":8080/remote?action=RESTART")
712.                 if 'display on'.lower() in mmmcommand:
713.                     mmreq=requests.get("http://"+mmmip+":8080/remote?action=MONITORON")
714.                 if 'display off'.lower() in mmmcommand:
715.                     mmreq=requests.get("http://"+mmmip+":8080/remote?action=MONITOROFF")
716.             except requests.exceptions.ConnectionError:
717.                 say("Magic mirror not online")
718.         if (custom_action_keyword['Keywords']['Recipe_pushbullet'][0]).lower() in str(usrcmd).lower():
719.             self.assistant.stop_conversation()
720.             ingrequest=str(usrcmd).lower()
721.             ingredientsidx=ingrequest.find('for')
722.             ingrequest=ingrequest[ingredientsidx:]
723.             ingrequest=ingrequest.replace('for',"",1)
724.             ingrequest=ingrequest.replace("'}","",1)
725.             ingrequest=ingrequest.strip()
726.             ingrequest=ingrequest.replace(" ","%20",1)
727.             getrecipe(ingrequest)
728.         if configuration['Pushbullet']['Pushbullet_Control']=='Enabled':
729.             if (custom_action_keyword['Keywords']['Send_Message'][0]).lower() in str(usrcmd).lower():
730.                 self.assistant.stop_conversation()
731.                 say("What is your message?")
732.                 self.voicenote_recording()
733.         if (custom_action_keyword['Keywords']['Kickstarter_tracking'][0]).lower() in str(usrcmd).lower():
734.             self.assistant.stop_conversation()
735.             kickstarter_tracker(str(usrcmd).lower())
736.         if configuration['Raspberrypi_GPIO_Control']['GPIO_Control']=='Enabled':
737.             if (custom_action_keyword['Keywords']['Pi_GPIO_control'][0]).lower() in str(usrcmd).lower():
738.                 self.assistant.stop_conversation()
739.                 Action(str(usrcmd).lower())
740.         if configuration['YouTube']['YouTube_Control']=='Enabled':
741.             if (custom_action_keyword['Keywords']['YouTube_music_stream'][0]).lower() in str(usrcmd).lower() and 'kodi' not in str(usrcmd).lower() and 'chromecast' not in str(usrcmd).lower():
742.                 self.assistant.stop_conversation()
743.                 vlcplayer.stop_vlc()
744.                 if not Youtube_credentials:
745.                     say("Hey, you need to enter your google cloud api in the config file first.")
746.                 else:
747.                     if 'autoplay'.lower() in str(usrcmd).lower():
748.                         YouTube_Autoplay(str(usrcmd).lower())
749.                     else:
750.                         YouTube_No_Autoplay(str(usrcmd).lower())
751.         if (custom_action_keyword['Keywords']['Stop_music'][0]).lower() in str(usrcmd).lower():
752.             stop()
753.         if configuration['Notify_TTS']['Notify_TTS_Control']=='Enabled':
754.             if (custom_action_keyword['Keywords']['notify_TTS'][0]).lower() in str(usrcmd).lower():
755.                 self.assistant.stop_conversation()
756.                 notify_tts(str(usrcmd).lower())
757.         if configuration['Radio_stations']['Radio_Control']=='Enabled':
758.             if 'radio'.lower() in str(usrcmd).lower():
759.                 self.assistant.stop_conversation()
760.                 vlcplayer.stop_vlc()
761.                 radio(str(usrcmd).lower())
762.         if configuration['ESP']['ESP_Control']=='Enabled':
763.             if (custom_action_keyword['Keywords']['ESP_control'][0]).lower() in str(usrcmd).lower():
764.                 self.assistant.stop_conversation()
765.                 ESP(str(usrcmd).lower())
766.         if (custom_action_keyword['Keywords']['Parcel_tracking'][0]).lower() in str(usrcmd).lower():
767.             self.assistant.stop_conversation()
768.             track()
769.         if (custom_action_keyword['Keywords']['RSS'][0]).lower() in str(usrcmd).lower() or (custom_action_keyword['Keywords']['RSS'][1]).lower() in str(usrcmd).lower():
770.             self.assistant.stop_conversation()
771.             feed(str(usrcmd).lower())
772.         if kodicontrol:
773.             try:
774.                 if (custom_action_keyword['Keywords']['Kodi_actions'][0]).lower() in str(usrcmd).lower():
775.                     self.assistant.stop_conversation()
776.                     kodiactions(str(usrcmd).lower())
777.             except requests.exceptions.ConnectionError:
778.                 say("Kodi TV box not online")
779.         # Google Assistant now comes built in with chromecast control, so custom function has been commented
780.         # if 'chromecast'.lower() in str(usrcmd).lower():
781.         #     self.assistant.stop_conversation()
782.         #     if 'play'.lower() in str(usrcmd).lower():
783.         #         chromecast_play_video(str(usrcmd).lower())
784.         #     else:
785.         #         chromecast_control(usrcmd)
786.         if (custom_action_keyword['Keywords']['Pause_resume'][0]).lower() in str(usrcmd).lower() or (custom_action_keyword['Keywords']['Pause_resume'][1]).lower() in str(usrcmd).lower():
787.             self.assistant.stop_conversation()
788.             if vlcplayer.is_vlc_playing():
789.                 if (custom_action_keyword['Keywords']['Pause_resume'][0]).lower() in str(usrcmd).lower():
790.                     vlcplayer.pause_vlc()
791.             if checkvlcpaused():
792.                 if (custom_action_keyword['Keywords']['Pause_resume'][1]).lower() in str(usrcmd).lower():
793.                     vlcplayer.play_vlc()
794.             elif vlcplayer.is_vlc_playing()==False and checkvlcpaused()==False:
795.                 say("Sorry nothing is playing right now")
796.         if (custom_action_keyword['Keywords']['Track_change']['Next'][0]).lower() in str(usrcmd).lower() or (custom_action_keyword['Keywords']['Track_change']['Next'][1]).lower() in str(usrcmd).lower() or (custom_action_keyword['Keywords']['Track_change']['Next'][2]).lower() in str(usrcmd).lower():
797.             self.assistant.stop_conversation()
798.             if vlcplayer.is_vlc_playing() or checkvlcpaused()==True:
799.                 vlcplayer.stop_vlc()
800.                 vlcplayer.change_media_next()
801.             elif vlcplayer.is_vlc_playing()==False and checkvlcpaused()==False:
802.                 say("Sorry nothing is playing right now")
803.         if (custom_action_keyword['Keywords']['Track_change']['Previous'][0]).lower() in str(usrcmd).lower() or (custom_action_keyword['Keywords']['Track_change']['Previous'][1]).lower() in str(usrcmd).lower() or (custom_action_keyword['Keywords']['Track_change']['Previous'][2]).lower() in str(usrcmd).lower():
804.             self.assistant.stop_conversation()
805.             if vlcplayer.is_vlc_playing() or checkvlcpaused()==True:
806.                 vlcplayer.stop_vlc()
807.                 vlcplayer.change_media_previous()
808.             elif vlcplayer.is_vlc_playing()==False and checkvlcpaused()==False:
809.                 say("Sorry nothing is playing right now")
810.         if (custom_action_keyword['Keywords']['VLC_music_volume'][0]).lower() in str(usrcmd).lower():
811.             self.assistant.stop_conversation()
812.             if vlcplayer.is_vlc_playing()==True or checkvlcpaused()==True:
813.                 if (custom_action_keyword['Dict']['Set']).lower() in str(usrcmd).lower() or (custom_action_keyword['Dict']['Change']).lower() in str(usrcmd).lower():
814.                     if 'hundred'.lower() in str(usrcmd).lower() or custom_action_keyword['Dict']['Maximum'] in str(usrcmd).lower():
815.                         settingvollevel=100
816.                         with open('{}/.mediavolume.json'.format(USER_PATH), 'w') as vol:
817.                             json.dump(settingvollevel, vol)
818.                     elif 'zero'.lower() in str(usrcmd).lower() or custom_action_keyword['Dict']['Minimum'] in str(usrcmd).lower():
819.                         settingvollevel=0
820.                         with open('{}/.mediavolume.json'.format(USER_PATH), 'w') as vol:
821.                             json.dump(settingvollevel, vol)
822.                     else:
823.                         for settingvollevel in re.findall(r"[-+]?\d*\.\d+|\d+", str(usrcmd)):
824.                             with open('{}/.mediavolume.json'.format(USER_PATH), 'w') as vol:
825.                                 json.dump(settingvollevel, vol)
826.                     print('Setting volume to: '+str(settingvollevel))
827.                     vlcplayer.set_vlc_volume(int(settingvollevel))
828.                 elif (custom_action_keyword['Dict']['Increase']).lower() in str(usrcmd).lower() or (custom_action_keyword['Dict']['Decrease']).lower() in str(usrcmd).lower() or 'reduce'.lower() in str(usrcmd).lower():
829.                     if os.path.isfile("{}/.mediavolume.json".format(USER_PATH)):
830.                         try:
831.                             with open('{}/.mediavolume.json'.format(USER_PATH), 'r') as vol:
832.                                 oldvollevel = json.load(vol)
833.                                 for oldvollevel in re.findall(r'\b\d+\b', str(oldvollevel)):
834.                                     oldvollevel=int(oldvollevel)
835.                         except json.decoder.JSONDecodeError:
836.                             oldvollevel=vlcplayer.get_vlc_volume
837.                             for oldvollevel in re.findall(r"[-+]?\d*\.\d+|\d+", str(output)):
838.                                 oldvollevel=int(oldvollevel)
839.                     else:
840.                         oldvollevel=vlcplayer.get_vlc_volume
841.                         for oldvollevel in re.findall(r"[-+]?\d*\.\d+|\d+", str(output)):
842.                             oldvollevel=int(oldvollevel)
843.                     if (custom_action_keyword['Dict']['Increase']).lower() in str(usrcmd).lower():
844.                         if any(char.isdigit() for char in str(usrcmd)):
845.                             for changevollevel in re.findall(r'\b\d+\b', str(usrcmd)):
846.                                 changevollevel=int(changevollevel)
847.                         else:
848.                             changevollevel=10
849.                         newvollevel= oldvollevel+ changevollevel
850.                         print(newvollevel)
851.                         if int(newvollevel)>100:
852.                             settingvollevel=100
853.                         elif int(newvollevel)<0:
854.                             settingvollevel=0
855.                         else:
856.                             settingvollevel=newvollevel
857.                         with open('{}/.mediavolume.json'.format(USER_PATH), 'w') as vol:
858.                             json.dump(settingvollevel, vol)
859.                         print('Setting volume to: '+str(settingvollevel))
860.                         vlcplayer.set_vlc_volume(int(settingvollevel))
861.                     if (custom_action_keyword['Dict']['Decrease']).lower() in str(usrcmd).lower() or 'reduce'.lower() in str(usrcmd).lower():
862.                         if any(char.isdigit() for char in str(usrcmd)):
863.                             for changevollevel in re.findall(r'\b\d+\b', str(usrcmd)):
864.                                 changevollevel=int(changevollevel)
865.                         else:
866.                             changevollevel=10
867.                         newvollevel= oldvollevel - changevollevel
868.                         print(newvollevel)
869.                         if int(newvollevel)>100:
870.                             settingvollevel=100
871.                         elif int(newvollevel)<0:
872.                             settingvollevel=0
873.                         else:
874.                             settingvollevel=newvollevel
875.                         with open('{}/.mediavolume.json'.format(USER_PATH), 'w') as vol:
876.                             json.dump(settingvollevel, vol)
877.                         print('Setting volume to: '+str(settingvollevel))
878.                         vlcplayer.set_vlc_volume(int(settingvollevel))
879.                 else:
880.                     say("Sorry I could not help you")
881.             else:
882.                 say("Sorry nothing is playing right now")
883.         if (custom_action_keyword['Keywords']['Music_index_refresh'][0]).lower() in str(usrcmd).lower() and (custom_action_keyword['Keywords']['Music_index_refresh'][1]).lower() in str(usrcmd).lower():
884.             self.assistant.stop_conversation()
885.             refreshlists()
886.         if configuration['Gmusicapi']['Gmusic_Control']=='Enabled':
887.             if (custom_action_keyword['Keywords']['Google_music_streaming'][0]).lower() in str(usrcmd).lower():
888.                 self.assistant.stop_conversation()
889.                 vlcplayer.stop_vlc()
890.                 try:
891.                     gmusicselect(str(usrcmd).lower())
892.                 except Exception as e:
893.                     print(e)
894.                     say('Encountered an exception please check the logs.')
895.         if configuration['Spotify']['Spotify_Control']=='Enabled':
896.             if (custom_action_keyword['Keywords']['Spotify_music_streaming'][0]).lower() in str(usrcmd).lower():
897.                 self.assistant.stop_conversation()
898.                 vlcplayer.stop_vlc()
899.                 if not Spotify_credentials:
900.                     say("Hey, you need to enter your spotify credentials in the config file first.")
901.                 else:
902.                     spotify_playlist_select(str(usrcmd).lower())
903.         if configuration['Gaana']['Gaana_Control']=='Enabled':
904.             if (custom_action_keyword['Keywords']['Gaana_music_streaming'][0]).lower() in str(usrcmd).lower():
905.                 self.assistant.stop_conversation()
906.                 vlcplayer.stop_vlc()
907.                 gaana_playlist_select(str(usrcmd).lower())
908.         if configuration['Deezer']['Deezer_Control']=='Enabled':
909.             if (custom_action_keyword['Keywords']['Deezer_music_streaming'][0]).lower() in str(usrcmd).lower():
910.                 self.assistant.stop_conversation()
911.                 vlcplayer.stop_vlc()
912.                 deezer_playlist_select(str(usrcmd).lower())
913.         if configuration['Clickatell']['Clickatell_Control']=='Enabled':
914.             if (custom_action_keyword['Keywords']['Send_sms_clickatell'][0]).lower() in str(usrcmd).lower():
915.                 self.assistant.stop_conversation()
916.                 sendSMS(str(usrcmd).lower())
917.         if custom_action_keyword['Keywords']['Wemo_Discovery'][0].lower() in usrcmd.lower():
918.             self.assistant.stop_conversation()
919.             wemodiscovery()
920.         if 'interpreter' in str(usrcmd).lower():
921.             self.assistant.stop_conversation()
922.             reqlang=str(usrcmd).lower()
923.             reqlang=reqlang.replace('stop','',1)
924.             reqlang=reqlang.replace('start','',1)
925.             reqlang=reqlang.replace('interpreter','',1)
926.             reqlang=reqlang.strip()
927.             for i in range(0,len(langlist['Languages'])):
928.                 if str(langlist['Languages'][i][i][0]).lower()==reqlang:
929.                     self.interpcloudlang2=langlist['Languages'][i][i][1]
930.                     self.interpttslang2=langlist['Languages'][i][i][2]
931.                     if 'start' in str(usrcmd).lower():
932.                         self.interpreter_mode_trigger('Start')
933.                     else:
934.                         self.interpreter_mode_trigger('Stop')
935.                     break
936.             try:
937.                 for i in range(0,len(langlist['Languages'])):
938.                     if str(langlist['Languages'][i][i][0]).lower()==reqlang:
939.                         self.interpcloudlang2=langlist['Languages'][i][i][1]
940.                         self.interpttslang2=langlist['Languages'][i][i][2]
941.                         if 'start' in str(usrcmd).lower():
942.                             self.interpreter_mode_trigger('Start')
943.                         else:
944.                             self.interpreter_mode_trigger('Stop')
945.                         break
946.             except Exception as e:
947.                 print(e)
948.                 say('Encountered an exception please check the logs.')
949.            
950. 
951. 
952.     def main(self):
953.         parser = argparse.ArgumentParser(
954.             formatter_class=argparse.RawTextHelpFormatter)
955.         parser.add_argument('--device-model-id', '--device_model_id', type=str,
956.                             metavar='DEVICE_MODEL_ID', required=False,
957.                             help='the device model ID registered with Google')
958.         parser.add_argument('--project-id', '--project_id', type=str,
959.                             metavar='PROJECT_ID', required=False,
960.                             help='the project ID used to register this device')
961.         parser.add_argument('--nickname', type=str,
962.                         metavar='NICKNAME', required=False,
963.                         help='the nickname used to register this device')
964.         parser.add_argument('--device-config', type=str,
965.                             metavar='DEVICE_CONFIG_FILE',
966.                             default=os.path.join(
967.                                 os.path.expanduser('~/.config'),
968.                                 'googlesamples-assistant',
969.                                 'device_config_library.json'
970.                             ),
971.                             help='path to store and read device configuration')
972.         parser.add_argument('--credentials', type=existing_file,
973.                             metavar='OAUTH2_CREDENTIALS_FILE',
974.                             default=os.path.join(
975.                                 os.path.expanduser('~/.config'),
976.                                 'google-oauthlib-tool',
977.                                 'credentials.json'
978.                             ),
979.                             help='path to store and read OAuth2 credentials')
980.         parser.add_argument('--query', type=str,
981.                         metavar='QUERY',
982.                         help='query to send as soon as the Assistant starts')
983.         parser.add_argument('-v', '--version', action='version',
984.                             version='%(prog)s ' + Assistant.__version_str__())
985. 
986.         args = parser.parse_args()
987.         with open(args.credentials, 'r') as f:
988.             credentials = google.oauth2.credentials.Credentials(token=None,
989.                                                                 **json.load(f))
990. 
991.         device_model_id = None
992.         last_device_id = None
993.         try:
994.             with open(args.device_config) as f:
995.                 device_config = json.load(f)
996.                 device_model_id = device_config['model_id']
997.                 last_device_id = device_config.get('last_device_id', None)
998.         except FileNotFoundError:
999.             pass
1000. 
1001.         if not args.device_model_id and not device_model_id:
1002.             raise Exception('Missing --device-model-id option')
1003. 
1004.         # Re-register if "device_model_id" is given by the user and it differs
1005.         # from what we previously registered with.
1006.         should_register = (
1007.             args.device_model_id and args.device_model_id != device_model_id)
1008. 
1009.         device_model_id = args.device_model_id or device_model_id
1010.         with Assistant(credentials, device_model_id) as assistant:
1011.             self.assistant = assistant
1012.             if gender=='Male':
1013.                 subprocess.Popen(["aplay", "{}/sample-audio-files/Startup-Male.wav".format(ROOT_PATH)], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
1014.             else:
1015.                 subprocess.Popen(["aplay", "{}/sample-audio-files/Startup-Female.wav".format(ROOT_PATH)], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
1016.             events = assistant.start()
1017.             device_id = assistant.device_id
1018.             print('device_model_id:', device_model_id)
1019.             print('device_id:', device_id + '\n')
1020. 
1021.             # Re-register if "device_id" is different from the last "device_id":
1022.             if should_register or (device_id != last_device_id):
1023.                 if args.project_id:
1024.                     register_device(args.project_id, credentials,
1025.                                     device_model_id, device_id, args.nickname)
1026.                     pathlib.Path(os.path.dirname(args.device_config)).mkdir(
1027.                         exist_ok=True)
1028.                     with open(args.device_config, 'w') as f:
1029.                         json.dump({
1030.                             'last_device_id': device_id,
1031.                             'model_id': device_model_id,
1032.                         }, f)
1033.                 else:
1034.                     print(WARNING_NOT_REGISTERED)
1035. 
1036.             for event in events:
1037.                 if event.type == EventType.ON_START_FINISHED and args.query:
1038.                     assistant.send_text_query(args.query)
1039.                 self.process_event(event)
1040. 
1041.         if custom_wakeword:
1042.             self.detector.terminate()
1043. 
1044. 
1045. if __name__ == '__main__':
1046.     try:
1047.         Myassistant().main()
1048.     except Exception as error:
1049.         logging.exception(error)
shivasiddharth commented 4 years ago

You should change the __USER__ in the service file to pi. Make that change and go through the service installation process again. I automated all these things in the installation script.

Renison-Gohel commented 4 years ago

Hi, Thanks for your prompt responses. i made those changes and again go through headless startup as you told and now getting this..

pi@raspberrypi:~ $ sudo systemctl status gassistpi.service

● gassistpi.service - Google Assistant-Voice
   Loaded: loaded (/lib/systemd/system/gassistpi.service; enabled; vendor preset
   Active: active (running) since Tue 2020-08-11 13:12:09 IST; 3s ago
 Main PID: 2536 (python)
    Tasks: 1 (limit: 1944)
   CGroup: /system.slice/gassistpi.service
           └─2536 /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --pr

Aug 11 13:12:11 raspberrypi python[2536]: /home/pi/env/lib/python3.7/site-packag
Aug 11 13:12:11 raspberrypi python[2536]:   options=None, file=DESCRIPTOR),
Aug 11 13:12:11 raspberrypi python[2536]: /home/pi/env/lib/python3.7/site-packag
Aug 11 13:12:11 raspberrypi python[2536]:   index=0, containing_type=None, field
Aug 11 13:12:11 raspberrypi python[2536]: /home/pi/env/lib/python3.7/site-packag
Aug 11 13:12:11 raspberrypi python[2536]:   serialized_end=727,
Aug 11 13:12:11 raspberrypi python[2536]: /home/pi/env/lib/python3.7/site-packag
Aug 11 13:12:11 raspberrypi python[2536]:   options=None, file=DESCRIPTOR),
Aug 11 13:12:12 raspberrypi python[2536]: /home/pi/env/lib/python3.7/site-packag
Aug 11 13:12:12 raspberrypi python[2536]:   from collections import Mapping, Con
lines 1-18/18 (END)...skipping...
● gassistpi.service - Google Assistant-Voice
   Loaded: loaded (/lib/systemd/system/gassistpi.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2020-08-11 13:12:09 IST; 3s ago
 Main PID: 2536 (python)
    Tasks: 1 (limit: 1944)
   CGroup: /system.slice/gassistpi.service
           └─2536 /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --project_id assistantreni --device_model_id assistantreni-eaglesmarthub-gbvix6

Aug 11 13:12:11 raspberrypi python[2536]: /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:201: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descr
Aug 11 13:12:11 raspberrypi python[2536]:   options=None, file=DESCRIPTOR),
Aug 11 13:12:11 raspberrypi python[2536]: /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:215: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descr
Aug 11 13:12:11 raspberrypi python[2536]:   index=0, containing_type=None, fields=[]),
Aug 11 13:12:11 raspberrypi python[2536]: /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:218: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptor
Aug 11 13:12:11 raspberrypi python[2536]:   serialized_end=727,
Aug 11 13:12:11 raspberrypi python[2536]: /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:235: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descr
Aug 11 13:12:11 raspberrypi python[2536]:   options=None, file=DESCRIPTOR),
Aug 11 13:12:12 raspberrypi python[2536]: /home/pi/env/lib/python3.7/site-packages/validictory/validator.py:7: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 
Aug 11 13:12:12 raspberrypi python[2536]:   from collections import Mapping, Container

These python errors were also come before but GassistPi used to start and work normally even with these errors but now it is not. Now i can not start GassistPi manually with the command.

Here what i get when i tried to start GassistPi with manual command

pi@raspberrypi:~ $ /home/${USER}/env/bin/python -u /home/${USER}/GassistPi/src/main.py --device_model_id 'assistantreni-eaglesmarthub-gbvix6' --project_id 'assistantreni' 
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:35: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_pb=b'\n\x15google/api/http.proto\x12\ngoogle.api"T\n\x04Http\x12#\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRule\x12\'\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\x08"\x81\x02\n\x08HttpRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\r\n\x03get\x18\x02 \x01(\tH\x00\x12\r\n\x03put\x18\x03 \x01(\tH\x00\x12\x0e\n\x04post\x18\x04 \x01(\tH\x00\x12\x10\n\x06\x64\x65lete\x18\x05 \x01(\tH\x00\x12\x0f\n\x05patch\x18\x06 \x01(\tH\x00\x12/\n\x06\x63ustom\x18\x08 \x01(\x0b\x32\x1d.google.api.CustomHttpPatternH\x00\x12\x0c\n\x04\x62ody\x18\x07 \x01(\t\x12\x15\n\rresponse_body\x18\x0c \x01(\t\x12\x31\n\x13\x61\x64\x64itional_bindings\x18\x0b \x03(\x0b\x32\x14.google.api.HttpRuleB\t\n\x07pattern"/\n\x11\x43ustomHttpPattern\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\tBj\n\x0e\x63om.google.apiB\tHttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xf8\x01\x01\xa2\x02\x04GAPIb\x06proto3',
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:62: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:80: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:92: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=121,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:119: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:137: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:155: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:173: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:191: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:209: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:227: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:245: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:263: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:281: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:297: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  fields=[],
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:301: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=381,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:328: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:346: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:358: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=430,
/home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:42: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:64: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:39: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR],
/home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:66: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:84: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:102: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:114: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=144,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:48: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  google_dot_rpc_dot_status__pb2.DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:70: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:97: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:115: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:133: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:151: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:169: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:185: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  fields=[],
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:189: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=373,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:216: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:228: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=410,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:255: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:273: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:291: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:309: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:321: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=504,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:348: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:366: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:378: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=606,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:405: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:417: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=646,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:444: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:456: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=686,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:483: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:501: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:513: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=749,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:640: DeprecationWarning: Call to deprecated create function MethodDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_options=b"\202\323\344\223\002\027\022\025/v1/{name=operations}",
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:649: DeprecationWarning: Call to deprecated create function MethodDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_options=b"\202\323\344\223\002\032\022\030/v1/{name=operations/**}",
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:658: DeprecationWarning: Call to deprecated create function MethodDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_options=b"\202\323\344\223\002\032*\030/v1/{name=operations/**}",
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:667: DeprecationWarning: Call to deprecated create function MethodDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_options=b'\202\323\344\223\002$"\037/v1/{name=operations/**}:cancel:\001*',
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:667: DeprecationWarning: Call to deprecated create function ServiceDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_options=b'\202\323\344\223\002$"\037/v1/{name=operations/**}:cancel:\001*',
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:36: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_pb=b"\n\x15google/rpc/code.proto\x12\ngoogle.rpc*\xb7\x02\n\x04\x43ode\x12\x06\n\x02OK\x10\x00\x12\r\n\tCANCELLED\x10\x01\x12\x0b\n\x07UNKNOWN\x10\x02\x12\x14\n\x10INVALID_ARGUMENT\x10\x03\x12\x15\n\x11\x44\x45\x41\x44LINE_EXCEEDED\x10\x04\x12\r\n\tNOT_FOUND\x10\x05\x12\x12\n\x0e\x41LREADY_EXISTS\x10\x06\x12\x15\n\x11PERMISSION_DENIED\x10\x07\x12\x13\n\x0fUNAUTHENTICATED\x10\x10\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\x08\x12\x17\n\x13\x46\x41ILED_PRECONDITION\x10\t\x12\x0b\n\x07\x41\x42ORTED\x10\n\x12\x10\n\x0cOUT_OF_RANGE\x10\x0b\x12\x11\n\rUNIMPLEMENTED\x10\x0c\x12\x0c\n\x08INTERNAL\x10\r\x12\x0f\n\x0bUNAVAILABLE\x10\x0e\x12\r\n\tDATA_LOSS\x10\x0f\x42X\n\x0e\x63om.google.rpcB\tCodeProtoP\x01Z3google.golang.org/genproto/googleapis/rpc/code;code\xa2\x02\x03RPCb\x06proto3",
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:46: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="OK", index=0, number=0, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:49: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="CANCELLED", index=1, number=1, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:52: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="UNKNOWN", index=2, number=2, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:59: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:66: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:69: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="NOT_FOUND", index=5, number=5, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:72: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="ALREADY_EXISTS", index=6, number=6, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:79: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:86: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:93: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:100: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:103: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="ABORTED", index=11, number=10, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:106: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="OUT_OF_RANGE", index=12, number=11, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:113: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:116: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="INTERNAL", index=14, number=13, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:119: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="UNAVAILABLE", index=15, number=14, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:122: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="DATA_LOSS", index=16, number=15, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:128: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=349,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:32: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,])
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:45: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:49: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:53: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:57: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:61: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:65: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:69: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:73: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:78: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=1382,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:91: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:95: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:100: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=2140,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:118: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:125: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:139: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=423,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:156: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:163: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:177: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=571,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:194: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:201: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:215: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  index=0, containing_type=None, fields=[]),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:218: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=727,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:235: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/validictory/validator.py:7: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import Mapping, Container
/home/pi/env/lib/python3.7/site-packages/yaml/constructor.py:126: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  if not isinstance(key, collections.Hashable):
INFO:gmusicapi.Mobileclient1:!-- begin debug log --!
INFO:gmusicapi.Mobileclient1:version: 13.0.0
INFO:gmusicapi.Mobileclient1:logging to: /home/pi/.cache/gmusicapi/log/gmusicapi.log
INFO:gmusicapi.Mobileclient1:initialized
INFO:gmusicapi.Mobileclient1:logged out
/home/pi/env/lib/python3.7/site-packages/oauth2client/_helpers.py:255: UserWarning: Cannot access /home/pi/.local/share/gmusicapi/mobileclient.cred: No such file or directory
  warnings.warn(_MISSING_FILE_MESSAGE.format(filename))
2020-08-11 13:06:55,112 - gmusicapi.Mobileclient1 (shared:176) [WARNING]: could not retrieve oauth credentials from ''/home/pi/.local/share/gmusicapi/mobileclient.cred''
WARNING:gmusicapi.Mobileclient1:could not retrieve oauth credentials from ''/home/pi/.local/share/gmusicapi/mobileclient.cred''
INFO:gmusicapi.Mobileclient1:failed to authenticate
USB-MIC-HDMI
Initializing GPIOs 5 and 6 for assistant activity indication
Traceback (most recent call last):
  File "/home/pi/GassistPi/src/main.py", line 118, in <module>
    logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.DEBUG , filename='/tmp/GassistPi.log')
  File "/usr/lib/python3.7/logging/__init__.py", line 1900, in basicConfig
    h = FileHandler(filename, mode)
  File "/usr/lib/python3.7/logging/__init__.py", line 1092, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.7/logging/__init__.py", line 1121, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/tmp/GassistPi.log'

Do i need to install GassistPi again ( sudo ./GassistPi/scripts/gassist-installer.sh ) ?

Renison-Gohel commented 4 years ago

Sir, Do you need output of source env/bin/activate & pip3 freeze ?

shivasiddharth commented 4 years ago

Run the following and then check if the manual start works.

sudo systemctl stop gassistpi.service
sudo rm /tmp/GassistPi.log
Renison-Gohel commented 4 years ago

wow, After running these comand now i am able to start GassistPi manually.

Renison-Gohel commented 4 years ago

Now can i start systemctl gassistpi.service? Will it again create gassistpi.log file ?

shivasiddharth commented 4 years ago

Start the service and revert back.

Renison-Gohel commented 4 years ago

Still not starting after boot.

sudo systemctl status gassistpi.service

pi@raspberrypi:~ $ sudo systemctl status gassistpi.service
● gassistpi.service - Google Assistant-Voice
   Loaded: loaded (/lib/systemd/system/gassistpi.service; enabled; vendor preset
   Active: active (running) since Tue 2020-08-11 22:38:35 IST; 18s ago
 Main PID: 1116 (python)
    Tasks: 1 (limit: 1944)
   CGroup: /system.slice/gassistpi.service
           └─1116 /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --pr

Aug 11 22:38:53 raspberrypi python[1116]: INFO:gmusicapi.Mobileclient1:!-- begin
Aug 11 22:38:53 raspberrypi python[1116]: INFO:gmusicapi.Mobileclient1:version: 
Aug 11 22:38:53 raspberrypi python[1116]: INFO:gmusicapi.Mobileclient1:logging t
Aug 11 22:38:53 raspberrypi python[1116]: INFO:gmusicapi.Mobileclient1:initializ
Aug 11 22:38:53 raspberrypi python[1116]: INFO:gmusicapi.Mobileclient1:logged ou
Aug 11 22:38:53 raspberrypi python[1116]: /home/pi/env/lib/python3.7/site-packag
Aug 11 22:38:53 raspberrypi python[1116]:   warnings.warn(_MISSING_FILE_MESSAGE.
Aug 11 22:38:53 raspberrypi python[1116]: 2020-08-11 22:38:53,753 - gmusicapi.Mo
Aug 11 22:38:53 raspberrypi python[1116]: WARNING:gmusicapi.Mobileclient1:could 
Aug 11 22:38:53 raspberrypi python[1116]: INFO:gmusicapi.Mobileclient1:failed to
lines 1-18/18 (END)...skipping...
● gassistpi.service - Google Assistant-Voice
   Loaded: loaded (/lib/systemd/system/gassistpi.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2020-08-11 22:38:35 IST; 18s ago
 Main PID: 1116 (python)
    Tasks: 1 (limit: 1944)
   CGroup: /system.slice/gassistpi.service
           └─1116 /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --project_id assistantreni --device_model_id assistantreni-eaglesmarthub-gbvix6

Aug 11 22:38:53 raspberrypi python[1116]: INFO:gmusicapi.Mobileclient1:!-- begin debug log --!
Aug 11 22:38:53 raspberrypi python[1116]: INFO:gmusicapi.Mobileclient1:version: 13.0.0
Aug 11 22:38:53 raspberrypi python[1116]: INFO:gmusicapi.Mobileclient1:logging to: /home/pi/.cache/gmusicapi/log/gmusicapi.log
Aug 11 22:38:53 raspberrypi python[1116]: INFO:gmusicapi.Mobileclient1:initialized
Aug 11 22:38:53 raspberrypi python[1116]: INFO:gmusicapi.Mobileclient1:logged out
Aug 11 22:38:53 raspberrypi python[1116]: /home/pi/env/lib/python3.7/site-packages/oauth2client/_helpers.py:255: UserWarning: Cannot access /home/pi/.local/share/gmusicapi/mobileclient.cred: No such file or directory
Aug 11 22:38:53 raspberrypi python[1116]:   warnings.warn(_MISSING_FILE_MESSAGE.format(filename))
Aug 11 22:38:53 raspberrypi python[1116]: 2020-08-11 22:38:53,753 - gmusicapi.Mobileclient1 (shared:176) [WARNING]: could not retrieve oauth credentials from ''/home/pi/.local/share/gmusicapi/mobileclient.cred''
Aug 11 22:38:53 raspberrypi python[1116]: WARNING:gmusicapi.Mobileclient1:could not retrieve oauth credentials from ''/home/pi/.local/share/gmusicapi/mobileclient.cred''
Aug 11 22:38:53 raspberrypi python[1116]: INFO:gmusicapi.Mobileclient1:failed to authenticate

This is the output when i start GassistPi manually. It seems like gassistpi.log is created again.

pi@raspberrypi:~ $ /home/${USER}/env/bin/python -u /home/${USER}/GassistPi/src/main.py --device_model_id 'assistantreni-eaglesmarthub-gbvix6' --project_id 'assistantreni'
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:35: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_pb=b'\n\x15google/api/http.proto\x12\ngoogle.api"T\n\x04Http\x12#\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRule\x12\'\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\x08"\x81\x02\n\x08HttpRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\r\n\x03get\x18\x02 \x01(\tH\x00\x12\r\n\x03put\x18\x03 \x01(\tH\x00\x12\x0e\n\x04post\x18\x04 \x01(\tH\x00\x12\x10\n\x06\x64\x65lete\x18\x05 \x01(\tH\x00\x12\x0f\n\x05patch\x18\x06 \x01(\tH\x00\x12/\n\x06\x63ustom\x18\x08 \x01(\x0b\x32\x1d.google.api.CustomHttpPatternH\x00\x12\x0c\n\x04\x62ody\x18\x07 \x01(\t\x12\x15\n\rresponse_body\x18\x0c \x01(\t\x12\x31\n\x13\x61\x64\x64itional_bindings\x18\x0b \x03(\x0b\x32\x14.google.api.HttpRuleB\t\n\x07pattern"/\n\x11\x43ustomHttpPattern\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\tBj\n\x0e\x63om.google.apiB\tHttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xf8\x01\x01\xa2\x02\x04GAPIb\x06proto3',
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:62: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:80: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:92: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=121,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:119: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:137: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:155: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:173: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:191: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:209: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:227: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:245: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:263: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:281: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:297: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  fields=[],
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:301: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=381,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:328: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:346: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:358: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=430,
/home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:42: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:64: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:39: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR],
/home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:66: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:84: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:102: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:114: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=144,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:48: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  google_dot_rpc_dot_status__pb2.DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:70: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:97: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:115: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:133: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:151: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:169: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:185: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  fields=[],
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:189: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=373,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:216: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:228: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=410,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:255: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:273: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:291: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:309: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:321: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=504,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:348: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:366: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:378: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=606,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:405: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:417: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=646,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:444: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:456: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=686,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:483: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:501: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:513: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=749,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:640: DeprecationWarning: Call to deprecated create function MethodDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_options=b"\202\323\344\223\002\027\022\025/v1/{name=operations}",
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:649: DeprecationWarning: Call to deprecated create function MethodDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_options=b"\202\323\344\223\002\032\022\030/v1/{name=operations/**}",
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:658: DeprecationWarning: Call to deprecated create function MethodDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_options=b"\202\323\344\223\002\032*\030/v1/{name=operations/**}",
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:667: DeprecationWarning: Call to deprecated create function MethodDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_options=b'\202\323\344\223\002$"\037/v1/{name=operations/**}:cancel:\001*',
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:667: DeprecationWarning: Call to deprecated create function ServiceDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_options=b'\202\323\344\223\002$"\037/v1/{name=operations/**}:cancel:\001*',
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:36: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_pb=b"\n\x15google/rpc/code.proto\x12\ngoogle.rpc*\xb7\x02\n\x04\x43ode\x12\x06\n\x02OK\x10\x00\x12\r\n\tCANCELLED\x10\x01\x12\x0b\n\x07UNKNOWN\x10\x02\x12\x14\n\x10INVALID_ARGUMENT\x10\x03\x12\x15\n\x11\x44\x45\x41\x44LINE_EXCEEDED\x10\x04\x12\r\n\tNOT_FOUND\x10\x05\x12\x12\n\x0e\x41LREADY_EXISTS\x10\x06\x12\x15\n\x11PERMISSION_DENIED\x10\x07\x12\x13\n\x0fUNAUTHENTICATED\x10\x10\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\x08\x12\x17\n\x13\x46\x41ILED_PRECONDITION\x10\t\x12\x0b\n\x07\x41\x42ORTED\x10\n\x12\x10\n\x0cOUT_OF_RANGE\x10\x0b\x12\x11\n\rUNIMPLEMENTED\x10\x0c\x12\x0c\n\x08INTERNAL\x10\r\x12\x0f\n\x0bUNAVAILABLE\x10\x0e\x12\r\n\tDATA_LOSS\x10\x0f\x42X\n\x0e\x63om.google.rpcB\tCodeProtoP\x01Z3google.golang.org/genproto/googleapis/rpc/code;code\xa2\x02\x03RPCb\x06proto3",
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:46: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="OK", index=0, number=0, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:49: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="CANCELLED", index=1, number=1, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:52: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="UNKNOWN", index=2, number=2, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:59: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:66: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:69: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="NOT_FOUND", index=5, number=5, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:72: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="ALREADY_EXISTS", index=6, number=6, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:79: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:86: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:93: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:100: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:103: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="ABORTED", index=11, number=10, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:106: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="OUT_OF_RANGE", index=12, number=11, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:113: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:116: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="INTERNAL", index=14, number=13, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:119: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="UNAVAILABLE", index=15, number=14, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:122: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="DATA_LOSS", index=16, number=15, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:128: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=349,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:32: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,])
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:45: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:49: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:53: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:57: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:61: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:65: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:69: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:73: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:78: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=1382,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:91: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:95: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:100: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=2140,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:118: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:125: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:139: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=423,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:156: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:163: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:177: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=571,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:194: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:201: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:215: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  index=0, containing_type=None, fields=[]),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:218: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=727,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:235: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/validictory/validator.py:7: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import Mapping, Container
/home/pi/env/lib/python3.7/site-packages/yaml/constructor.py:126: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  if not isinstance(key, collections.Hashable):
INFO:gmusicapi.Mobileclient1:!-- begin debug log --!
INFO:gmusicapi.Mobileclient1:version: 13.0.0
INFO:gmusicapi.Mobileclient1:logging to: /home/pi/.cache/gmusicapi/log/gmusicapi.log
INFO:gmusicapi.Mobileclient1:initialized
INFO:gmusicapi.Mobileclient1:logged out
/home/pi/env/lib/python3.7/site-packages/oauth2client/_helpers.py:255: UserWarning: Cannot access /home/pi/.local/share/gmusicapi/mobileclient.cred: No such file or directory
  warnings.warn(_MISSING_FILE_MESSAGE.format(filename))
2020-08-11 22:43:21,754 - gmusicapi.Mobileclient1 (shared:176) [WARNING]: could not retrieve oauth credentials from ''/home/pi/.local/share/gmusicapi/mobileclient.cred''
WARNING:gmusicapi.Mobileclient1:could not retrieve oauth credentials from ''/home/pi/.local/share/gmusicapi/mobileclient.cred''
INFO:gmusicapi.Mobileclient1:failed to authenticate
USB-MIC-HDMI
Initializing GPIOs 5 and 6 for assistant activity indication
Traceback (most recent call last):
  File "/home/pi/GassistPi/src/main.py", line 118, in <module>
    logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.DEBUG , filename='/tmp/GassistPi.log')
  File "/usr/lib/python3.7/logging/__init__.py", line 1900, in basicConfig
    h = FileHandler(filename, mode)
  File "/usr/lib/python3.7/logging/__init__.py", line 1092, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.7/logging/__init__.py", line 1121, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/tmp/GassistPi.log'
shivasiddharth commented 4 years ago

Post output of journalctl -u gassistpi.service

shivasiddharth commented 4 years ago

Share the contents of the service file that you have used and the output of sudo nano /lib/systemd/system/gassistpi.service

Renison-Gohel commented 4 years ago

Output of journalctl -u gassistpi.service

pi@raspberrypi:~ $ journalctl -u gassistpi.service
-- Logs begin at Thu 2019-02-14 15:41:59 IST, end at Wed 2020-08-12 09:50:09 IST
Aug 11 23:17:07 raspberrypi systemd[1]: Started Google Assistant-Voice.
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-package
Aug 11 23:17:13 raspberrypi python[481]:   serialized_pb=b'\n\x15google/api/http
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-package
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-package
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-package
Aug 11 23:17:13 raspberrypi python[481]:   serialized_end=121,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-package
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-package
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-package
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-package
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-package
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-package
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-package
lines 1-23...skipping...
-- Logs begin at Thu 2019-02-14 15:41:59 IST, end at Wed 2020-08-12 09:50:09 IST. --
Aug 11 23:17:07 raspberrypi systemd[1]: Started Google Assistant-Voice.
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:35: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. P
Aug 11 23:17:13 raspberrypi python[481]:   serialized_pb=b'\n\x15google/api/http.proto\x12\ngoogle.api"T\n\x04Http\x12#\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRule\x12\'\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\x
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:62: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. 
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:80: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. 
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:92: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Pleas
Aug 11 23:17:13 raspberrypi python[481]:   serialized_end=121,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:119: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away.
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:137: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away.
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:155: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away.
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:173: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away.
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:191: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away.
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:209: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away.
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:227: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away.
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:245: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away.
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:263: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away.
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:281: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away.
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:297: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descriptors is going to go away.
Aug 11 23:17:13 raspberrypi python[481]:   fields=[],
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:301: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Plea
Aug 11 23:17:13 raspberrypi python[481]:   serialized_end=381,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:328: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away.
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:346: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away.
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:358: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Plea
Aug 11 23:17:13 raspberrypi python[481]:   serialized_end=430,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:42: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go 
Aug 11 23:17:13 raspberrypi python[481]:   google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:64: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:39: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away.
Aug 11 23:17:13 raspberrypi python[481]:   dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR],
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:66: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:84: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:102: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go awa
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:114: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Pl
Aug 11 23:17:13 raspberrypi python[481]:   serialized_end=144,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:48: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is
Aug 11 23:17:13 raspberrypi python[481]:   google_dot_rpc_dot_status__pb2.DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:70: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors i
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
Aug 11 23:17:13 raspberrypi python[481]: /home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:97: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors i
Aug 11 23:17:13 raspberrypi python[481]:   file=DESCRIPTOR,
lines 1-60

gassistpi.service file content

[Unit]
Description=Google Assistant-Voice
Wants=network-online.target
After=network-online.target

[Service]
Environment=VIRTUAL_ENV=/home/pi/env
Environment=PATH=/home/pi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ExecStart=/home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --project_id 'assistantreni' --device_model_id 'assistantreni-eaglesmarthub-gbvix6'

WorkingDirectory=/home/pi/
StandardOutput=inherit
StandardError=inherit
Restart=always
User=pi

[Install]
WantedBy=multi-user.target

Output of sudo nano /lib/systemd/system/gassistpi.service

[Unit]
Description=Google Assistant-Voice
Wants=network-online.target
After=network-online.target

[Service]
Environment=VIRTUAL_ENV=/home/pi/env
Environment=PATH=/home/pi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ExecStart=/home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --project_id 'assistantreni' --device_model_id 'assistantreni-eaglesmarthub-gbvix6'

WorkingDirectory=/home/pi/
StandardOutput=inherit
StandardError=inherit
Restart=always
User=pi

[Install]
WantedBy=multi-user.target
shivasiddharth commented 4 years ago

Start from a fresh image and see.

Renison-Gohel commented 4 years ago

Fresh image means? I am not getting you. You mean flash new raspdian os? Can you please explain bit more?

shivasiddharth commented 4 years ago

Starting fresh means, erasing the sd card, writing the os image on the sd card and installing the assistant from scratch again.

Renison-Gohel commented 4 years ago

Okay sir, I will do that and let you know the results.

Renison-Gohel commented 4 years ago

Done with flashing fresh new raspbian os but Still it is not starting automatically but can start manually by command

Output of sudo systemctl status gassistpi.service

● gassistpi.service - Google Assistant-Voice
   Loaded: loaded (/lib/systemd/system/gassistpi.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2020-08-13 00:35:47 IST; 466ms ago
 Main PID: 2869 (python)
    Tasks: 1 (limit: 2077)
   Memory: 4.3M
   CGroup: /system.slice/gassistpi.service
           └─2869 /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --project_id assistantreni --device_model_id assistantreni-eaglesmarthub-gbvix6

Aug 13 00:35:47 raspberrypi systemd[1]: Started Google Assistant-Voice.

Output of manual command

pi@raspberrypi:~ $ /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --project_id 'assistantreni' --device_model_id 'assistantreni-eaglesmarthub-gbvix6'
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:35: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_pb=b'\n\x15google/api/http.proto\x12\ngoogle.api"T\n\x04Http\x12#\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRule\x12\'\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\x08"\x81\x02\n\x08HttpRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\r\n\x03get\x18\x02 \x01(\tH\x00\x12\r\n\x03put\x18\x03 \x01(\tH\x00\x12\x0e\n\x04post\x18\x04 \x01(\tH\x00\x12\x10\n\x06\x64\x65lete\x18\x05 \x01(\tH\x00\x12\x0f\n\x05patch\x18\x06 \x01(\tH\x00\x12/\n\x06\x63ustom\x18\x08 \x01(\x0b\x32\x1d.google.api.CustomHttpPatternH\x00\x12\x0c\n\x04\x62ody\x18\x07 \x01(\t\x12\x15\n\rresponse_body\x18\x0c \x01(\t\x12\x31\n\x13\x61\x64\x64itional_bindings\x18\x0b \x03(\x0b\x32\x14.google.api.HttpRuleB\t\n\x07pattern"/\n\x11\x43ustomHttpPattern\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\tBj\n\x0e\x63om.google.apiB\tHttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xf8\x01\x01\xa2\x02\x04GAPIb\x06proto3',
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:62: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:80: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:92: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=121,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:119: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:137: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:155: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:173: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:191: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:209: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:227: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:245: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:263: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:281: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:297: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  fields=[],
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:301: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=381,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:328: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:346: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:358: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=430,
/home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:42: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:64: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:39: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR],
/home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:66: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:84: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:102: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:114: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=144,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:48: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  google_dot_rpc_dot_status__pb2.DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:70: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:97: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:115: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:133: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:151: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:169: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:185: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  fields=[],
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:189: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=373,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:216: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:228: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=410,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:255: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:273: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:291: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:309: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:321: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=504,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:348: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:366: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:378: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=606,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:405: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:417: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=646,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:444: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:456: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=686,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:483: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:501: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  file=DESCRIPTOR,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:513: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=749,
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:640: DeprecationWarning: Call to deprecated create function MethodDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_options=b"\202\323\344\223\002\027\022\025/v1/{name=operations}",
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:649: DeprecationWarning: Call to deprecated create function MethodDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_options=b"\202\323\344\223\002\032\022\030/v1/{name=operations/**}",
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:658: DeprecationWarning: Call to deprecated create function MethodDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_options=b"\202\323\344\223\002\032*\030/v1/{name=operations/**}",
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:667: DeprecationWarning: Call to deprecated create function MethodDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_options=b'\202\323\344\223\002$"\037/v1/{name=operations/**}:cancel:\001*',
/home/pi/env/lib/python3.7/site-packages/google/longrunning/operations_proto_pb2.py:667: DeprecationWarning: Call to deprecated create function ServiceDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_options=b'\202\323\344\223\002$"\037/v1/{name=operations/**}:cancel:\001*',
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:36: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_pb=b"\n\x15google/rpc/code.proto\x12\ngoogle.rpc*\xb7\x02\n\x04\x43ode\x12\x06\n\x02OK\x10\x00\x12\r\n\tCANCELLED\x10\x01\x12\x0b\n\x07UNKNOWN\x10\x02\x12\x14\n\x10INVALID_ARGUMENT\x10\x03\x12\x15\n\x11\x44\x45\x41\x44LINE_EXCEEDED\x10\x04\x12\r\n\tNOT_FOUND\x10\x05\x12\x12\n\x0e\x41LREADY_EXISTS\x10\x06\x12\x15\n\x11PERMISSION_DENIED\x10\x07\x12\x13\n\x0fUNAUTHENTICATED\x10\x10\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\x08\x12\x17\n\x13\x46\x41ILED_PRECONDITION\x10\t\x12\x0b\n\x07\x41\x42ORTED\x10\n\x12\x10\n\x0cOUT_OF_RANGE\x10\x0b\x12\x11\n\rUNIMPLEMENTED\x10\x0c\x12\x0c\n\x08INTERNAL\x10\r\x12\x0f\n\x0bUNAVAILABLE\x10\x0e\x12\r\n\tDATA_LOSS\x10\x0f\x42X\n\x0e\x63om.google.rpcB\tCodeProtoP\x01Z3google.golang.org/genproto/googleapis/rpc/code;code\xa2\x02\x03RPCb\x06proto3",
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:46: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="OK", index=0, number=0, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:49: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="CANCELLED", index=1, number=1, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:52: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="UNKNOWN", index=2, number=2, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:59: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:66: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:69: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="NOT_FOUND", index=5, number=5, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:72: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="ALREADY_EXISTS", index=6, number=6, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:79: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:86: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:93: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:100: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:103: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="ABORTED", index=11, number=10, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:106: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="OUT_OF_RANGE", index=12, number=11, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:113: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None,
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:116: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="INTERNAL", index=14, number=13, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:119: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="UNAVAILABLE", index=15, number=14, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:122: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  name="DATA_LOSS", index=16, number=15, serialized_options=None, type=None
/home/pi/env/lib/python3.7/site-packages/google/rpc/code_pb2.py:128: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=349,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:32: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_longrunning_dot_operations__pb2.DESCRIPTOR,google_dot_protobuf_dot_any__pb2.DESCRIPTOR,google_dot_protobuf_dot_duration__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,])
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:45: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:49: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:53: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:57: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:61: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:65: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:69: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:73: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:78: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=1382,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:91: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:95: DeprecationWarning: Call to deprecated create function EnumValueDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  type=None),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:100: DeprecationWarning: Call to deprecated create function EnumDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=2140,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:118: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:125: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:139: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=423,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:156: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:163: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:177: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=571,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:194: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:201: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:215: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  index=0, containing_type=None, fields=[]),
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:218: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  serialized_end=727,
/home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:235: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going to go away. Please use get/find descriptors from generated code or query the descriptor_pool.
  options=None, file=DESCRIPTOR),
/home/pi/env/lib/python3.7/site-packages/validictory/validator.py:7: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  from collections import Mapping, Container
/home/pi/env/lib/python3.7/site-packages/yaml/constructor.py:126: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
  if not isinstance(key, collections.Hashable):
INFO:gmusicapi.Mobileclient1:!-- begin debug log --!
INFO:gmusicapi.Mobileclient1:version: 13.0.0
INFO:gmusicapi.Mobileclient1:logging to: /home/pi/.cache/gmusicapi/log/gmusicapi.log
INFO:gmusicapi.Mobileclient1:initialized
INFO:gmusicapi.Mobileclient1:logged out
/home/pi/env/lib/python3.7/site-packages/oauth2client/_helpers.py:255: UserWarning: Cannot access /home/pi/.local/share/gmusicapi/mobileclient.cred: No such file or directory
  warnings.warn(_MISSING_FILE_MESSAGE.format(filename))
2020-08-13 00:29:08,076 - gmusicapi.Mobileclient1 (shared:176) [WARNING]: could not retrieve oauth credentials from ''/home/pi/.local/share/gmusicapi/mobileclient.cred''
WARNING:gmusicapi.Mobileclient1:could not retrieve oauth credentials from ''/home/pi/.local/share/gmusicapi/mobileclient.cred''
INFO:gmusicapi.Mobileclient1:failed to authenticate
USB-DAC
Initializing GPIOs 5 and 6 for assistant activity indication
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.front.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround40.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 934
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 934
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 934
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=6,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2  CARD 0}
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
ALSA lib pcm_dmix.c:1043:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
/home/pi/env/lib/python3.7/site-packages/google/assistant/library/assistant.py:90: DeprecationWarning: Google Assistant Library for Python is deprecated
  warnings.warn('Google Assistant Library for Python is deprecated', DeprecationWarning)
device_model_id: assistantreni-eaglesmarthub-gbvix6
device_id: 1D2C96FA19B8D65013863C3FE2E8392B

Registering...Done.

ON_MUTED_CHANGED:
  {"is_muted": false}

ON_MEDIA_STATE_IDLE

ON_START_FINISHED

Manually assistant is working fine but not starting on boot. This is the same that i was facing earlier and then i edit service file very badly ;-(

Renison-Gohel commented 4 years ago

@shivasiddharth

Here is the gassistpi.service file that i currently have

[Unit]
Description=Google Assistant-Voice
Wants=network-online.target
After=network-online.target

[Service]
Environment=VIRTUAL_ENV=/home/pi/env
Environment=PATH=/home/pi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ExecStart=/home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --project_id 'assistantreni' --device_model_id 'assistantreni-eaglesmarthub-gbvix6'

WorkingDirectory=/home/pi/
StandardOutput=inherit
StandardError=inherit
Restart=always
User=pi

[Install]
WantedBy=multi-user.target
shivasiddharth commented 4 years ago

Post output of journalctl -u gassistpi.service

aryaputhra commented 4 years ago

I have the same issue - I think it is something wrong with the gassistpi.service file. I have wiped clean my SD card, did a fresh install of Raspbian OS and going through your github codes, will keep you posted if the exact error pops up... it starts manually okay, but only the headless start fails unfortunately

aryaputhra commented 4 years ago

okay, after redoing the whole thing - service now auto-starts, but it automatically keeps restarting (i.e. the starting jingles and "hi" keeps on coming, indicating the service has restarted) - how do I mute the jingles and "hi"?

shivasiddharth commented 4 years ago

@aryaputhra This thread is going nowhere. Instead of looking into the issue that is restarting the service, you want to cut off the jingles ?

Post the output if https://github.com/shivasiddharth/GassistPi/issues/1033#issuecomment-673209562

Renison-Gohel commented 4 years ago

Post output of journalctl -u gassistpi.service

@shivasiddharth Here is the ouput

pi@raspberrypi:~ $ journalctl -u gassistpi.service
-- Logs begin at Thu 2020-08-13 12:26:35 IST, end at Thu 2020-08-13 12:28:05 IST
Aug 13 12:26:40 raspberrypi systemd[1]: Started Google Assistant-Voice.
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-package
Aug 13 12:26:49 raspberrypi python[484]:   serialized_pb=b'\n\x15google/api/http
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-package
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-package
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-package
Aug 13 12:26:49 raspberrypi python[484]:   serialized_end=121,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-package
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-package
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-package
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-package
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-package
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-package
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-package
lines 1-23...skipping...
-- Logs begin at Thu 2020-08-13 12:26:35 IST, end at Thu 2020-08-13 12:28:05 IST. --
Aug 13 12:26:40 raspberrypi systemd[1]: Started Google Assistant-Voice.
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:35: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going t
Aug 13 12:26:49 raspberrypi python[484]:   serialized_pb=b'\n\x15google/api/http.proto\x12\ngoogle.api"T\n\x04Http\x12#\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRule\x12\'\n\x1f\x66ully_decode_reserved_expansion\x18
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:62: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going 
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:80: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going 
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:92: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to go
Aug 13 12:26:49 raspberrypi python[484]:   serialized_end=121,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:119: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:137: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:155: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:173: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:191: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:209: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:227: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:245: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:263: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:281: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:297: DeprecationWarning: Call to deprecated create function OneofDescriptor(). Note: Create unlinked descriptors is going
Aug 13 12:26:49 raspberrypi python[484]:   fields=[],
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:301: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to g
Aug 13 12:26:49 raspberrypi python[484]:   serialized_end=381,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:328: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:346: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is going
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/http_pb2.py:358: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to g
Aug 13 12:26:49 raspberrypi python[484]:   serialized_end=430,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:42: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is 
Aug 13 12:26:49 raspberrypi python[484]:   google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/api/annotations_pb2.py:64: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:39: DeprecationWarning: Call to deprecated create function FileDescriptor(). Note: Create unlinked descriptors is going
Aug 13 12:26:49 raspberrypi python[484]:   dependencies=[google_dot_protobuf_dot_any__pb2.DESCRIPTOR],
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:66: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is goin
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:84: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is goin
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:102: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create unlinked descriptors is goi
Aug 13 12:26:49 raspberrypi python[484]:   file=DESCRIPTOR,
Aug 13 12:26:49 raspberrypi python[484]: /home/pi/env/lib/python3.7/site-packages/google/rpc/status_pb2.py:114: DeprecationWarning: Call to deprecated create function Descriptor(). Note: Create unlinked descriptors is going to
Aug 13 12:26:49 raspberrypi python[484]:   serialized_end=144,
lines 1-54

Note: I am able to hear audio of youtube and also of any other media file and also manually gassistpi is working like charm

Renison-Gohel commented 4 years ago

okay, after redoing the whole thing - service now auto-starts, but it automatically keeps restarting (i.e. the starting jingles and "hi" keeps on coming, indicating the service has restarted) - how do I mute the jingles and "hi"?

I done the same before but even after that service was not started automatically. @aryaputhra Can you tell us what audio setup you are using? @shivasiddharth Does audio setup creates any problem for service file?

shivasiddharth commented 4 years ago

The output of the journal command that you have posted above does not contain all the lines. Allow the gassistpi service to restart as many times as it can and give it some time after the last start attempt and then use the journal command.

Renison-Gohel commented 4 years ago

Okay, Doing that. Allow me some time.

Renison-Gohel commented 4 years ago

That's all what i got @shivasiddharth

pi@raspberrypi:~ $ journalctl -u gassistpi.service
-- Logs begin at Sun 2020-08-16 13:13:51 IST, end at Sun 2020-08-16 13:48:00 IST. --
Aug 16 13:13:51 raspberrypi python[10238]: /home/pi/env/lib/python3.7/site-packages/google/cloud/speech_v1/proto/cloud_speech_pb2.py:235: DeprecationWarning: Call to deprecated create function FieldDescriptor(). Note: Create u
Aug 16 13:13:51 raspberrypi python[10238]:   options=None, file=DESCRIPTOR),
Aug 16 13:13:52 raspberrypi python[10238]: /home/pi/env/lib/python3.7/site-packages/validictory/validator.py:7: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated
Aug 16 13:13:52 raspberrypi python[10238]:   from collections import Mapping, Container
Aug 16 13:13:57 raspberrypi python[10238]: /home/pi/env/lib/python3.7/site-packages/yaml/constructor.py:126: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, a
Aug 16 13:13:57 raspberrypi python[10238]:   if not isinstance(key, collections.Hashable):
Aug 16 13:13:57 raspberrypi python[10238]: INFO:gmusicapi.Mobileclient1:!-- begin debug log --!
Aug 16 13:13:57 raspberrypi python[10238]: INFO:gmusicapi.Mobileclient1:version: 13.0.0
Aug 16 13:13:57 raspberrypi python[10238]: INFO:gmusicapi.Mobileclient1:logging to: /home/pi/.cache/gmusicapi/log/gmusicapi.log
Aug 16 13:13:57 raspberrypi python[10238]: INFO:gmusicapi.Mobileclient1:initialized
Aug 16 13:13:57 raspberrypi python[10238]: INFO:gmusicapi.Mobileclient1:logged out
Aug 16 13:13:57 raspberrypi python[10238]: /home/pi/env/lib/python3.7/site-packages/oauth2client/_helpers.py:255: UserWarning: Cannot access /home/pi/.local/share/gmusicapi/mobileclient.cred: No such file or directory
Aug 16 13:13:57 raspberrypi python[10238]:   warnings.warn(_MISSING_FILE_MESSAGE.format(filename))
Aug 16 13:13:57 raspberrypi python[10238]: 2020-08-16 13:13:57,377 - gmusicapi.Mobileclient1 (shared:176) [WARNING]: could not retrieve oauth credentials from ''/home/pi/.local/share/gmusicapi/mobileclient.cred''
Aug 16 13:13:57 raspberrypi python[10238]: WARNING:gmusicapi.Mobileclient1:could not retrieve oauth credentials from ''/home/pi/.local/share/gmusicapi/mobileclient.cred''
Aug 16 13:13:57 raspberrypi python[10238]: INFO:gmusicapi.Mobileclient1:failed to authenticate
Aug 16 13:13:58 raspberrypi python[10238]: [027dd6d0] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
Aug 16 13:13:58 raspberrypi python[10238]: [02803bf8] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
Aug 16 13:13:59 raspberrypi python[10238]: USB-DAC
Aug 16 13:13:59 raspberrypi python[10238]: Initializing GPIOs 5 and 6 for assistant activity indication
Aug 16 13:13:59 raspberrypi python[10238]: Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
Aug 16 13:13:59 raspberrypi python[10238]: Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
Aug 16 13:13:59 raspberrypi python[10238]: Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.front.0:CARD=0'
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM front
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround21
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround21
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround40.0:CARD=0'
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround40
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround41
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround50
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.surround51.0:CARD=0'
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Aug 16 13:13:59 raspberrypi python[10238]: ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
lines 1-54
solidssss commented 4 years ago

I too got this error now again for the second time on my raspberry pi 3b after disabling autoboot by running stop and disable on systemctl gassistpi.service. When I tried to enable and start them again, I get: $sudo systemctl start gassistpi.service Failed to start gassistpi.service: Unit gassistpi.service has a bad unit file setting.

Running sudo systemctl status gassistpi.service give me:

gassistpi.service - Google Assistant-Voice
   Loaded: bad-setting (Reason: Unit gassistpi.service has a bad unit file setting.)
   Active: inactive (dead)

Aug 16 09:56:17 raspberrypi systemd[1]: gassistpi.service: Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services

Running journalctl -u gassistpi.service gives me the same output. I can't start the assistant manually either now...

Lats time I had to reflash my SD card, but I don't want to reconfigure everything again... Please make a fix for this.

Renison-Gohel commented 4 years ago

Another one

pi@raspberrypi:~ $ journalctl -u gassistpi.service
-- Logs begin at Sun 2020-08-16 16:15:43 IST, end at Sun 2020-08-16 16:47:36 IST
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm.c:2565:(snd_pcm_open_noup
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm.c:2565:(snd_pcm_open_noup
Aug 16 16:15:43 raspberrypi python[6703]: Expression 'alsa_snd_pcm_hw_params_set
Aug 16 16:15:43 raspberrypi python[6703]: Expression 'alsa_snd_pcm_hw_params_set
Aug 16 16:15:43 raspberrypi python[6703]: Expression 'alsa_snd_pcm_hw_params_set
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib confmisc.c:1281:(snd_func_ref
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib conf.c:4568:(_snd_config_eval
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib conf.c:5036:(snd_config_expan
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm.c:2565:(snd_pcm_open_noup
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib confmisc.c:1281:(snd_func_ref
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib conf.c:4568:(_snd_config_eval
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib conf.c:5036:(snd_config_expan
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm.c:2565:(snd_pcm_open_noup
Aug 16 16:15:43 raspberrypi python[6703]: Cannot connect to server socket err = 
Aug 16 16:15:43 raspberrypi python[6703]: Cannot connect to server request chann
Aug 16 16:15:43 raspberrypi python[6703]: jack server is not running or cannot b
Aug 16 16:15:43 raspberrypi python[6703]: JackShmReadWritePtr::~JackShmReadWrite
Aug 16 16:15:43 raspberrypi python[6703]: Cannot connect to server socket err = 
Aug 16 16:15:43 raspberrypi python[6703]: Cannot connect to server request chann
Aug 16 16:15:43 raspberrypi python[6703]: jack server is not running or cannot b
Aug 16 16:15:43 raspberrypi python[6703]: JackShmReadWritePtr::~JackShmReadWrite
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm_oss.c:377:(_snd_pcm_oss_o
lines 1-23...skipping...
-- Logs begin at Sun 2020-08-16 16:15:43 IST, end at Sun 2020-08-16 16:47:36 IST. --
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Aug 16 16:15:43 raspberrypi python[6703]: Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 934
Aug 16 16:15:43 raspberrypi python[6703]: Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 934
Aug 16 16:15:43 raspberrypi python[6703]: Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 934
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa
Aug 16 16:15:43 raspberrypi python[6703]: Cannot connect to server socket err = No such file or directory
Aug 16 16:15:43 raspberrypi python[6703]: Cannot connect to server request channel
Aug 16 16:15:43 raspberrypi python[6703]: jack server is not running or cannot be started
Aug 16 16:15:43 raspberrypi python[6703]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Aug 16 16:15:43 raspberrypi python[6703]: Cannot connect to server socket err = No such file or directory
Aug 16 16:15:43 raspberrypi python[6703]: Cannot connect to server request channel
Aug 16 16:15:43 raspberrypi python[6703]: jack server is not running or cannot be started
Aug 16 16:15:43 raspberrypi python[6703]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_hdmi.pcm.iec958.0:CARD=0,AES0=6,AES1=130,AES2=0,AES3=2'
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2  CARD 0}
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm_dsnoop.c:575:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
Aug 16 16:15:43 raspberrypi python[6703]: ALSA lib pcm_dmix.c:1043:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Aug 16 16:15:43 raspberrypi python[6703]: Cannot connect to server socket err = No such file or directory
Aug 16 16:15:43 raspberrypi python[6703]: Cannot connect to server request channel
Aug 16 16:15:43 raspberrypi python[6703]: jack server is not running or cannot be started
Aug 16 16:15:43 raspberrypi python[6703]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Aug 16 16:15:43 raspberrypi python[6703]: /home/pi/env/lib/python3.7/site-packages/google/assistant/library/assistant.py:90: DeprecationWarning: Google Assistant Library for Python is deprecated
Aug 16 16:15:43 raspberrypi python[6703]:   warnings.warn('Google Assistant Library for Python is deprecated', DeprecationWarning)
Aug 16 16:15:43 raspberrypi python[6703]: [FATAL:audio_input_stream.cc(47)] Input device could not be opened: default
Aug 16 16:15:43 raspberrypi python[6703]: Fatal Python error: Aborted
Aug 16 16:15:43 raspberrypi python[6703]: Current thread 0x76f04ad0 (most recent call first):
Aug 16 16:15:43 raspberrypi python[6703]:   File "/home/pi/env/lib/python3.7/site-packages/google/assistant/library/assistant.py", line 103 in __init__
Aug 16 16:15:43 raspberrypi python[6703]:   File "/home/pi/GassistPi/src/main.py", line 1010 in main
Aug 16 16:15:43 raspberrypi python[6703]:   File "/home/pi/GassistPi/src/main.py", line 1047 in <module>
Aug 16 16:15:43 raspberrypi systemd[1]: gassistpi.service: Main process exited, code=killed, status=6/ABRT
Aug 16 16:15:43 raspberrypi systemd[1]: gassistpi.service: Failed with result 'signal'.
Aug 16 16:15:44 raspberrypi systemd[1]: gassistpi.service: Service RestartSec=100ms expired, scheduling restart.
Aug 16 16:15:44 raspberrypi systemd[1]: gassistpi.service: Scheduled restart job, restart counter is at 1584.
Aug 16 16:15:44 raspberrypi systemd[1]: Stopped Google Assistant-Voice.
Aug 16 16:15:44 raspberrypi systemd[1]: Started Google Assistant-Voice.
lines 1-54
Renison-Gohel commented 4 years ago

I too got this error now again for the second time on my raspberry pi 3b after disabling autoboot by running stop and disable on systemctl gassistpi.service. When I tried to enable and start them again, I get: $sudo systemctl start gassistpi.service Failed to start gassistpi.service: Unit gassistpi.service has a bad unit file setting.

Running sudo systemctl status gassistpi.service give me:

gassistpi.service - Google Assistant-Voice
   Loaded: bad-setting (Reason: Unit gassistpi.service has a bad unit file setting.)
   Active: inactive (dead)

Aug 16 09:56:17 raspberrypi systemd[1]: gassistpi.service: Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services

Running journalctl -u gassistpi.service gives me the same output. I can't start the assistant manually either now...

Lats time I had to reflash my SD card, but I don't want to reconfigure everything again... Please make a fix for this.

Maybe you also have 2 execstart file path under systemd > gassistpi.service file. Remove push.py path if you are not using raspberry pi zero. If it also doesn't solves your problem then better to wait for master's ( shivasiddharth's ) reply

solidssss commented 4 years ago

That did not work. I reinstalled Raspbian again instead... but now when I run the script manually it does not ouput any text. I really need it to do it for testing. Not sure why it's not working, I can wake it with Ok google and talk to it , but the terminal does not output any text when I talk to it. It's just stuck like this:

ON_MUTED_CHANGED:
  {"is_muted": false}

ON_MEDIA_STATE_IDLE

ON_START_FINISHED

I'm using the same client.json and config.yaml file from before i reflashed Raspbian

shivasiddharth commented 4 years ago

That did not work. I reinstalled Raspbian again instead... but now when I run the script manually it does not ouput any text. I really need it to do it for testing. Not sure why it's not working, I can wake it with Ok google and talk to it , but the terminal does not output any text when I talk to it. It's just stuck like this:

ON_MUTED_CHANGED:
  {"is_muted": false}

ON_MEDIA_STATE_IDLE

ON_START_FINISHED

I'm using the same client.json and config.yaml file from before i reflashed Raspbian

If it is replying, it must be from your service running in the background. You cannot have both running.

shivasiddharth commented 4 years ago

@Reni0013 , I am unable to replicate your issue. This is the last thing that I can suggest. Share the output of: sudo /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --project_id 'assistantreni' --device_model_id 'assistantreni-eaglesmarthub-gbvix6'

solidssss commented 4 years ago

That did not work. I reinstalled Raspbian again instead... but now when I run the script manually it does not ouput any text. I really need it to do it for testing. Not sure why it's not working, I can wake it with Ok google and talk to it , but the terminal does not output any text when I talk to it. It's just stuck like this:

ON_MUTED_CHANGED:
  {"is_muted": false}

ON_MEDIA_STATE_IDLE

ON_START_FINISHED

I'm using the same client.json and config.yaml file from before i reflashed Raspbian

If it is replying, it must be from your service running in the background. You cannot have both running.

If I try to kill the auto-start GassistPi process, it just keeps restarting. If I run sudo systemctl stop gassistpi.service and sudo systemctl disable gassistpi.service I will most definitely get the Loaded: bad-setting error again and reflash my raspberry for the third time.

Btw, is there any way to implement an MQTT publisher for when the assistant is listening? I've tried with client.publish("topic", "message") but I can't get it to work. I'm just bad at python.

shivasiddharth commented 4 years ago

@solidssss Seems like you are working with pre-conceived notions. Whoever told you that sudo systemctl stop gassistpi.service will give a "bad-setting error" they are wrong. And, this is not the right place to discuss personalizations.

shivasiddharth commented 4 years ago

@Reni0013 Took a second look at the journal. Your assistant is infact working. You have not setup the audio properly. That is why you are getting

Aug 16 16:15:43 raspberrypi python[6703]: [FATAL:audio_input_stream.cc(47)] Input device could not be opened: default
Aug 16 16:15:43 raspberrypi python[6703]: Fatal Python error: Aborted
Aug 16 16:15:43 raspberrypi python[6703]: Current thread 0x76f04ad0 (most recent call first):
CharlesssQJ commented 2 years ago

Run journalctl -u gassistpi.service if the command line shows: gassistpi.service: Service has more than one ExecStart= setting, which is only allowed f delete the floowing line: ExecStart=/home/USER/env/bin/python -u /home/USER/GassistPi/src/pushbutton.py --project-id 'created-project-id' --device-model-id 'saved-model-id' This fix the problem for me. I also changed all 'USER' to pi as well as manually typed my project-id and model-id