shivasiddharth / GassistPi

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

Youtube taking so long to load then failed #890

Closed BarryAlvord closed 4 years ago

BarryAlvord commented 5 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

Board and OS details:

Open a terminal and run

cat /proc/cpuinfo  
cat /etc/os-release  

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 : a32082 Serial : 0000000018a688d3


Paste your Board and OS details here.   

PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)" NAME="Raspbian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)" 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:

Youtube taking so long to load the song then failed

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/No Yes

2. Is the issue related to assistant installation ?

Yes/No No

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

If answer to question 2 is No, then proceed further.

3. Does the assistant service start normally?

Yes/No Yes

4. Is the assistant service restarting automatically?

Yes/No 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

Paste the command below, that crashed the assistant

Paste the contents of the terminal below

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": ""}

ON_NO_RESPONSE

ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": false}

Assistant is listening....
ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "idiot"}

ON_RESPONDING_STARTED:
  {"is_error_response": false}

ON_RESPONDING_FINISHED

ON_RENDER_RESPONSE:
  {"text": "I'm really sorry 😞", "type": 0}

ON_CONVERSATION_TURN_FINISHED:
  {"with_follow_on_turn": false}

Assistant is listening....
ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED:
  {"text": "play Hong Kong one from YouTube"}

stopping vlc

#########
And it stucks right there for 10 min then the assistant said something about lost connection

Attach the log file named Gassistpi.log

Log file can be found in /tmp/ directory
2019-05-01 17:10:11,898 : DEBUG : pre-processing: <function tone_marks at 0x709e3d68> 2019-05-01 17:10:11,902 : DEBUG : pre-processing: <function end_of_line at 0x7096f198> 2019-05-01 17:10:11,903 : DEBUG : pre-processing: <function abbreviations at 0x7096f1e0> 2019-05-01 17:10:11,910 : DEBUG : pre-processing: <function word_sub at 0x7096f228> 2019-05-01 17:10:11,911 : DEBUG : text_parts: 1 2019-05-01 17:10:11,919 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443 2019-05-01 17:10:12,218 : DEBUG : https://translate.google.com:443 "GET / HTTP/1.1" 200 None 2019-05-01 17:10:12,310 : DEBUG : payload-0: {'ie': 'UTF-8', 'textlen': 20, 'tl': 'en', 'total': 1, 'tk': '571897.925905', 'q': 'Getting youtube link', 'client': 'tw-ob', 'ttsspeed': 1, 'idx': 0} 2019-05-01 17:10:12,319 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443 2019-05-01 17:10:12,553 : DEBUG : https://translate.google.com:443 "GET /translate_tts?ie=UTF-8&textlen=20&tl=en&total=1&tk=571897.925905&q=Getting+youtube+link&client=tw-ob&ttsspeed=1&idx=0 HTTP/1.1" 200 5952 2019-05-01 17:10:12,561 : DEBUG : headers-0: {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Connection': 'keep-alive', 'Accept-Encoding': 'gzip, deflate', 'Accept': '/', 'Referer': 'http://translate.google.com/'} 2019-05-01 17:10:12,563 : DEBUG : url-0: https://translate.google.com/translate_tts?ie=UTF-8&textlen=20&tl=en&total=1&tk=571897.925905&q=Getting+youtube+link&client=tw-ob&ttsspeed=1&idx=0 2019-05-01 17:10:12,563 : DEBUG : status-0: 200 2019-05-01 17:10:12,564 : DEBUG : part-0 written to <_io.BufferedWriter name='/tmp/female-say.mp3'> 2019-05-01 17:10:12,565 : DEBUG : Saved to /tmp/female-say.mp3 2019-05-01 17:10:12,716 : WARNING : file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth Traceback (most recent call last): File "/home/pi/env/lib/python3.5/site-packages/googleapiclient/discovery_cache/init.py", line 36, in autodetect from google.appengine.api import memcache ImportError: No module named 'google.appengine'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/pi/env/lib/python3.5/site-packages/googleapiclient/discovery_cache/file_cache.py", line 33, in from oauth2client.contrib.locked_file import LockedFile ImportError: No module named 'oauth2client.contrib.locked_file'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/pi/env/lib/python3.5/site-packages/googleapiclient/discovery_cache/file_cache.py", line 37, in from oauth2client.locked_file import LockedFile ImportError: No module named 'oauth2client.locked_file'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/pi/env/lib/python3.5/site-packages/googleapiclient/discovery_cache/init.py", line 41, in autodetect from . import file_cache File "/home/pi/env/lib/python3.5/site-packages/googleapiclient/discovery_cache/file_cache.py", line 41, in 'file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth') ImportError: file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth 2019-05-01 17:10:12,722 : INFO : URL being requested: GET https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest?key=AIzaSyAb6fgwDIRPBMeEE2D7iGxvaoKentZg6Y4 2019-05-01 17:10:13,287 : INFO : URL being requested: GET https://www.googleapis.com/youtube/v3/search?alt=json&q=don%27t+stop+me+now&part=id%2Csnippet&key=AIzaSyAb6fgwDIRPBMeEE2D7iGxvaoKentZg6Y4 2019-05-01 17:14:59,692 : INFO : Keyword 1 detected at time: 2019-05-01 17:14:59 2019-05-01 17:15:04,436 : DEBUG : text: Getting youtube link 2019-05-01 17:15:04,437 : DEBUG : lang_check: True 2019-05-01 17:15:04,437 : DEBUG : tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\?).|(?<=\!).|(?<=\?).|(?<=\!).|(?<!\.[a-z])\. |(?<!\.[a-z])\, |\]|\—|\(|\¡|\[|\…|\、|\:|\¿|\;|\,|\\n|\‥|\،|\。|\:|\)', re.IGNORECASE) from: [<function tone_marks at 0x7096f2b8>, <function period_comma at 0x7096f300>, <function other_punctuation at 0x7096f348>]> 2019-05-01 17:15:04,438 : DEBUG : lang: en 2019-05-01 17:15:04,438 : DEBUG : slow: False 2019-05-01 17:15:04,439 : DEBUG : pre_processor_funcs: [<function tone_marks at 0x709e3d68>, <function end_of_line at 0x7096f198>, <function abbreviations at 0x7096f1e0>, <function word_sub at 0x7096f228>] 2019-05-01 17:15:04,450 : DEBUG : Starting new HTTP connection (1): translate.google.com:80 2019-05-01 17:17:16,652 : DEBUG : http://translate.google.com:80 "GET / HTTP/1.1" 302 226 2019-05-01 17:17:16,696 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443 2019-05-01 17:17:17,028 : DEBUG : https://translate.google.com:443 "GET / HTTP/1.1" 200 None 2019-05-01 17:17:17,285 : DEBUG : Starting new HTTP connection (1): translate.google.com:80 2019-05-01 17:17:17,382 : DEBUG : http://translate.google.com:80 "GET //translate/releases/twsfe_w_20190422_RC01/r/js/translate_m.js HTTP/1.1" 200 198678 2019-05-01 17:17:17,715 : DEBUG : langs: {'et': 'Estonian', 'hi': 'Hindi', 'eo': 'Esperanto', 'te': 'Telugu', 'fr-fr': 'French (France)', 'bn': 'Bengali', 'en-gh': 'English (Ghana)', 'en-au': 'English (Australia)', 'mk': 'Macedonian', 'jw': 'Javanese', 'bs': 'Bosnian', 'ar': 'Arabic', 'ca': 'Catalan', 'sv': 'Swedish', 'es-us': 'Spanish (United States)', 'en-in': 'English (India)', 'it': 'Italian', 'sk': 'Slovak', 'af': 'Afrikaans', 'no': 'Norwegian', 'fi': 'Finnish', 'ja': 'Japanese', 'sw': 'Swahili', 'ro': 'Romanian', 'si': 'Sinhala', 'en-ph': 'English (Philippines)', 'es-es': 'Spanish (Spain)', 'pt-br': 'Portuguese (Brazil)', 'sr': 'Serbian', 'tr': 'Turkish', 'ml': 'Malayalam', 'de': 'German', 'mr': 'Marathi', 'en-za': 'English (South Africa)', 'en-tz': 'English (Tanzania)', 'la': 'Latin', 'ko': 'Korean', 'en-ng': 'English (Nigeria)', 'en-us': 'English (US)', 'en-nz': 'English (New Zealand)', 'is': 'Icelandic', 'my': 'Myanmar (Burmese)', 'es': 'Spanish', 'pl': 'Polish', 'sq': 'Albanian', 'km': 'Khmer', 'ne': 'Nepali', 'en-uk': 'English (UK)', 'hy': 'Armenian', 'zh-tw': 'Chinese (Mandarin/Taiwan)', 'en-gb': 'English (UK)', 'fr': 'French', 'en-ca': 'English (Canada)', 'nl': 'Dutch', 'ru': 'Russian', 'cy': 'Welsh', 'fr-ca': 'French (Canada)', 'th': 'Thai', 'el': 'Greek', 'su': 'Sundanese', 'cs': 'Czech', 'id': 'Indonesian', 'hu': 'Hungarian', 'uk': 'Ukrainian', 'en': 'English', 'da': 'Danish', 'vi': 'Vietnamese', 'ta': 'Tamil', 'pt': 'Portuguese', 'pt-pt': 'Portuguese (Portugal)', 'lv': 'Latvian', 'zh-cn': 'Chinese (Mandarin/China)', 'en-ie': 'English (Ireland)', 'hr': 'Croatian', 'tl': 'Filipino'} 2019-05-01 17:17:17,716 : DEBUG : pre-processing: <function tone_marks at 0x709e3d68> 2019-05-01 17:17:17,717 : DEBUG : pre-processing: <function end_of_line at 0x7096f198> 2019-05-01 17:17:17,718 : DEBUG : pre-processing: <function abbreviations at 0x7096f1e0> 2019-05-01 17:17:17,719 : DEBUG : pre-processing: <function word_sub at 0x7096f228> 2019-05-01 17:17:17,719 : DEBUG : text_parts: 1 2019-05-01 17:17:17,726 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443 2019-05-01 17:17:18,030 : DEBUG : https://translate.google.com:443 "GET / HTTP/1.1" 200 None 2019-05-01 17:17:18,126 : DEBUG : payload-0: {'ie': 'UTF-8', 'textlen': 20, 'tl': 'en', 'total': 1, 'tk': '571897.925905', 'q': 'Getting youtube link', 'client': 'tw-ob', 'ttsspeed': 1, 'idx': 0} 2019-05-01 17:17:18,135 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443 2019-05-01 17:17:18,370 : DEBUG : https://translate.google.com:443 "GET /translate_tts?ie=UTF-8&textlen=20&tl=en&total=1&tk=571897.925905&q=Getting+youtube+link&client=tw-ob&ttsspeed=1&idx=0 HTTP/1.1" 200 5952 2019-05-01 17:17:18,376 : DEBUG : headers-0: {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Connection': 'keep-alive', 'Accept-Encoding': 'gzip, deflate', 'Accept': '/', 'Referer': 'http://translate.google.com/'} 2019-05-01 17:17:18,377 : DEBUG : url-0: https://translate.google.com/translate_tts?ie=UTF-8&textlen=20&tl=en&total=1&tk=571897.925905&q=Getting+youtube+link&client=tw-ob&ttsspeed=1&idx=0 2019-05-01 17:17:18,377 : DEBUG : status-0: 200 2019-05-01 17:17:18,377 : DEBUG : part-0 written to <_io.BufferedWriter name='/tmp/female-say.mp3'> 2019-05-01 17:17:18,378 : DEBUG : Saved to /tmp/female-say.mp3 2019-05-01 17:17:20,013 : WARNING : file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth Traceback (most recent call last): File "/home/pi/env/lib/python3.5/site-packages/googleapiclient/discovery_cache/init.py", line 36, in autodetect from google.appengine.api import memcache ImportError: No module named 'google.appengine'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/pi/env/lib/python3.5/site-packages/googleapiclient/discovery_cache/file_cache.py", line 33, in from oauth2client.contrib.locked_file import LockedFile ImportError: No module named 'oauth2client.contrib.locked_file'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/pi/env/lib/python3.5/site-packages/googleapiclient/discovery_cache/file_cache.py", line 37, in from oauth2client.locked_file import LockedFile ImportError: No module named 'oauth2client.locked_file'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/pi/env/lib/python3.5/site-packages/googleapiclient/discovery_cache/init.py", line 41, in autodetect from . import file_cache File "/home/pi/env/lib/python3.5/site-packages/googleapiclient/discovery_cache/file_cache.py", line 41, in 'file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth') ImportError: file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth 2019-05-01 17:17:20,039 : INFO : URL being requested: GET https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest?key=AIzaSyAb6fgwDIRPBMeEE2D7iGxvaoKentZg6Y4 2019-05-01 17:17:20,637 : INFO : URL being requested: GET https://www.googleapis.com/youtube/v3/search?alt=json&q=hong+kong+one+by+plan+b&part=id%2Csnippet&key=AIzaSyAb6fgwDIRPBMeEE2D7iGxvaoKentZg6Y4 2019-05-01 17:19:48,542 : INFO : Keyword 1 detected at time: 2019-05-01 17:19:48 2019-05-01 17:19:59,810 : INFO : Keyword 1 detected at time: 2019-05-01 17:19:59 2019-05-01 17:20:11,055 : INFO : Keyword 1 detected at time: 2019-05-01 17:20:11 2019-05-01 17:20:14,914 : DEBUG : text: Getting youtube link 2019-05-01 17:20:14,916 : DEBUG : lang_check: True 2019-05-01 17:20:14,917 : DEBUG : tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\?).|(?<=\!).|(?<=\?).|(?<=\!).|(?<!\.[a-z])\. |(?<!\.[a-z])\, |\]|\—|\(|\¡|\[|\…|\、|\:|\¿|\;|\,|\\n|\‥|\،|\。|\:|\)', re.IGNORECASE) from: [<function tone_marks at 0x7096f2b8>, <function period_comma at 0x7096f300>, <function other_punctuation at 0x7096f348>]> 2019-05-01 17:20:14,918 : DEBUG : lang: en 2019-05-01 17:20:14,919 : DEBUG : slow: False 2019-05-01 17:20:14,919 : DEBUG : pre_processor_funcs: [<function tone_marks at 0x709e3d68>, <function end_of_line at 0x7096f198>, <function abbreviations at 0x7096f1e0>, <function word_sub at 0x7096f228>] 2019-05-01 17:20:14,942 : DEBUG : Starting new HTTP connection (1): translate.google.com:80 2019-05-01 17:20:15,069 : DEBUG : http://translate.google.com:80 "GET / HTTP/1.1" 302 226 2019-05-01 17:20:15,082 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443 2019-05-01 17:20:15,387 : DEBUG : https://translate.google.com:443 "GET / HTTP/1.1" 200 None 2019-05-01 17:20:15,625 : DEBUG : Starting new HTTP connection (1): translate.google.com:80 2019-05-01 17:20:15,711 : DEBUG : http://translate.google.com:80 "GET //translate/releases/twsfe_w_20190422_RC01/r/js/translate_m.js HTTP/1.1" 200 198678 2019-05-01 17:20:16,001 : DEBUG : langs: {'et': 'Estonian', 'hi': 'Hindi', 'eo': 'Esperanto', 'te': 'Telugu', 'fr-fr': 'French (France)', 'bn': 'Bengali', 'en-gh': 'English (Ghana)', 'en-au': 'English (Australia)', 'mk': 'Macedonian', 'jw': 'Javanese', 'bs': 'Bosnian', 'ar': 'Arabic', 'ca': 'Catalan', 'sv': 'Swedish', 'es-us': 'Spanish (United States)', 'en-in': 'English (India)', 'it': 'Italian', 'sk': 'Slovak', 'af': 'Afrikaans', 'no': 'Norwegian', 'fi': 'Finnish', 'ja': 'Japanese', 'sw': 'Swahili', 'ro': 'Romanian', 'si': 'Sinhala', 'en-ph': 'English (Philippines)', 'es-es': 'Spanish (Spain)', 'pt-br': 'Portuguese (Brazil)', 'sr': 'Serbian', 'tr': 'Turkish', 'ml': 'Malayalam', 'de': 'German', 'mr': 'Marathi', 'en-za': 'English (South Africa)', 'en-tz': 'English (Tanzania)', 'la': 'Latin', 'ko': 'Korean', 'en-ng': 'English (Nigeria)', 'en-us': 'English (US)', 'en-nz': 'English (New Zealand)', 'is': 'Icelandic', 'my': 'Myanmar (Burmese)', 'es': 'Spanish', 'pl': 'Polish', 'sq': 'Albanian', 'km': 'Khmer', 'ne': 'Nepali', 'en-uk': 'English (UK)', 'hy': 'Armenian', 'zh-tw': 'Chinese (Mandarin/Taiwan)', 'en-gb': 'English (UK)', 'fr': 'French', 'en-ca': 'English (Canada)', 'nl': 'Dutch', 'ru': 'Russian', 'cy': 'Welsh', 'fr-ca': 'French (Canada)', 'th': 'Thai', 'el': 'Greek', 'su': 'Sundanese', 'cs': 'Czech', 'id': 'Indonesian', 'hu': 'Hungarian', 'uk': 'Ukrainian', 'en': 'English', 'da': 'Danish', 'vi': 'Vietnamese', 'ta': 'Tamil', 'pt': 'Portuguese', 'pt-pt': 'Portuguese (Portugal)', 'lv': 'Latvian', 'zh-cn': 'Chinese (Mandarin/China)', 'en-ie': 'English (Ireland)', 'hr': 'Croatian', 'tl': 'Filipino'} 2019-05-01 17:20:16,002 : DEBUG : pre-processing: <function tone_marks at 0x709e3d68> 2019-05-01 17:20:16,003 : DEBUG : pre-processing: <function end_of_line at 0x7096f198> 2019-05-01 17:20:16,004 : DEBUG : pre-processing: <function abbreviations at 0x7096f1e0> 2019-05-01 17:20:16,005 : DEBUG : pre-processing: <function word_sub at 0x7096f228> 2019-05-01 17:20:16,005 : DEBUG : text_parts: 1 2019-05-01 17:20:16,013 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443 2019-05-01 17:20:16,330 : DEBUG : https://translate.google.com:443 "GET / HTTP/1.1" 200 None 2019-05-01 17:20:16,446 : DEBUG : payload-0: {'ie': 'UTF-8', 'textlen': 20, 'tl': 'en', 'total': 1, 'tk': '571897.925905', 'q': 'Getting youtube link', 'client': 'tw-ob', 'ttsspeed': 1, 'idx': 0} 2019-05-01 17:20:16,454 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443 2019-05-01 17:20:16,690 : DEBUG : https://translate.google.com:443 "GET /translate_tts?ie=UTF-8&textlen=20&tl=en&total=1&tk=571897.925905&q=Getting+youtube+link&client=tw-ob&ttsspeed=1&idx=0 HTTP/1.1" 200 5952 2019-05-01 17:20:16,698 : DEBUG : headers-0: {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Connection': 'keep-alive', 'Accept-Encoding': 'gzip, deflate', 'Accept': '/', 'Referer': 'http://translate.google.com/'} 2019-05-01 17:20:16,699 : DEBUG : url-0: https://translate.google.com/translate_tts?ie=UTF-8&textlen=20&tl=en&total=1&tk=571897.925905&q=Getting+youtube+link&client=tw-ob&ttsspeed=1&idx=0 2019-05-01 17:20:16,700 : DEBUG : status-0: 200 2019-05-01 17:20:16,701 : DEBUG : part-0 written to <_io.BufferedWriter name='/tmp/female-say.mp3'> 2019-05-01 17:20:16,702 : DEBUG : Saved to /tmp/female-say.mp3 2019-05-01 17:20:18,334 : WARNING : file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth Traceback (most recent call last): File "/home/pi/env/lib/python3.5/site-packages/googleapiclient/discovery_cache/init.py", line 36, in autodetect from google.appengine.api import memcache ImportError: No module named 'google.appengine'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/pi/env/lib/python3.5/site-packages/googleapiclient/discovery_cache/file_cache.py", line 33, in from oauth2client.contrib.locked_file import LockedFile ImportError: No module named 'oauth2client.contrib.locked_file'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/pi/env/lib/python3.5/site-packages/googleapiclient/discovery_cache/file_cache.py", line 37, in from oauth2client.locked_file import LockedFile ImportError: No module named 'oauth2client.locked_file'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/pi/env/lib/python3.5/site-packages/googleapiclient/discovery_cache/init.py", line 41, in autodetect from . import file_cache File "/home/pi/env/lib/python3.5/site-packages/googleapiclient/discovery_cache/file_cache.py", line 41, in 'file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth') ImportError: file_cache is unavailable when using oauth2client >= 4.0.0 or google-auth 2019-05-01 17:20:18,336 : INFO : URL being requested: GET https://www.googleapis.com/discovery/v1/apis/youtube/v3/rest?key=AIzaSyAb6fgwDIRPBMeEE2D7iGxvaoKentZg6Y4 2019-05-01 17:21:18,459 : DEBUG : text: Encountered an exception please check the logs. 2019-05-01 17:21:18,460 : DEBUG : lang_check: True 2019-05-01 17:21:18,462 : DEBUG : tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\?).|(?<=\!).|(?<=\?).|(?<=\!).|(?<!\.[a-z])\. |(?<!\.[a-z])\, |\]|\—|\(|\¡|\[|\…|\、|\:|\¿|\;|\,|\\n|\‥|\،|\。|\:|\)', re.IGNORECASE) from: [<function tone_marks at 0x7096f2b8>, <function period_comma at 0x7096f300>, <function other_punctuation at 0x7096f348>]> 2019-05-01 17:21:18,463 : DEBUG : lang: en 2019-05-01 17:21:18,464 : DEBUG : slow: False 2019-05-01 17:21:18,465 : DEBUG : pre_processor_funcs: [<function tone_marks at 0x709e3d68>, <function end_of_line at 0x7096f198>, <function abbreviations at 0x7096f1e0>, <function word_sub at 0x7096f228>] 2019-05-01 17:21:18,481 : DEBUG : Starting new HTTP connection (1): translate.google.com:80 2019-05-01 17:21:18,603 : DEBUG : http://translate.google.com:80 "GET / HTTP/1.1" 302 226 2019-05-01 17:21:18,615 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443 2019-05-01 17:21:18,895 : DEBUG : https://translate.google.com:443 "GET / HTTP/1.1" 200 None 2019-05-01 17:21:19,129 : DEBUG : Starting new HTTP connection (1): translate.google.com:80 2019-05-01 17:21:19,226 : DEBUG : http://translate.google.com:80 "GET //translate/releases/twsfe_w_20190422_RC01/r/js/translate_m.js HTTP/1.1" 200 198678 2019-05-01 17:21:19,522 : DEBUG : langs: {'et': 'Estonian', 'hi': 'Hindi', 'eo': 'Esperanto', 'te': 'Telugu', 'fr-fr': 'French (France)', 'bn': 'Bengali', 'en-gh': 'English (Ghana)', 'en-au': 'English (Australia)', 'mk': 'Macedonian', 'jw': 'Javanese', 'bs': 'Bosnian', 'ar': 'Arabic', 'ca': 'Catalan', 'sv': 'Swedish', 'es-us': 'Spanish (United States)', 'en-in': 'English (India)', 'it': 'Italian', 'sk': 'Slovak', 'af': 'Afrikaans', 'no': 'Norwegian', 'fi': 'Finnish', 'ja': 'Japanese', 'sw': 'Swahili', 'ro': 'Romanian', 'si': 'Sinhala', 'en-ph': 'English (Philippines)', 'es-es': 'Spanish (Spain)', 'pt-br': 'Portuguese (Brazil)', 'sr': 'Serbian', 'tr': 'Turkish', 'ml': 'Malayalam', 'de': 'German', 'mr': 'Marathi', 'en-za': 'English (South Africa)', 'en-tz': 'English (Tanzania)', 'la': 'Latin', 'ko': 'Korean', 'en-ng': 'English (Nigeria)', 'en-us': 'English (US)', 'en-nz': 'English (New Zealand)', 'is': 'Icelandic', 'my': 'Myanmar (Burmese)', 'es': 'Spanish', 'pl': 'Polish', 'sq': 'Albanian', 'km': 'Khmer', 'ne': 'Nepali', 'en-uk': 'English (UK)', 'hy': 'Armenian', 'zh-tw': 'Chinese (Mandarin/Taiwan)', 'en-gb': 'English (UK)', 'fr': 'French', 'en-ca': 'English (Canada)', 'nl': 'Dutch', 'ru': 'Russian', 'cy': 'Welsh', 'fr-ca': 'French (Canada)', 'th': 'Thai', 'el': 'Greek', 'su': 'Sundanese', 'cs': 'Czech', 'id': 'Indonesian', 'hu': 'Hungarian', 'uk': 'Ukrainian', 'en': 'English', 'da': 'Danish', 'vi': 'Vietnamese', 'ta': 'Tamil', 'pt': 'Portuguese', 'pt-pt': 'Portuguese (Portugal)', 'lv': 'Latvian', 'zh-cn': 'Chinese (Mandarin/China)', 'en-ie': 'English (Ireland)', 'hr': 'Croatian', 'tl': 'Filipino'} 2019-05-01 17:21:19,524 : DEBUG : pre-processing: <function tone_marks at 0x709e3d68> 2019-05-01 17:21:19,525 : DEBUG : pre-processing: <function end_of_line at 0x7096f198> 2019-05-01 17:21:19,526 : DEBUG : pre-processing: <function abbreviations at 0x7096f1e0> 2019-05-01 17:21:19,527 : DEBUG : pre-processing: <function word_sub at 0x7096f228> 2019-05-01 17:21:19,528 : DEBUG : text_parts: 1 2019-05-01 17:21:19,535 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443 2019-05-01 17:21:19,856 : DEBUG : https://translate.google.com:443 "GET / HTTP/1.1" 200 None 2019-05-01 17:21:19,951 : DEBUG : payload-0: {'ie': 'UTF-8', 'textlen': 47, 'tl': 'en', 'total': 1, 'tk': '188627.293371', 'q': 'Encountered an exception please check the logs.', 'client': 'tw-ob', 'ttsspeed': 1, 'idx': 0} 2019-05-01 17:21:19,960 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443 2019-05-01 17:21:20,173 : DEBUG : https://translate.google.com:443 "GET /translate_tts?ie=UTF-8&textlen=47&tl=en&total=1&tk=188627.293371&q=Encountered+an+exception+please+check+the+logs.&client=tw-ob&ttsspeed=1&idx=0 HTTP/1.1" 200 13056 2019-05-01 17:21:20,182 : DEBUG : headers-0: {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Connection': 'keep-alive', 'Accept-Encoding': 'gzip, deflate', 'Accept': '/', 'Referer': 'http://translate.google.com/'} 2019-05-01 17:21:20,183 : DEBUG : url-0: https://translate.google.com/translate_tts?ie=UTF-8&textlen=47&tl=en&total=1&tk=188627.293371&q=Encountered+an+exception+please+check+the+logs.&client=tw-ob&ttsspeed=1&idx=0 2019-05-01 17:21:20,183 : DEBUG : status-0: 200 2019-05-01 17:21:20,184 : DEBUG : part-0 written to <_io.BufferedWriter name='/tmp/female-say.mp3'> 2019-05-01 17:21:20,184 : DEBUG : Saved to /tmp/female-say.mp3

shivasiddharth commented 5 years ago

Attach the log file

BarryAlvord commented 5 years ago

@shivasiddharth i just Attach the log file recently please help me

shivasiddharth commented 5 years ago

Your youtube_dl must be outdated. Check https://github.com/shivasiddharth/GassistPi/issues/521#issuecomment-420043868

BarryAlvord commented 5 years ago

After I upgraded it still run into the same issue like before

shivasiddharth commented 5 years ago

Post your new logs

BarryAlvord commented 5 years ago

GassistPi.log Here is my full log after i delete the old log and have the new log thet have the error pls hlep me @shivasiddharth

shivasiddharth commented 5 years ago

Share the output of

source env/bin/activate
pip freeze
BarryAlvord commented 5 years ago

(env) root@raspberrypi:/home/pi# pip freeze adafruit-io==2.1 aftership==0.2 appdirs==1.4.3 asn1crypto==0.24.0 beautifulsoup4==4.7.1 bs4==0.0.1 cachetools==3.1.0 casttube==0.2.0 certifi==2019.3.9 cffi==1.12.3 chardet==3.0.4 click==6.7 colorzero==1.1 cryptography==2.4.2 decorator==4.4.0 enum34==1.1.6 feedparser==5.2.1 future==0.17.1 futures==3.1.1 gmusicapi==12.1.0 google-api-core==1.10.0 google-api-python-client==1.7.8 google-assistant-grpc==0.2.1 google-assistant-library==1.0.1 google-assistant-sdk==0.5.1 google-auth==1.6.3 google-auth-httplib2==0.0.3 google-auth-oauthlib==0.3.0 google-cloud-speech==0.36.0 google-cloud-texttospeech==0.3.0 googleapis-common-protos==1.5.10 googletrans==2.3.0 gpiozero==1.5.0 gpsoauth==0.4.1 grpcio==1.20.1 gTTS==2.0.2 gTTS-token==1.1.3 httplib2==0.12.3 idna==2.8 ifaddr==0.1.6 kodi-json==1.0.0 lxml==4.3.3 MechanicalSoup==0.11.0 mock==2.0.0 mutagen==1.42.0 numpy==1.16.3 oauth2client==4.1.3 oauthlib==3.0.1 pafy==0.5.4 paho-mqtt==1.4.0 pathlib2==2.3.3 pbr==5.2.0 pkg-resources==0.0.0 proboscis==1.2.6.0 protobuf==3.7.1 psutil==5.6.2 pushbullet.py==0.11.0 pyasn1==0.4.5 pyasn1-modules==0.2.5 PyAudio==0.2.11 PyChromecast==3.2.1 pycparser==2.19 pycryptodomex==3.7.2 python-dateutil==2.8.0 python-magic==0.4.15 python-vlc==3.0.6109 pytz==2019.1 PyYAML==3.13 requests==2.21.0 requests-oauthlib==1.2.0 RPi.GPIO==0.6.3 rsa==4.0 six==1.12.0 sounddevice==0.3.13 soupsieve==1.9.1 spidev==3.4 spotipy==2.4.4 tenacity==4.12.0 uritemplate==3.0.0 urllib3==1.24.2 validictory==1.1.2 websocket-client==0.56.0 youtube-dl==2019.4.30 zeroconf==0.22.0

@shivasiddharth here is the output

shivasiddharth commented 5 years ago

Can you manually start the assistant, give the youtube command and then post here the contents of your terminal ?

BarryAlvord commented 5 years ago

Here is my terminal output: Assistant is listening.... ON_CONVERSATION_TURN_STARTED

ON_END_OF_UTTERANCE

ON_END_OF_UTTERANCE

ON_RECOGNIZING_SPEECH_FINISHED: {"text": "play Hong Kong one by Plan B from YouTube"}

stopping vlc

High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.23.8; written and copyright by Michael Hipp and others free software (LGPL) without any warranty but with best wishes

Directory: /tmp/

Terminal control enabled, press 'h' for listing of keys and functions.

Playing MPEG stream 1 of 1: female-say.mp3 ...

MPEG 2.0 L III cbr32 24000 mono

[0:01] Decoding of female-say.mp3 finished. hong kong one by plan b https://r3---sn-8qj-i5ok.googlevideo.com/videoplayback?id=o-AEkFcWxdWXeNLn8blYZ6zvZkZd1y-Kt54-kG7cBb6TvI&itag=251&source=youtube&requiressl=yes&mm=31%2C26&mn=sn-8qj-i5ok%2Csn-i3b7knld&ms=au%2Conr&mv=m&pl=20&ei=Zx7LXMzeONrGgAPhx6q4Bg&initcwndbps=861250&mime=audio%2Fwebm&gir=yes&clen=4507582&dur=264.821&lmt=1539376375051084&mt=1556815379&fvip=3&keepalive=yes&c=WEB&txp=5511222&ip=14.177.11.222&ipbits=0&expire=1556837064&sparams=ip%2Cipbits%2Cexpire%2Cid%2Citag%2Csource%2Crequiressl%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cei%2Cinitcwndbps%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&signature=3E8A33040026FDB842B8FC68ABE0086A8F862E04.BFBC22B622C3D88C468FEE45A12CB8FADDFDE37C&key=yt8&ratebypass=yes [01d43880] vlcpulse audio output error: PulseAudio server connection failure: Connection refused ON_CONVERSATION_TURN_FINISHED: {"with_follow_on_turn": false}

[6874d6d0] main tls client error: TLS session handshake timeout [6874d6d0] main tls client error: connection error: Resource temporarily unavailable

It start freezing right here for so long at "stopping vlc" (for 10 min) But sometime is does not work

BarryAlvord commented 5 years ago

Here is another terminal output:

ON_RECOGNIZING_SPEECH_FINISHED: {"text": "play Heaven by Kane Brown on YouTube"}

stopping vlc High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.23.8; written and copyright by Michael Hipp and others free software (LGPL) without any warranty but with best wishes

Directory: /tmp/

Terminal control enabled, press 'h' for listing of keys and functions.

Playing MPEG stream 1 of 1: female-say.mp3 ...

MPEG 2.0 L III cbr32 24000 mono

[0:01] Decoding of female-say.mp3 finished. heaven by kane brown on youtub timed out High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.23.8; written and copyright by Michael Hipp and others free software (LGPL) without any warranty but with best wishes

Directory: /tmp/

Terminal control enabled, press 'h' for listing of keys and functions.

Playing MPEG stream 1 of 1: female-say.mp3 ...

MPEG 2.0 L III cbr32 24000 mono

[0:03] Decoding of female-say.mp3 finished. ON_CONVERSATION_TURN_FINISHED: {"with_follow_on_turn": false}

shivasiddharth commented 4 years ago

Closing this for inactivity.