Closed MIKHANYA closed 2 years ago
Your API key is invalid. Check your API key.
i changed api key 2 times but the problem remains. like in this https://cdn.shopify.com/s/files/1/0260/1864/4031/files/apiKey_1024x1024.png?v=1605774200
2021-11-30 15:29:52,898 : DEBUG : Making request: POST https://accounts.google.com/o/oauth2/token 2021-11-30 15:29:52,904 : DEBUG : Starting new HTTPS connection (1): accounts.google.com:443 2021-11-30 15:29:53,088 : DEBUG : https://accounts.google.com:443 "POST /o/oauth2/token HTTP/1.1" 200 None 2021-11-30 15:30:08,291 : DEBUG : text: Getting youtube link 2021-11-30 15:30:08,292 : DEBUG : tld: com 2021-11-30 15:30:08,293 : DEBUG : lang: en 2021-11-30 15:30:08,293 : DEBUG : slow: False 2021-11-30 15:30:08,293 : DEBUG : lang_check: True 2021-11-30 15:30:08,294 : DEBUG : pre_processor_funcs: [<function tone_marks at 0xb31f4cd8>, <function end_of_line at 0xb31f4e40>, <function abbreviations at 0xb31f4f1$ 2021-11-30 15:30:08,294 : DEBUG : tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\?).|(?<=!).|(?<=?).|(?<=!).|(?<!\.[a-z])\. |(?<!\.[a-z]), |(?<!$ 2021-11-30 15:30:08,295 : DEBUG : langs: {'af': 'Afrikaans', 'ar': 'Arabic', 'bg': 'Bulgarian', 'bn': 'Bengali', 'bs': 'Bosnian', 'ca': 'Catalan', 'cs': 'Czech', 'cy':$ 2021-11-30 15:30:08,296 : DEBUG : pre-processing: <function tone_marks at 0xb31f4cd8> 2021-11-30 15:30:08,301 : DEBUG : pre-processing: <function end_of_line at 0xb31f4e40> 2021-11-30 15:30:08,302 : DEBUG : pre-processing: <function abbreviations at 0xb31f4f18> 2021-11-30 15:30:08,308 : DEBUG : pre-processing: <function word_sub at 0xb3207348> 2021-11-30 15:30:08,309 : DEBUG : text_parts: ['Getting youtube link'] 2021-11-30 15:30:08,310 : DEBUG : textparts: 1 2021-11-30 15:30:08,311 : DEBUG : data-0: f.req=%5B%5B%5B%22jQ1olc%22%2C%22%5B%5C%22Getting%20youtube%20link%5C%22%2C%5C%22en%5C%22%2Cnull%2C%5C%22null%5C%22%5D%22%2Cn$ 2021-11-30 15:30:08,320 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443 2021-11-30 15:30:08,511 : DEBUG : https://translate.google.com:443 "POST //TranslateWebserverUi/data/batchexecute HTTP/1.1" 200 None 2021-11-30 15:30:08,518 : DEBUG : headers-0: {'Referer': 'http://translate.google.com/', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML,$ 2021-11-30 15:30:08,519 : DEBUG : url-0: https://translate.google.com/_/TranslateWebserverUi/data/batchexecute 2021-11-30 15:30:08,519 : DEBUG : status-0: 200 2021-11-30 15:30:08,521 : DEBUG : part-0 written to <_io.BufferedWriter name='/tmp/female-say.mp3'> 2021-11-30 15:30:08,523 : DEBUG : Saved to /tmp/female-say.mp3 2021-11-30 15:30:10,600 : INFO : file_cache is only supported with oauth2client<4.0.0 2021-11-30 15:30:10,648 : DEBUG : URL being requested: GET https://youtube.googleapis.com/youtube/v3/search?q=youtub&part=id%2Csnippet&key=AIzaSyAJENMDGeDEGRCxwQb2DFxe$ 2021-11-30 15:30:13,492 : DEBUG : text: Encountered an exception please check the logs. 2021-11-30 15:30:13,494 : DEBUG : tld: com 2021-11-30 15:30:13,494 : DEBUG : lang: en 2021-11-30 15:30:13,494 : DEBUG : slow: False 2021-11-30 15:30:13,494 : DEBUG : lang_check: True 2021-11-30 15:30:13,495 : DEBUG : pre_processor_funcs: [<function tone_marks at 0xb31f4cd8>, <function end_of_line at 0xb31f4e40>, <function abbreviations at 0xb31f4f1$ 2021-11-30 15:30:13,495 : DEBUG : tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\?).|(?<=!).|(?<=?).|(?<=!).|(?<!\.[a-z])\. |(?<!\.[a-z]), |(?<!$ 2021-11-30 15:30:13,495 : DEBUG : langs: {'af': 'Afrikaans', 'ar': 'Arabic', 'bg': 'Bulgarian', 'bn': 'Bengali', 'bs': 'Bosnian', 'ca': 'Catalan', 'cs': 'Czech', 'cy':$ 2021-11-30 15:30:13,496 : DEBUG : pre-processing: <function tone_marks at 0xb31f4cd8> 2021-11-30 15:30:13,497 : DEBUG : pre-processing: <function end_of_line at 0xb31f4e40> 2021-11-30 15:30:13,497 : DEBUG : pre-processing: <function abbreviations at 0xb31f4f18> 2021-11-30 15:30:13,499 : DEBUG : pre-processing: <function word_sub at 0xb3207348> [ Read 95 lines ]
What is this Shopify, etc. It does not belong to this project.
What is this Shopify, etc. It does not belong to this project.
someone made a guide on your guide https://store.createlabz.com/blogs/createlabz-tutorials/google-assistant2-4-integration-of-youtube-and-spotify-on-raspberry-pi?_pos=2&_sid=c34cd5a66&_ss=r
in Your Guide https://gassistpi-documentation.readthedocs.io/en/latest/customization.html#adding-custom-search-api-and-generating-api-key I do not understand where № 7 item is located
That post you shared has some additional commands for some hanging issue. I do not support third party guides. Certain library versions are frozen for a reason. Running additional commands break these. I would suggest you to drop a comment in that blog and seek help from the blog post creator. The part for spotify has also changed.
That post you shared has some additional commands for some hanging issue. I do not support third party guides. Certain library versions are frozen for a reason. Running additional commands break these. I would suggest you to drop a comment in that blog and seek help from the blog post creator. The part for spotify has also changed.
It looks like I was late and missed the peak of popularity of the project :( . I used only Your guide https://gassistpi-documentation.readthedocs.io/en/latest/ and no other people's code, I just took a picture that supported my question. It looks like a lot here is outdated and just doesn't work like in the guide.
Other than Snowboy, pretty much everything else is functional. Run the following command and share the output
source env/bin/activate
pip list
The log that you have posted here is truncated. If you see almost all the lines in the log are ending with $ That is why the API is showing up as invalid. I am re-opening this issue.
What is the language that you have set in config.yaml ? Post the language here as how you have in the file.
I'm having practically an identical issue when asking to play a song from youtube. It was working fine a couple weeks ago with no changes. Language in config.yaml is the default 'en-US'
processor : 0 model name : ARMv7 Processor rev 4 (v7l) BogoMIPS : 51.20 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 : 51.20 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 : 51.20 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 : 51.20 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 : 2a020d3 Serial : 000000001079adb7 Model : Raspberry Pi 3 Model B Plus Rev 1.3
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"
Raspberry Pi reference 2021-05-07 Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, dcfd74d7d1fa293065ac6d565711e9ff891fe2b8, stage2
pip list:
Package Version
adafruit-io 2.1 aftership 1.3.0 cachetools 4.2.4 casttube 0.2.1 certifi 2021.10.8 cffi 1.15.0 chardet 3.0.4 charset-normalizer 2.0.7 click 6.7 colorzero 2.0 cryptography 3.3.2 Deprecated 1.2.13 enum34 1.1.10 feedparser 6.0.8 futures 3.1.1 google-api-core 1.31.3 google-api-python-client 2.29.0 google-assistant-grpc 0.2.1 google-assistant-library 1.1.0 google-assistant-sdk 0.6.0 google-auth 1.35.0 google-auth-httplib2 0.1.0 google-auth-oauthlib 0.2.0 google-cloud-speech 0.36.0 google-cloud-texttospeech 0.3.0 googleapis-common-protos 1.53.0 googletrans 3.1.0a0 gpiozero 1.6.2 grpcio 1.38.1 gTTS 2.2.3 gTTS-token 1.1.4 h11 0.9.0 h2 3.2.0 hpack 3.0.0 hstspreload 2021.11.1 httpcore 0.9.1 httplib2 0.20.2 httpx 0.13.3 hyperframe 5.2.0 idna 2.10 ifaddr 0.1.7 importlib-metadata 4.8.1 kodi-json 1.0.0 mock 3.0.5 netifaces 0.11.0 numpy 1.21.3 oauth2client 4.1.3 oauthlib 3.1.1 packaging 21.2 pafy 0.5.5 paho-mqtt 1.4.0 pathlib2 2.3.6 pip 21.3.1 pkg_resources 0.0.0 protobuf 3.17.3 psutil 5.8.0 pushbullet.py 0.12.0 pvporcupine 1.9.5 pyasn1 0.4.8 pyasn1-modules 0.2.8 PyAudio 0.2.11 PyChromecast 9.3.1 pycparser 2.20 pycryptodomex 3.7.2 pyOpenSSL 21.0.0 pyparsing 2.4.7 python-magic 0.4.24 python-vlc 3.0.12118 pytz 2021.3 pyusb 1.2.1 pywemo 0.4.39 PyYAML 6.0 redis 4.0.2 requests 2.26.0 requests-oauthlib 1.3.0 rfc3986 1.5.0 RPi.GPIO 0.7.0 rsa 4.7.2 setuptools 59.4.0 sgmllib3k 1.0.0 six 1.16.0 sniffio 1.2.0 sounddevice 0.3.15 SoundFile 0.10.3.post1 spidev 3.5 spotipy 2.19.0 tenacity 4.12.0 typing-extensions 3.10.0.2 uritemplate 4.1.1 urllib3 1.26.7 websocket-client 1.2.1 wheel 0.37.0 wrapt 1.13.3 youtube-dl 2021.6.6 zeroconf 0.36.11 zipp 3.6.0
log:
2021-12-03 14:15:35,181 : DEBUG : Making request: POST https://accounts.google.com/o/oauth2/token 2021-12-03 14:15:35,188 : DEBUG : Starting new HTTPS connection (1): accounts.google.com:443 2021-12-03 14:15:35,561 : DEBUG : https://accounts.google.com:443 "POST /o/oauth2/token HTTP/1.1" 200 None 2021-12-03 14:15:47,853 : DEBUG : text: Getting youtube link 2021-12-03 14:15:47,854 : DEBUG : tld: com 2021-12-03 14:15:47,855 : DEBUG : lang: en 2021-12-03 14:15:47,855 : DEBUG : slow: False 2021-12-03 14:15:47,855 : DEBUG : lang_check: True 2021-12-03 14:15:47,856 : DEBUG : pre_processor_funcs: [<function tone_marks at 0x73224660>, <function end_of_line at 0x732247c8>, <function abbreviations at 0x732248a0>, <function word_sub at 0x73224c90>] 2021-12-03 14:15:47,856 : DEBUG : tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\?).|(?<=!).|(?<=?).|(?<=!).|(?<!\.[a-z])\. |(?<!\.[a-z]), |(?<!\d):|—|¿|،|,|\\n|…|:|‥|\]|、|。|;|\(|\)|¡|\[', re.IGNORECASE) from: [<function tone_marks at 0x73224d20>, <function period_comma at 0x73224d68>, <function colon at 0x73224db0>, <function other_punctuation at 0x73224df8>]> 2021-12-03 14:15:47,857 : DEBUG : langs: {'af': 'Afrikaans', 'ar': 'Arabic', 'bg': 'Bulgarian', 'bn': 'Bengali', 'bs': 'Bosnian', 'ca': 'Catalan', 'cs': 'Czech', 'cy': 'Welsh', 'da': 'Danish', 'de': 'German', 'el': 'Greek', 'en': 'English', 'eo': 'Esperanto', 'es': 'Spanish', 'et': 'Estonian', 'fi': 'Finnish', 'fr': 'French', 'gu': 'Gujarati', 'hi': 'Hindi', 'hr': 'Croatian', 'hu': 'Hungarian', 'hy': 'Armenian', 'id': 'Indonesian', 'is': 'Icelandic', 'it': 'Italian', 'ja': 'Japanese', 'jw': 'Javanese', 'km': 'Khmer', 'kn': 'Kannada', 'ko': 'Korean', 'la': 'Latin', 'lv': 'Latvian', 'mk': 'Macedonian', 'ml': 'Malayalam', 'mr': 'Marathi', 'my': 'Myanmar (Burmese)', 'ne': 'Nepali', 'nl': 'Dutch', 'no': 'Norwegian', 'pl': 'Polish', 'pt': 'Portuguese', 'ro': 'Romanian', 'ru': 'Russian', 'si': 'Sinhala', 'sk': 'Slovak', 'sq': 'Albanian', 'sr': 'Serbian', 'su': 'Sundanese', 'sv': 'Swedish', 'sw': 'Swahili', 'ta': 'Tamil', 'te': 'Telugu', 'th': 'Thai', 'tl': 'Filipino', 'tr': 'Turkish', 'uk': 'Ukrainian', 'ur': 'Urdu', 'vi': 'Vietnamese', 'zh-CN': 'Chinese', 'zh-TW': 'Chinese (Mandarin/Taiwan)', 'zh': 'Chinese (Mandarin)'} 2021-12-03 14:15:47,858 : DEBUG : pre-processing: <function tone_marks at 0x73224660> 2021-12-03 14:15:47,863 : DEBUG : pre-processing: <function end_of_line at 0x732247c8> 2021-12-03 14:15:47,864 : DEBUG : pre-processing: <function abbreviations at 0x732248a0> 2021-12-03 14:15:47,876 : DEBUG : pre-processing: <function word_sub at 0x73224c90> 2021-12-03 14:15:47,878 : DEBUG : text_parts: ['Getting youtube link'] 2021-12-03 14:15:47,879 : DEBUG : textparts: 1 2021-12-03 14:15:47,881 : DEBUG : data-0: f.req=%5B%5B%5B%22jQ1olc%22%2C%22%5B%5C%22Getting%20youtube%20link%5C%22%2C%5C%22en%5C%22%2Cnull%2C%5C%22null%5C%22%5D%22%2Cnull%2C%22generic%22%5D%5D%5D& 2021-12-03 14:15:47,891 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443 2021-12-03 14:15:48,256 : DEBUG : https://translate.google.com:443 "POST //TranslateWebserverUi/data/batchexecute HTTP/1.1" 200 None 2021-12-03 14:15:48,279 : DEBUG : headers-0: {'Referer': 'http://translate.google.com/', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Content-Length': '154'} 2021-12-03 14:15:48,279 : DEBUG : url-0: https://translate.google.com/_/TranslateWebserverUi/data/batchexecute 2021-12-03 14:15:48,280 : DEBUG : status-0: 200 2021-12-03 14:15:48,281 : DEBUG : part-0 written to <_io.BufferedWriter name='/tmp/female-say.mp3'> 2021-12-03 14:15:48,282 : DEBUG : Saved to /tmp/female-say.mp3 2021-12-03 14:15:50,012 : INFO : file_cache is only supported with oauth2client<4.0.0 2021-12-03 14:15:50,079 : DEBUG : URL being requested: GET https://youtube.googleapis.com/youtube/v3/search?q=i+got+you&part=id%2Csnippet&key=AIzaSyDiJY6q2L2ay399pu0_58u9wOzjRgbjBYI&alt=json 2021-12-03 14:16:13,057 : DEBUG : text: Encountered an exception please check the logs. 2021-12-03 14:16:13,058 : DEBUG : tld: com 2021-12-03 14:16:13,058 : DEBUG : lang: en 2021-12-03 14:16:13,058 : DEBUG : slow: False 2021-12-03 14:16:13,059 : DEBUG : lang_check: True 2021-12-03 14:16:13,059 : DEBUG : pre_processor_funcs: [<function tone_marks at 0x73224660>, <function end_of_line at 0x732247c8>, <function abbreviations at 0x732248a0>, <function word_sub at 0x73224c90>] 2021-12-03 14:16:13,059 : DEBUG : tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\?).|(?<=!).|(?<=?).|(?<=!).|(?<!\.[a-z])\. |(?<!\.[a-z]), |(?<!\d):|—|¿|،|,|\\n|…|:|‥|\]|、|。|;|\(|\)|¡|\[', re.IGNORECASE) from: [<function tone_marks at 0x73224d20>, <function period_comma at 0x73224d68>, <function colon at 0x73224db0>, <function other_punctuation at 0x73224df8>]> 2021-12-03 14:16:13,060 : DEBUG : langs: {'af': 'Afrikaans', 'ar': 'Arabic', 'bg': 'Bulgarian', 'bn': 'Bengali', 'bs': 'Bosnian', 'ca': 'Catalan', 'cs': 'Czech', 'cy': 'Welsh', 'da': 'Danish', 'de': 'German', 'el': 'Greek', 'en': 'English', 'eo': 'Esperanto', 'es': 'Spanish', 'et': 'Estonian', 'fi': 'Finnish', 'fr': 'French', 'gu': 'Gujarati', 'hi': 'Hindi', 'hr': 'Croatian', 'hu': 'Hungarian', 'hy': 'Armenian', 'id': 'Indonesian', 'is': 'Icelandic', 'it': 'Italian', 'ja': 'Japanese', 'jw': 'Javanese', 'km': 'Khmer', 'kn': 'Kannada', 'ko': 'Korean', 'la': 'Latin', 'lv': 'Latvian', 'mk': 'Macedonian', 'ml': 'Malayalam', 'mr': 'Marathi', 'my': 'Myanmar (Burmese)', 'ne': 'Nepali', 'nl': 'Dutch', 'no': 'Norwegian', 'pl': 'Polish', 'pt': 'Portuguese', 'ro': 'Romanian', 'ru': 'Russian', 'si': 'Sinhala', 'sk': 'Slovak', 'sq': 'Albanian', 'sr': 'Serbian', 'su': 'Sundanese', 'sv': 'Swedish', 'sw': 'Swahili', 'ta': 'Tamil', 'te': 'Telugu', 'th': 'Thai', 'tl': 'Filipino', 'tr': 'Turkish', 'uk': 'Ukrainian', 'ur': 'Urdu', 'vi': 'Vietnamese', 'zh-CN': 'Chinese', 'zh-TW': 'Chinese (Mandarin/Taiwan)', 'zh': 'Chinese (Mandarin)'} 2021-12-03 14:16:13,063 : DEBUG : pre-processing: <function tone_marks at 0x73224660> 2021-12-03 14:16:13,065 : DEBUG : pre-processing: <function end_of_line at 0x732247c8> 2021-12-03 14:16:13,066 : DEBUG : pre-processing: <function abbreviations at 0x732248a0> 2021-12-03 14:16:13,070 : DEBUG : pre-processing: <function word_sub at 0x73224c90> 2021-12-03 14:16:13,071 : DEBUG : text_parts: ['Encountered an exception please check the logs.'] 2021-12-03 14:16:13,072 : DEBUG : textparts: 1 2021-12-03 14:16:13,072 : DEBUG : data-0: f.req=%5B%5B%5B%22jQ1olc%22%2C%22%5B%5C%22Encountered%20an%20exception%20please%20check%20the%20logs.%5C%22%2C%5C%22en%5C%22%2Cnull%2C%5C%22null%5C%22%5D%22%2Cnull%2C%22generic%22%5D%5D%5D& 2021-12-03 14:16:13,077 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443 2021-12-03 14:16:13,475 : DEBUG : https://translate.google.com:443 "POST //TranslateWebserverUi/data/batchexecute HTTP/1.1" 200 None 2021-12-03 14:16:13,588 : DEBUG : headers-0: {'Referer': 'http://translate.google.com/', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Content-Length': '189'} 2021-12-03 14:16:13,589 : DEBUG : url-0: https://translate.google.com/_/TranslateWebserverUi/data/batchexecute 2021-12-03 14:16:13,589 : DEBUG : status-0: 200 2021-12-03 14:16:13,592 : DEBUG : part-0 written to <_io.BufferedWriter name='/tmp/female-say.mp3'> 2021-12-03 14:16:13,592 : DEBUG : Saved to /tmp/female-say.mp3
i also phase same issue. please solved the youtube playing issue. Almost 4 days i phased this problem. youtube song not playing.
log
2021-12-04 04:52:24,777 : DEBUG : Making request: POST https://accounts.google.com/o/oauth2/token
2021-12-04 04:52:24,816 : DEBUG : Starting new HTTPS connection (1): accounts.google.com:443
2021-12-04 04:52:25,239 : DEBUG : https://accounts.google.com:443 "POST /o/oauth2/token HTTP/1.1" 200 None
2021-12-04 04:52:45,383 : DEBUG : text: Getting youtube link
2021-12-04 04:52:45,390 : DEBUG : tld: com
2021-12-04 04:52:45,392 : DEBUG : lang: en
2021-12-04 04:52:45,394 : DEBUG : slow: False
2021-12-04 04:52:45,397 : DEBUG : lang_check: True
2021-12-04 04:52:45,401 : DEBUG : pre_processor_funcs: [<function tone_marks at 0x7320fe88>, <function end_of_line at 0x73223030>, <function abbreviations at 0x73223108>, <function word_sub at 0x732234f8>]
2021-12-04 04:52:45,406 : DEBUG : tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\\?).|(?<=!).|(?<=?).|(?<=!).|(?<!\\.[a-z])\\. |(?<!\\.[a-z]), |(?<!\\d):|¡|,|\\]|¿|…|،|\\(|\\)|:|;|、|\\[|\\\n|—|。|‥', re.IGNORECASE) from: [<function tone_marks at 0x73223588>, <function period_comma at 0x732235d0>, <function colon at 0x73223618>, <function other_punctuation at 0x73223660>]>
2021-12-04 04:52:45,412 : DEBUG : langs: {'af': 'Afrikaans', 'ar': 'Arabic', 'bn': 'Bengali', 'bs': 'Bosnian', 'ca': 'Catalan', 'cs': 'Czech', 'cy': 'Welsh', 'da': 'Danish', 'de': 'German', 'el': 'Greek', 'en': 'English', 'eo': 'Esperanto', 'es': 'Spanish', 'et': 'Estonian', 'fi': 'Finnish', 'fr': 'French', 'gu': 'Gujarati', 'hi': 'Hindi', 'hr': 'Croatian', 'hu': 'Hungarian', 'hy': 'Armenian', 'id': 'Indonesian', 'is': 'Icelandic', 'it': 'Italian', 'ja': 'Japanese', 'jw': 'Javanese', 'km': 'Khmer', 'kn': 'Kannada', 'ko': 'Korean', 'la': 'Latin', 'lv': 'Latvian', 'mk': 'Macedonian', 'ml': 'Malayalam', 'mr': 'Marathi', 'my': 'Myanmar (Burmese)', 'ne': 'Nepali', 'nl': 'Dutch', 'no': 'Norwegian', 'pl': 'Polish', 'pt': 'Portuguese', 'ro': 'Romanian', 'ru': 'Russian', 'si': 'Sinhala', 'sk': 'Slovak', 'sq': 'Albanian', 'sr': 'Serbian', 'su': 'Sundanese', 'sv': 'Swedish', 'sw': 'Swahili', 'ta': 'Tamil', 'te': 'Telugu', 'th': 'Thai', 'tl': 'Filipino', 'tr': 'Turkish', 'uk': 'Ukrainian', 'ur': 'Urdu', 'vi': 'Vietnamese', 'zh-CN': 'Chinese', 'zh-cn': 'Chinese (Mandarin/China)', 'zh-tw': 'Chinese (Mandarin/Taiwan)', 'en-us': 'English (US)', 'en-ca': 'English (Canada)', 'en-uk': 'English (UK)', 'en-gb': 'English (UK)', 'en-au': 'English (Australia)', 'en-gh': 'English (Ghana)', 'en-in': 'English (India)', 'en-ie': 'English (Ireland)', 'en-nz': 'English (New Zealand)', 'en-ng': 'English (Nigeria)', 'en-ph': 'English (Philippines)', 'en-za': 'English (South Africa)', 'en-tz': 'English (Tanzania)', 'fr-ca': 'French (Canada)', 'fr-fr': 'French (France)', 'pt-br': 'Portuguese (Brazil)', 'pt-pt': 'Portuguese (Portugal)', 'es-es': 'Spanish (Spain)', 'es-us': 'Spanish (United States)'}
2021-12-04 04:52:45,421 : DEBUG : pre-processing: <function tone_marks at 0x7320fe88>
2021-12-04 04:52:45,440 : DEBUG : pre-processing: <function end_of_line at 0x73223030>
2021-12-04 04:52:45,446 : DEBUG : pre-processing: <function abbreviations at 0x73223108>
2021-12-04 04:52:45,475 : DEBUG : pre-processing: <function word_sub at 0x732234f8>
2021-12-04 04:52:45,483 : DEBUG : text_parts: ['Getting youtube link']
2021-12-04 04:52:45,488 : DEBUG : text_parts: 1
2021-12-04 04:52:45,493 : DEBUG : data-0: f.req=%5B%5B%5B%22jQ1olc%22%2C%22%5B%5C%22Getting%20youtube%20link%5C%22%2C%5C%22en%5C%22%2Cnull%2C%5C%22null%5C%22%5D%22%2Cnull%2C%22generic%22%5D%5D%5D&
2021-12-04 04:52:45,530 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443
2021-12-04 04:52:46,240 : DEBUG : https://translate.google.com:443 "POST /_/TranslateWebserverUi/data/batchexecute HTTP/1.1" 200 None
2021-12-04 04:52:46,259 : DEBUG : headers-0: {'Referer': 'http://translate.google.com/', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Content-Length': '154'}
2021-12-04 04:52:46,262 : DEBUG : url-0: https://translate.google.com/_/TranslateWebserverUi/data/batchexecute
2021-12-04 04:52:46,265 : DEBUG : status-0: 200
2021-12-04 04:52:46,275 : DEBUG : part-0 written to <_io.BufferedWriter name='/tmp/female-say.mp3'>
2021-12-04 04:52:46,277 : DEBUG : Saved to /tmp/female-say.mp3
2021-12-04 04:52:48,981 : INFO : file_cache is only supported with oauth2client<4.0.0
2021-12-04 04:52:49,166 : DEBUG : URL being requested: GET https://youtube.googleapis.com/youtube/v3/search?q=dilbar+dilbar+song&part=id%2Csnippet&key=AIzaSyBHThWLxQ-em5v5MecJVttghmUvW37XYbA&alt=json
2021-12-04 04:53:01,431 : DEBUG : text: Encountered an exception please check the logs.
2021-12-04 04:53:01,434 : DEBUG : tld: com
2021-12-04 04:53:01,436 : DEBUG : lang: en
2021-12-04 04:53:01,439 : DEBUG : slow: False
2021-12-04 04:53:01,443 : DEBUG : lang_check: True
2021-12-04 04:53:01,447 : DEBUG : pre_processor_funcs: [<function tone_marks at 0x7320fe88>, <function end_of_line at 0x73223030>, <function abbreviations at 0x73223108>, <function word_sub at 0x732234f8>]
2021-12-04 04:53:01,449 : DEBUG : tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\\?).|(?<=!).|(?<=?).|(?<=!).|(?<!\\.[a-z])\\. |(?<!\\.[a-z]), |(?<!\\d):|¡|,|\\]|¿|…|،|\\(|\\)|:|;|、|\\[|\\\n|—|。|‥', re.IGNORECASE) from: [<function tone_marks at 0x73223588>, <function period_comma at 0x732235d0>, <function colon at 0x73223618>, <function other_punctuation at 0x73223660>]>
2021-12-04 04:53:01,457 : DEBUG : langs: {'af': 'Afrikaans', 'ar': 'Arabic', 'bn': 'Bengali', 'bs': 'Bosnian', 'ca': 'Catalan', 'cs': 'Czech', 'cy': 'Welsh', 'da': 'Danish', 'de': 'German', 'el': 'Greek', 'en': 'English', 'eo': 'Esperanto', 'es': 'Spanish', 'et': 'Estonian', 'fi': 'Finnish', 'fr': 'French', 'gu': 'Gujarati', 'hi': 'Hindi', 'hr': 'Croatian', 'hu': 'Hungarian', 'hy': 'Armenian', 'id': 'Indonesian', 'is': 'Icelandic', 'it': 'Italian', 'ja': 'Japanese', 'jw': 'Javanese', 'km': 'Khmer', 'kn': 'Kannada', 'ko': 'Korean', 'la': 'Latin', 'lv': 'Latvian', 'mk': 'Macedonian', 'ml': 'Malayalam', 'mr': 'Marathi', 'my': 'Myanmar (Burmese)', 'ne': 'Nepali', 'nl': 'Dutch', 'no': 'Norwegian', 'pl': 'Polish', 'pt': 'Portuguese', 'ro': 'Romanian', 'ru': 'Russian', 'si': 'Sinhala', 'sk': 'Slovak', 'sq': 'Albanian', 'sr': 'Serbian', 'su': 'Sundanese', 'sv': 'Swedish', 'sw': 'Swahili', 'ta': 'Tamil', 'te': 'Telugu', 'th': 'Thai', 'tl': 'Filipino', 'tr': 'Turkish', 'uk': 'Ukrainian', 'ur': 'Urdu', 'vi': 'Vietnamese', 'zh-CN': 'Chinese', 'zh-cn': 'Chinese (Mandarin/China)', 'zh-tw': 'Chinese (Mandarin/Taiwan)', 'en-us': 'English (US)', 'en-ca': 'English (Canada)', 'en-uk': 'English (UK)', 'en-gb': 'English (UK)', 'en-au': 'English (Australia)', 'en-gh': 'English (Ghana)', 'en-in': 'English (India)', 'en-ie': 'English (Ireland)', 'en-nz': 'English (New Zealand)', 'en-ng': 'English (Nigeria)', 'en-ph': 'English (Philippines)', 'en-za': 'English (South Africa)', 'en-tz': 'English (Tanzania)', 'fr-ca': 'French (Canada)', 'fr-fr': 'French (France)', 'pt-br': 'Portuguese (Brazil)', 'pt-pt': 'Portuguese (Portugal)', 'es-es': 'Spanish (Spain)', 'es-us': 'Spanish (United States)'}
2021-12-04 04:53:01,459 : DEBUG : pre-processing: <function tone_marks at 0x7320fe88>
2021-12-04 04:53:01,468 : DEBUG : pre-processing: <function end_of_line at 0x73223030>
2021-12-04 04:53:01,474 : DEBUG : pre-processing: <function abbreviations at 0x73223108>
2021-12-04 04:53:01,510 : DEBUG : pre-processing: <function word_sub at 0x732234f8>
2021-12-04 04:53:01,514 : DEBUG : text_parts: ['Encountered an exception please check the logs.']
2021-12-04 04:53:01,517 : DEBUG : text_parts: 1
2021-12-04 04:53:01,522 : DEBUG : data-0: f.req=%5B%5B%5B%22jQ1olc%22%2C%22%5B%5C%22Encountered%20an%20exception%20please%20check%20the%20logs.%5C%22%2C%5C%22en%5C%22%2Cnull%2C%5C%22null%5C%22%5D%22%2Cnull%2C%22generic%22%5D%5D%5D&
2021-12-04 04:53:01,559 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443
2021-12-04 04:53:02,255 : DEBUG : https://translate.google.com:443 "POST /_/TranslateWebserverUi/data/batchexecute HTTP/1.1" 200 None
2021-12-04 04:53:02,289 : DEBUG : headers-0: {'Referer': 'http://translate.google.com/', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Content-Length': '189'}
2021-12-04 04:53:02,291 : DEBUG : url-0: https://translate.google.com/_/TranslateWebserverUi/data/batchexecute
2021-12-04 04:53:02,293 : DEBUG : status-0: 200
2021-12-04 04:53:02,302 : DEBUG : part-0 written to <_io.BufferedWriter name='/tmp/female-say.mp3'>
2021-12-04 04:53:02,306 : DEBUG : Saved to /tmp/female-say.mp3
CPU INFO
Raspberry Pi 2 Modecat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
processor : 1
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
processor : 2
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
processor : 3
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
Hardware : BCM2835
Revision : a21041
Serial : 000000004c6499ff
Model : Raspberry Pi 2 Model B Rev 1.1
OS
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"
Use the custom conversation feature to see if it works.
@jaedeezy , did you update the gtts ? The version you have does not match the version in the requirements file.
@jaedeezy , did you update the gtts ? The version you have does not match the version in the requirements file.
Yea, I was hoping to resolve the issue but that did not work. Would it cause any problems leaving it at that version? Also, I just re-enabled the custom conversation and that works as it should while youtube commands still returns an exception error.
The assistant is not crashing. Could be a slow youtube-dl issue (there are so many issues opened with their official git over the week). Give the YouTube command and just leave it like that to see if it starts at all
Please tell me how i solved youtube playing problem.
Can it be an authorization issue?
In the terminal I see this:
pi@raspberrypi:~ $ GET https://youtube.googleapis.com/youtube/v3/search?q=i+got+you&part=id%2Csnippet&key=AIzaSyDd_WBM8-gTV0wJJ9aNa7pWp5Q-SsPYeLI&alt=json [1] 11241 [2] 11242 [3] 11243 pi@raspberrypi:~ $ { "error": { "code": 403, "message": "The request is missing a valid API key.", "errors": [ { "message": "The request is missing a valid API key.", "domain": "global", "reason": "forbidden" } ], "status": "PERMISSION_DENIED" } }
I've changed and checked the api key numerous times
@jaedeezy The key that you first posted was invalid, but this one works. Every time you change something in the config.yaml, you need to restart the assistant. It does not pick up the change dynamically. YouTube API is not the issue. youtube-dl ha sbeen reported to be slow over the last week.
@shivasiddharth Did you find any solution about this problem? Please update and tell me how to fix this.
It's like searching for a black cat in a dark room.
I couldn't find any solution. I also changed, checked the API key, and restart. But no fixes happened. Please help me.😭
You guys need to be patient and give some time for the YouTube Data API to get activated. From the looks of it, you guys are not giving it the time it needs. Give the YouTube API atleast 30 minutes to get activated.
To check if the API is activated, https://youtube.googleapis.com/youtube/v3/search?q=i+got+you&part=id%2Csnippet&key=INSERT-YOUR-KEY-HERE&alt=json
Insert your key in the above given space and open it in the browser. If you get some details, then you can confirm that the key has been activated.
API is activated. But still, I can't play music on youtube.☹
Api is activated. But Youtube not work.
Attach the log file here
Add
print(videoids)
After this line: https://github.com/shivasiddharth/GassistPi/blob/0cad5a4e3564968c556c13c8d7c92cf848f6621c/src/youtube_search_engine.py#L53 Manually restart the assistant. Give the command and share the terminal contents.
Log File
2021-12-06 13:37:43,582 : DEBUG : Making request: POST https://accounts.google.com/o/oauth2/token 2021-12-06 13:37:43,667 : DEBUG : Starting new HTTPS connection (1): accounts.google.com:443 2021-12-06 13:37:44,147 : DEBUG : https://accounts.google.com:443 "POST /o/oauth2/token HTTP/1.1" 200 None 2021-12-06 13:37:57,061 : DEBUG : text: Getting youtube link 2021-12-06 13:37:57,066 : DEBUG : tld: com 2021-12-06 13:37:57,071 : DEBUG : lang: en 2021-12-06 13:37:57,074 : DEBUG : slow: False 2021-12-06 13:37:57,080 : DEBUG : lang_check: True 2021-12-06 13:37:57,086 : DEBUG : pre_processor_funcs: [<function tone_marks at 0x731bfed0>, <function end_of_line at 0x731d4078>, <function abbreviations at 0x731d4150>, <function word_sub at 0x731d4540>] 2021-12-06 13:37:57,089 : DEBUG : tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\\?).|(?<=!).|(?<=?).|(?<=!).|(?<!\\.[a-z])\\. |(?<!\\.[a-z]), |(?<!\\d):|—|,|…|\\]|،|。|¡|\\)|¿|;|、|:|\\(|\\[|‥|\\\n', re.IGNORECASE) from: [<function tone_marks at 0x731d45d0>, <function period_comma at 0x731d4618>, <function colon at 0x731d4660>, <function other_punctuation at 0x731d46a8>]> 2021-12-06 13:37:57,095 : DEBUG : langs: {'af': 'Afrikaans', 'ar': 'Arabic', 'bn': 'Bengali', 'bs': 'Bosnian', 'ca': 'Catalan', 'cs': 'Czech', 'cy': 'Welsh', 'da': 'Danish', 'de': 'German', 'el': 'Greek', 'en': 'English', 'eo': 'Esperanto', 'es': 'Spanish', 'et': 'Estonian', 'fi': 'Finnish', 'fr': 'French', 'gu': 'Gujarati', 'hi': 'Hindi', 'hr': 'Croatian', 'hu': 'Hungarian', 'hy': 'Armenian', 'id': 'Indonesian', 'is': 'Icelandic', 'it': 'Italian', 'ja': 'Japanese', 'jw': 'Javanese', 'km': 'Khmer', 'kn': 'Kannada', 'ko': 'Korean', 'la': 'Latin', 'lv': 'Latvian', 'mk': 'Macedonian', 'ml': 'Malayalam', 'mr': 'Marathi', 'my': 'Myanmar (Burmese)', 'ne': 'Nepali', 'nl': 'Dutch', 'no': 'Norwegian', 'pl': 'Polish', 'pt': 'Portuguese', 'ro': 'Romanian', 'ru': 'Russian', 'si': 'Sinhala', 'sk': 'Slovak', 'sq': 'Albanian', 'sr': 'Serbian', 'su': 'Sundanese', 'sv': 'Swedish', 'sw': 'Swahili', 'ta': 'Tamil', 'te': 'Telugu', 'th': 'Thai', 'tl': 'Filipino', 'tr': 'Turkish', 'uk': 'Ukrainian', 'ur': 'Urdu', 'vi': 'Vietnamese', 'zh-CN': 'Chinese', 'zh-cn': 'Chinese (Mandarin/China)', 'zh-tw': 'Chinese (Mandarin/Taiwan)', 'en-us': 'English (US)', 'en-ca': 'English (Canada)', 'en-uk': 'English (UK)', 'en-gb': 'English (UK)', 'en-au': 'English (Australia)', 'en-gh': 'English (Ghana)', 'en-in': 'English (India)', 'en-ie': 'English (Ireland)', 'en-nz': 'English (New Zealand)', 'en-ng': 'English (Nigeria)', 'en-ph': 'English (Philippines)', 'en-za': 'English (South Africa)', 'en-tz': 'English (Tanzania)', 'fr-ca': 'French (Canada)', 'fr-fr': 'French (France)', 'pt-br': 'Portuguese (Brazil)', 'pt-pt': 'Portuguese (Portugal)', 'es-es': 'Spanish (Spain)', 'es-us': 'Spanish (United States)'} 2021-12-06 13:37:57,100 : DEBUG : pre-processing: <function tone_marks at 0x731bfed0> 2021-12-06 13:37:57,124 : DEBUG : pre-processing: <function end_of_line at 0x731d4078> 2021-12-06 13:37:57,126 : DEBUG : pre-processing: <function abbreviations at 0x731d4150> 2021-12-06 13:37:57,154 : DEBUG : pre-processing: <function word_sub at 0x731d4540> 2021-12-06 13:37:57,157 : DEBUG : text_parts: ['Getting youtube link'] 2021-12-06 13:37:57,158 : DEBUG : text_parts: 1 2021-12-06 13:37:57,162 : DEBUG : data-0: f.req=%5B%5B%5B%22jQ1olc%22%2C%22%5B%5C%22Getting%20youtube%20link%5C%22%2C%5C%22en%5C%22%2Cnull%2C%5C%22null%5C%22%5D%22%2Cnull%2C%22generic%22%5D%5D%5D& 2021-12-06 13:37:57,194 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443 2021-12-06 13:37:57,594 : DEBUG : https://translate.google.com:443 "POST /_/TranslateWebserverUi/data/batchexecute HTTP/1.1" 200 None 2021-12-06 13:37:57,623 : DEBUG : headers-0: {'Referer': 'http://translate.google.com/', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Content-Length': '154'} 2021-12-06 13:37:57,625 : DEBUG : url-0: https://translate.google.com/_/TranslateWebserverUi/data/batchexecute 2021-12-06 13:37:57,625 : DEBUG : status-0: 200 2021-12-06 13:37:57,636 : DEBUG : part-0 written to <_io.BufferedWriter name='/tmp/female-say.mp3'> 2021-12-06 13:37:57,639 : DEBUG : Saved to /tmp/female-say.mp3 2021-12-06 13:38:00,343 : INFO : file_cache is only supported with oauth2client<4.0.0 2021-12-06 13:38:00,488 : DEBUG : URL being requested: GET https://youtube.googleapis.com/youtube/v3/search?q=waka+waka+song&part=id%2Csnippet&key=AIzaSyBHThWLxQ-em5v5MecJVttghmUvW37XYbA&alt=json 2021-12-06 13:38:27,185 : DEBUG : text: Encountered an exception please check the logs. 2021-12-06 13:38:27,187 : DEBUG : tld: com 2021-12-06 13:38:27,187 : DEBUG : lang: en 2021-12-06 13:38:27,188 : DEBUG : slow: False 2021-12-06 13:38:27,188 : DEBUG : lang_check: True 2021-12-06 13:38:27,188 : DEBUG : pre_processor_funcs: [<function tone_marks at 0x731bfed0>, <function end_of_line at 0x731d4078>, <function abbreviations at 0x731d4150>, <function word_sub at 0x731d4540>] 2021-12-06 13:38:27,189 : DEBUG : tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\\?).|(?<=!).|(?<=?).|(?<=!).|(?<!\\.[a-z])\\. |(?<!\\.[a-z]), |(?<!\\d):|—|,|…|\\]|،|。|¡|\\)|¿|;|、|:|\\(|\\[|‥|\\\n', re.IGNORECASE) from: [<function tone_marks at 0x731d45d0>, <function period_comma at 0x731d4618>, <function colon at 0x731d4660>, <function other_punctuation at 0x731d46a8>]> 2021-12-06 13:38:27,191 : DEBUG : langs: {'af': 'Afrikaans', 'ar': 'Arabic', 'bn': 'Bengali', 'bs': 'Bosnian', 'ca': 'Catalan', 'cs': 'Czech', 'cy': 'Welsh', 'da': 'Danish', 'de': 'German', 'el': 'Greek', 'en': 'English', 'eo': 'Esperanto', 'es': 'Spanish', 'et': 'Estonian', 'fi': 'Finnish', 'fr': 'French', 'gu': 'Gujarati', 'hi': 'Hindi', 'hr': 'Croatian', 'hu': 'Hungarian', 'hy': 'Armenian', 'id': 'Indonesian', 'is': 'Icelandic', 'it': 'Italian', 'ja': 'Japanese', 'jw': 'Javanese', 'km': 'Khmer', 'kn': 'Kannada', 'ko': 'Korean', 'la': 'Latin', 'lv': 'Latvian', 'mk': 'Macedonian', 'ml': 'Malayalam', 'mr': 'Marathi', 'my': 'Myanmar (Burmese)', 'ne': 'Nepali', 'nl': 'Dutch', 'no': 'Norwegian', 'pl': 'Polish', 'pt': 'Portuguese', 'ro': 'Romanian', 'ru': 'Russian', 'si': 'Sinhala', 'sk': 'Slovak', 'sq': 'Albanian', 'sr': 'Serbian', 'su': 'Sundanese', 'sv': 'Swedish', 'sw': 'Swahili', 'ta': 'Tamil', 'te': 'Telugu', 'th': 'Thai', 'tl': 'Filipino', 'tr': 'Turkish', 'uk': 'Ukrainian', 'ur': 'Urdu', 'vi': 'Vietnamese', 'zh-CN': 'Chinese', 'zh-cn': 'Chinese (Mandarin/China)', 'zh-tw': 'Chinese (Mandarin/Taiwan)', 'en-us': 'English (US)', 'en-ca': 'English (Canada)', 'en-uk': 'English (UK)', 'en-gb': 'English (UK)', 'en-au': 'English (Australia)', 'en-gh': 'English (Ghana)', 'en-in': 'English (India)', 'en-ie': 'English (Ireland)', 'en-nz': 'English (New Zealand)', 'en-ng': 'English (Nigeria)', 'en-ph': 'English (Philippines)', 'en-za': 'English (South Africa)', 'en-tz': 'English (Tanzania)', 'fr-ca': 'French (Canada)', 'fr-fr': 'French (France)', 'pt-br': 'Portuguese (Brazil)', 'pt-pt': 'Portuguese (Portugal)', 'es-es': 'Spanish (Spain)', 'es-us': 'Spanish (United States)'} 2021-12-06 13:38:27,192 : DEBUG : pre-processing: <function tone_marks at 0x731bfed0> 2021-12-06 13:38:27,198 : DEBUG : pre-processing: <function end_of_line at 0x731d4078> 2021-12-06 13:38:27,203 : DEBUG : pre-processing: <function abbreviations at 0x731d4150> 2021-12-06 13:38:27,257 : DEBUG : pre-processing: <function word_sub at 0x731d4540> 2021-12-06 13:38:27,262 : DEBUG : text_parts: ['Encountered an exception please check the logs.'] 2021-12-06 13:38:27,265 : DEBUG : text_parts: 1 2021-12-06 13:38:27,269 : DEBUG : data-0: f.req=%5B%5B%5B%22jQ1olc%22%2C%22%5B%5C%22Encountered%20an%20exception%20please%20check%20the%20logs.%5C%22%2C%5C%22en%5C%22%2Cnull%2C%5C%22null%5C%22%5D%22%2Cnull%2C%22generic%22%5D%5D%5D& 2021-12-06 13:38:27,296 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443 2021-12-06 13:38:28,122 : DEBUG : https://translate.google.com:443 "POST /_/TranslateWebserverUi/data/batchexecute HTTP/1.1" 200 None 2021-12-06 13:38:28,160 : DEBUG : headers-0: {'Referer': 'http://translate.google.com/', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Content-Length': '189'} 2021-12-06 13:38:28,162 : DEBUG : url-0: https://translate.google.com/_/TranslateWebserverUi/data/batchexecute 2021-12-06 13:38:28,163 : DEBUG : status-0: 200 2021-12-06 13:38:28,179 : DEBUG : part-0 written to <_io.BufferedWriter name='/tmp/female-say.mp3'> 2021-12-06 13:38:28,182 : DEBUG : Saved to /tmp/female-say.mp3
Attach it as a file. I cannot make any sense of what is pasted.
I already do that before uploading the log file. I will just remove it and upload the log file again.
Log file has nothing to do with that. I need to see as to whats getting printed in the terminal. Perform that change, give the instruction and share the terminal contents.
After add your command . Still not working youtube.
2021-12-06 13:49:52,824 : DEBUG : Making request: POST https://accounts.google.com/o/oauth2/token
2021-12-06 13:49:52,872 : DEBUG : Starting new HTTPS connection (1): accounts.google.com:443
2021-12-06 13:49:53,346 : DEBUG : https://accounts.google.com:443 "POST /o/oauth2/token HTTP/1.1" 200 None
2021-12-06 13:50:06,877 : DEBUG : text: Getting youtube link
2021-12-06 13:50:06,886 : DEBUG : tld: com
2021-12-06 13:50:06,889 : DEBUG : lang: en
2021-12-06 13:50:06,892 : DEBUG : slow: False
2021-12-06 13:50:06,895 : DEBUG : lang_check: True
2021-12-06 13:50:06,897 : DEBUG : pre_processor_funcs: [<function tone_marks at 0x731dce40>, <function end_of_line at 0x731dcfa8>, <function abbreviations at 0x731ef0c0>, <function word_sub at 0x731ef4b0>]
2021-12-06 13:50:06,901 : DEBUG : tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\\?).|(?<=!).|(?<=?).|(?<=!).|(?<!\\.[a-z])\\. |(?<!\\.[a-z]), |(?<!\\d):|…|‥|、|¿|\\[|;|,|:|。|\\(|،|\\)|—|¡|\\]|\\\n', re.IGNORECASE) from: [<function tone_marks at 0x731ef540>, <function period_comma at 0x731ef588>, <function colon at 0x731ef5d0>, <function other_punctuation at 0x731ef618>]>
2021-12-06 13:50:06,907 : DEBUG : langs: {'af': 'Afrikaans', 'ar': 'Arabic', 'bn': 'Bengali', 'bs': 'Bosnian', 'ca': 'Catalan', 'cs': 'Czech', 'cy': 'Welsh', 'da': 'Danish', 'de': 'German', 'el': 'Greek', 'en': 'English', 'eo': 'Esperanto', 'es': 'Spanish', 'et': 'Estonian', 'fi': 'Finnish', 'fr': 'French', 'gu': 'Gujarati', 'hi': 'Hindi', 'hr': 'Croatian', 'hu': 'Hungarian', 'hy': 'Armenian', 'id': 'Indonesian', 'is': 'Icelandic', 'it': 'Italian', 'ja': 'Japanese', 'jw': 'Javanese', 'km': 'Khmer', 'kn': 'Kannada', 'ko': 'Korean', 'la': 'Latin', 'lv': 'Latvian', 'mk': 'Macedonian', 'ml': 'Malayalam', 'mr': 'Marathi', 'my': 'Myanmar (Burmese)', 'ne': 'Nepali', 'nl': 'Dutch', 'no': 'Norwegian', 'pl': 'Polish', 'pt': 'Portuguese', 'ro': 'Romanian', 'ru': 'Russian', 'si': 'Sinhala', 'sk': 'Slovak', 'sq': 'Albanian', 'sr': 'Serbian', 'su': 'Sundanese', 'sv': 'Swedish', 'sw': 'Swahili', 'ta': 'Tamil', 'te': 'Telugu', 'th': 'Thai', 'tl': 'Filipino', 'tr': 'Turkish', 'uk': 'Ukrainian', 'ur': 'Urdu', 'vi': 'Vietnamese', 'zh-CN': 'Chinese', 'zh-cn': 'Chinese (Mandarin/China)', 'zh-tw': 'Chinese (Mandarin/Taiwan)', 'en-us': 'English (US)', 'en-ca': 'English (Canada)', 'en-uk': 'English (UK)', 'en-gb': 'English (UK)', 'en-au': 'English (Australia)', 'en-gh': 'English (Ghana)', 'en-in': 'English (India)', 'en-ie': 'English (Ireland)', 'en-nz': 'English (New Zealand)', 'en-ng': 'English (Nigeria)', 'en-ph': 'English (Philippines)', 'en-za': 'English (South Africa)', 'en-tz': 'English (Tanzania)', 'fr-ca': 'French (Canada)', 'fr-fr': 'French (France)', 'pt-br': 'Portuguese (Brazil)', 'pt-pt': 'Portuguese (Portugal)', 'es-es': 'Spanish (Spain)', 'es-us': 'Spanish (United States)'}
2021-12-06 13:50:06,915 : DEBUG : pre-processing: <function tone_marks at 0x731dce40>
2021-12-06 13:50:06,926 : DEBUG : pre-processing: <function end_of_line at 0x731dcfa8>
2021-12-06 13:50:06,931 : DEBUG : pre-processing: <function abbreviations at 0x731ef0c0>
2021-12-06 13:50:06,985 : DEBUG : pre-processing: <function word_sub at 0x731ef4b0>
2021-12-06 13:50:06,990 : DEBUG : text_parts: ['Getting youtube link']
2021-12-06 13:50:06,992 : DEBUG : text_parts: 1
2021-12-06 13:50:06,996 : DEBUG : data-0: f.req=%5B%5B%5B%22jQ1olc%22%2C%22%5B%5C%22Getting%20youtube%20link%5C%22%2C%5C%22en%5C%22%2Cnull%2C%5C%22null%5C%22%5D%22%2Cnull%2C%22generic%22%5D%5D%5D&
2021-12-06 13:50:07,027 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443
2021-12-06 13:50:07,735 : DEBUG : https://translate.google.com:443 "POST /_/TranslateWebserverUi/data/batchexecute HTTP/1.1" 200 None
2021-12-06 13:50:07,762 : DEBUG : headers-0: {'Referer': 'http://translate.google.com/', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Content-Length': '154'}
2021-12-06 13:50:07,766 : DEBUG : url-0: https://translate.google.com/_/TranslateWebserverUi/data/batchexecute
2021-12-06 13:50:07,768 : DEBUG : status-0: 200
2021-12-06 13:50:07,779 : DEBUG : part-0 written to <_io.BufferedWriter name='/tmp/female-say.mp3'>
2021-12-06 13:50:07,782 : DEBUG : Saved to /tmp/female-say.mp3
2021-12-06 13:50:10,331 : INFO : file_cache is only supported with oauth2client<4.0.0
2021-12-06 13:50:10,469 : DEBUG : URL being requested: GET https://youtube.googleapis.com/youtube/v3/search?q=waka+waka+song&part=id%2Csnippet&key=AIzaSyBHThWLxQ-em5v5MecJVttghmUvW37XYbA&alt=json
2021-12-06 13:50:21,535 : DEBUG : text: Encountered an exception please check the logs.
2021-12-06 13:50:21,537 : DEBUG : tld: com
2021-12-06 13:50:21,538 : DEBUG : lang: en
2021-12-06 13:50:21,538 : DEBUG : slow: False
2021-12-06 13:50:21,539 : DEBUG : lang_check: True
2021-12-06 13:50:21,540 : DEBUG : pre_processor_funcs: [<function tone_marks at 0x731dce40>, <function end_of_line at 0x731dcfa8>, <function abbreviations at 0x731ef0c0>, <function word_sub at 0x731ef4b0>]
2021-12-06 13:50:21,540 : DEBUG : tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\\?).|(?<=!).|(?<=?).|(?<=!).|(?<!\\.[a-z])\\. |(?<!\\.[a-z]), |(?<!\\d):|…|‥|、|¿|\\[|;|,|:|。|\\(|،|\\)|—|¡|\\]|\\\n', re.IGNORECASE) from: [<function tone_marks at 0x731ef540>, <function period_comma at 0x731ef588>, <function colon at 0x731ef5d0>, <function other_punctuation at 0x731ef618>]>
2021-12-06 13:50:21,542 : DEBUG : langs: {'af': 'Afrikaans', 'ar': 'Arabic', 'bn': 'Bengali', 'bs': 'Bosnian', 'ca': 'Catalan', 'cs': 'Czech', 'cy': 'Welsh', 'da': 'Danish', 'de': 'German', 'el': 'Greek', 'en': 'English', 'eo': 'Esperanto', 'es': 'Spanish', 'et': 'Estonian', 'fi': 'Finnish', 'fr': 'French', 'gu': 'Gujarati', 'hi': 'Hindi', 'hr': 'Croatian', 'hu': 'Hungarian', 'hy': 'Armenian', 'id': 'Indonesian', 'is': 'Icelandic', 'it': 'Italian', 'ja': 'Japanese', 'jw': 'Javanese', 'km': 'Khmer', 'kn': 'Kannada', 'ko': 'Korean', 'la': 'Latin', 'lv': 'Latvian', 'mk': 'Macedonian', 'ml': 'Malayalam', 'mr': 'Marathi', 'my': 'Myanmar (Burmese)', 'ne': 'Nepali', 'nl': 'Dutch', 'no': 'Norwegian', 'pl': 'Polish', 'pt': 'Portuguese', 'ro': 'Romanian', 'ru': 'Russian', 'si': 'Sinhala', 'sk': 'Slovak', 'sq': 'Albanian', 'sr': 'Serbian', 'su': 'Sundanese', 'sv': 'Swedish', 'sw': 'Swahili', 'ta': 'Tamil', 'te': 'Telugu', 'th': 'Thai', 'tl': 'Filipino', 'tr': 'Turkish', 'uk': 'Ukrainian', 'ur': 'Urdu', 'vi': 'Vietnamese', 'zh-CN': 'Chinese', 'zh-cn': 'Chinese (Mandarin/China)', 'zh-tw': 'Chinese (Mandarin/Taiwan)', 'en-us': 'English (US)', 'en-ca': 'English (Canada)', 'en-uk': 'English (UK)', 'en-gb': 'English (UK)', 'en-au': 'English (Australia)', 'en-gh': 'English (Ghana)', 'en-in': 'English (India)', 'en-ie': 'English (Ireland)', 'en-nz': 'English (New Zealand)', 'en-ng': 'English (Nigeria)', 'en-ph': 'English (Philippines)', 'en-za': 'English (South Africa)', 'en-tz': 'English (Tanzania)', 'fr-ca': 'French (Canada)', 'fr-fr': 'French (France)', 'pt-br': 'Portuguese (Brazil)', 'pt-pt': 'Portuguese (Portugal)', 'es-es': 'Spanish (Spain)', 'es-us': 'Spanish (United States)'}
2021-12-06 13:50:21,544 : DEBUG : pre-processing: <function tone_marks at 0x731dce40>
2021-12-06 13:50:21,552 : DEBUG : pre-processing: <function end_of_line at 0x731dcfa8>
2021-12-06 13:50:21,554 : DEBUG : pre-processing: <function abbreviations at 0x731ef0c0>
2021-12-06 13:50:21,580 : DEBUG : pre-processing: <function word_sub at 0x731ef4b0>
2021-12-06 13:50:21,584 : DEBUG : text_parts: ['Encountered an exception please check the logs.']
2021-12-06 13:50:21,586 : DEBUG : text_parts: 1
2021-12-06 13:50:21,590 : DEBUG : data-0: f.req=%5B%5B%5B%22jQ1olc%22%2C%22%5B%5C%22Encountered%20an%20exception%20please%20check%20the%20logs.%5C%22%2C%5C%22en%5C%22%2Cnull%2C%5C%22null%5C%22%5D%22%2Cnull%2C%22generic%22%5D%5D%5D&
2021-12-06 13:50:21,641 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443
2021-12-06 13:50:22,050 : DEBUG : https://translate.google.com:443 "POST /_/TranslateWebserverUi/data/batchexecute HTTP/1.1" 200 None
2021-12-06 13:50:22,084 : DEBUG : headers-0: {'Referer': 'http://translate.google.com/', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Content-Length': '189'}
2021-12-06 13:50:22,086 : DEBUG : url-0: https://translate.google.com/_/TranslateWebserverUi/data/batchexecute
2021-12-06 13:50:22,087 : DEBUG : status-0: 200
2021-12-06 13:50:22,095 : DEBUG : part-0 written to <_io.BufferedWriter name='/tmp/female-say.mp3'>
2021-12-06 13:50:22,098 : DEBUG : Saved to /tmp/female-say.mp3
2021-12-06 13:50:37,793 : DEBUG : text: Getting youtube link
2021-12-06 13:50:37,795 : DEBUG : tld: com
2021-12-06 13:50:37,796 : DEBUG : lang: en
2021-12-06 13:50:37,797 : DEBUG : slow: False
2021-12-06 13:50:37,798 : DEBUG : lang_check: True
2021-12-06 13:50:37,800 : DEBUG : pre_processor_funcs: [<function tone_marks at 0x731dce40>, <function end_of_line at 0x731dcfa8>, <function abbreviations at 0x731ef0c0>, <function word_sub at 0x731ef4b0>]
2021-12-06 13:50:37,804 : DEBUG : tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\\?).|(?<=!).|(?<=?).|(?<=!).|(?<!\\.[a-z])\\. |(?<!\\.[a-z]), |(?<!\\d):|…|‥|、|¿|\\[|;|,|:|。|\\(|،|\\)|—|¡|\\]|\\\n', re.IGNORECASE) from: [<function tone_marks at 0x731ef540>, <function period_comma at 0x731ef588>, <function colon at 0x731ef5d0>, <function other_punctuation at 0x731ef618>]>
2021-12-06 13:50:37,811 : DEBUG : langs: {'af': 'Afrikaans', 'ar': 'Arabic', 'bn': 'Bengali', 'bs': 'Bosnian', 'ca': 'Catalan', 'cs': 'Czech', 'cy': 'Welsh', 'da': 'Danish', 'de': 'German', 'el': 'Greek', 'en': 'English', 'eo': 'Esperanto', 'es': 'Spanish', 'et': 'Estonian', 'fi': 'Finnish', 'fr': 'French', 'gu': 'Gujarati', 'hi': 'Hindi', 'hr': 'Croatian', 'hu': 'Hungarian', 'hy': 'Armenian', 'id': 'Indonesian', 'is': 'Icelandic', 'it': 'Italian', 'ja': 'Japanese', 'jw': 'Javanese', 'km': 'Khmer', 'kn': 'Kannada', 'ko': 'Korean', 'la': 'Latin', 'lv': 'Latvian', 'mk': 'Macedonian', 'ml': 'Malayalam', 'mr': 'Marathi', 'my': 'Myanmar (Burmese)', 'ne': 'Nepali', 'nl': 'Dutch', 'no': 'Norwegian', 'pl': 'Polish', 'pt': 'Portuguese', 'ro': 'Romanian', 'ru': 'Russian', 'si': 'Sinhala', 'sk': 'Slovak', 'sq': 'Albanian', 'sr': 'Serbian', 'su': 'Sundanese', 'sv': 'Swedish', 'sw': 'Swahili', 'ta': 'Tamil', 'te': 'Telugu', 'th': 'Thai', 'tl': 'Filipino', 'tr': 'Turkish', 'uk': 'Ukrainian', 'ur': 'Urdu', 'vi': 'Vietnamese', 'zh-CN': 'Chinese', 'zh-cn': 'Chinese (Mandarin/China)', 'zh-tw': 'Chinese (Mandarin/Taiwan)', 'en-us': 'English (US)', 'en-ca': 'English (Canada)', 'en-uk': 'English (UK)', 'en-gb': 'English (UK)', 'en-au': 'English (Australia)', 'en-gh': 'English (Ghana)', 'en-in': 'English (India)', 'en-ie': 'English (Ireland)', 'en-nz': 'English (New Zealand)', 'en-ng': 'English (Nigeria)', 'en-ph': 'English (Philippines)', 'en-za': 'English (South Africa)', 'en-tz': 'English (Tanzania)', 'fr-ca': 'French (Canada)', 'fr-fr': 'French (France)', 'pt-br': 'Portuguese (Brazil)', 'pt-pt': 'Portuguese (Portugal)', 'es-es': 'Spanish (Spain)', 'es-us': 'Spanish (United States)'}
2021-12-06 13:50:37,818 : DEBUG : pre-processing: <function tone_marks at 0x731dce40>
2021-12-06 13:50:37,821 : DEBUG : pre-processing: <function end_of_line at 0x731dcfa8>
2021-12-06 13:50:37,823 : DEBUG : pre-processing: <function abbreviations at 0x731ef0c0>
2021-12-06 13:50:37,824 : DEBUG : pre-processing: <function word_sub at 0x731ef4b0>
2021-12-06 13:50:37,825 : DEBUG : text_parts: ['Getting youtube link']
2021-12-06 13:50:37,826 : DEBUG : text_parts: 1
2021-12-06 13:50:37,833 : DEBUG : data-0: f.req=%5B%5B%5B%22jQ1olc%22%2C%22%5B%5C%22Getting%20youtube%20link%5C%22%2C%5C%22en%5C%22%2Cnull%2C%5C%22null%5C%22%5D%22%2Cnull%2C%22generic%22%5D%5D%5D&
2021-12-06 13:50:37,921 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443
2021-12-06 13:50:38,347 : DEBUG : https://translate.google.com:443 "POST /_/TranslateWebserverUi/data/batchexecute HTTP/1.1" 200 None
2021-12-06 13:50:38,371 : DEBUG : headers-0: {'Referer': 'http://translate.google.com/', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Content-Length': '154'}
2021-12-06 13:50:38,374 : DEBUG : url-0: https://translate.google.com/_/TranslateWebserverUi/data/batchexecute
2021-12-06 13:50:38,375 : DEBUG : status-0: 200
2021-12-06 13:50:38,378 : DEBUG : part-0 written to <_io.BufferedWriter name='/tmp/female-say.mp3'>
2021-12-06 13:50:38,381 : DEBUG : Saved to /tmp/female-say.mp3
2021-12-06 13:50:40,897 : INFO : file_cache is only supported with oauth2client<4.0.0
2021-12-06 13:50:41,003 : DEBUG : URL being requested: GET https://youtube.googleapis.com/youtube/v3/search?q=dilbar+dilbar+song&part=id%2Csnippet&key=AIzaSyBHThWLxQ-em5v5MecJVttghmUvW37XYbA&alt=json
2021-12-06 13:50:43,477 : DEBUG : text: Encountered an exception please check the logs.
2021-12-06 13:50:43,479 : DEBUG : tld: com
2021-12-06 13:50:43,480 : DEBUG : lang: en
2021-12-06 13:50:43,481 : DEBUG : slow: False
2021-12-06 13:50:43,482 : DEBUG : lang_check: True
2021-12-06 13:50:43,482 : DEBUG : pre_processor_funcs: [<function tone_marks at 0x731dce40>, <function end_of_line at 0x731dcfa8>, <function abbreviations at 0x731ef0c0>, <function word_sub at 0x731ef4b0>]
2021-12-06 13:50:43,483 : DEBUG : tokenizer_func: <bound method Tokenizer.run of re.compile('(?<=\\?).|(?<=!).|(?<=?).|(?<=!).|(?<!\\.[a-z])\\. |(?<!\\.[a-z]), |(?<!\\d):|…|‥|、|¿|\\[|;|,|:|。|\\(|،|\\)|—|¡|\\]|\\\n', re.IGNORECASE) from: [<function tone_marks at 0x731ef540>, <function period_comma at 0x731ef588>, <function colon at 0x731ef5d0>, <function other_punctuation at 0x731ef618>]>
2021-12-06 13:50:43,485 : DEBUG : langs: {'af': 'Afrikaans', 'ar': 'Arabic', 'bn': 'Bengali', 'bs': 'Bosnian', 'ca': 'Catalan', 'cs': 'Czech', 'cy': 'Welsh', 'da': 'Danish', 'de': 'German', 'el': 'Greek', 'en': 'English', 'eo': 'Esperanto', 'es': 'Spanish', 'et': 'Estonian', 'fi': 'Finnish', 'fr': 'French', 'gu': 'Gujarati', 'hi': 'Hindi', 'hr': 'Croatian', 'hu': 'Hungarian', 'hy': 'Armenian', 'id': 'Indonesian', 'is': 'Icelandic', 'it': 'Italian', 'ja': 'Japanese', 'jw': 'Javanese', 'km': 'Khmer', 'kn': 'Kannada', 'ko': 'Korean', 'la': 'Latin', 'lv': 'Latvian', 'mk': 'Macedonian', 'ml': 'Malayalam', 'mr': 'Marathi', 'my': 'Myanmar (Burmese)', 'ne': 'Nepali', 'nl': 'Dutch', 'no': 'Norwegian', 'pl': 'Polish', 'pt': 'Portuguese', 'ro': 'Romanian', 'ru': 'Russian', 'si': 'Sinhala', 'sk': 'Slovak', 'sq': 'Albanian', 'sr': 'Serbian', 'su': 'Sundanese', 'sv': 'Swedish', 'sw': 'Swahili', 'ta': 'Tamil', 'te': 'Telugu', 'th': 'Thai', 'tl': 'Filipino', 'tr': 'Turkish', 'uk': 'Ukrainian', 'ur': 'Urdu', 'vi': 'Vietnamese', 'zh-CN': 'Chinese', 'zh-cn': 'Chinese (Mandarin/China)', 'zh-tw': 'Chinese (Mandarin/Taiwan)', 'en-us': 'English (US)', 'en-ca': 'English (Canada)', 'en-uk': 'English (UK)', 'en-gb': 'English (UK)', 'en-au': 'English (Australia)', 'en-gh': 'English (Ghana)', 'en-in': 'English (India)', 'en-ie': 'English (Ireland)', 'en-nz': 'English (New Zealand)', 'en-ng': 'English (Nigeria)', 'en-ph': 'English (Philippines)', 'en-za': 'English (South Africa)', 'en-tz': 'English (Tanzania)', 'fr-ca': 'French (Canada)', 'fr-fr': 'French (France)', 'pt-br': 'Portuguese (Brazil)', 'pt-pt': 'Portuguese (Portugal)', 'es-es': 'Spanish (Spain)', 'es-us': 'Spanish (United States)'}
2021-12-06 13:50:43,487 : DEBUG : pre-processing: <function tone_marks at 0x731dce40>
2021-12-06 13:50:43,488 : DEBUG : pre-processing: <function end_of_line at 0x731dcfa8>
2021-12-06 13:50:43,489 : DEBUG : pre-processing: <function abbreviations at 0x731ef0c0>
2021-12-06 13:50:43,492 : DEBUG : pre-processing: <function word_sub at 0x731ef4b0>
2021-12-06 13:50:43,497 : DEBUG : text_parts: ['Encountered an exception please check the logs.']
2021-12-06 13:50:43,500 : DEBUG : text_parts: 1
2021-12-06 13:50:43,505 : DEBUG : data-0: f.req=%5B%5B%5B%22jQ1olc%22%2C%22%5B%5C%22Encountered%20an%20exception%20please%20check%20the%20logs.%5C%22%2C%5C%22en%5C%22%2Cnull%2C%5C%22null%5C%22%5D%22%2Cnull%2C%22generic%22%5D%5D%5D&
2021-12-06 13:50:43,540 : DEBUG : Starting new HTTPS connection (1): translate.google.com:443
2021-12-06 13:50:43,904 : DEBUG : https://translate.google.com:443 "POST /_/TranslateWebserverUi/data/batchexecute HTTP/1.1" 200 None
2021-12-06 13:50:43,945 : DEBUG : headers-0: {'Referer': 'http://translate.google.com/', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', 'Content-Length': '189'}
2021-12-06 13:50:43,949 : DEBUG : url-0: https://translate.google.com/_/TranslateWebserverUi/data/batchexecute
2021-12-06 13:50:43,951 : DEBUG : status-0: 200
2021-12-06 13:50:43,956 : DEBUG : part-0 written to <_io.BufferedWriter name='/tmp/female-say.mp3'>
2021-12-06 13:50:43,957 : DEBUG : Saved to /tmp/female-say.mp3
ON_MUTED_CHANGED: {"is_muted": false}
ON_START_FINISHED
ON_MEDIA_STATE_IDLE
ON_CONVERSATION_TURN_STARTED
ON_END_OF_UTTERANCE
ON_END_OF_UTTERANCE
ON_RECOGNIZING_SPEECH_FINISHED: {"text": "play stereo from youtube"}
stopping vlc High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.25.10; 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. stereo ['_U0PrwLpb_Q'] ['_U0PrwLpb_Q', 'T3E9Wjbq44E'] ['_U0PrwLpb_Q', 'T3E9Wjbq44E', 'bY1ydcTV-hA'] ['_U0PrwLpb_Q', 'T3E9Wjbq44E', 'bY1ydcTV-hA', '02lW6TpjVJk'] ['_U0PrwLpb_Q', 'T3E9Wjbq44E', 'bY1ydcTV-hA', '02lW6TpjVJk', 'yp9uCy_oudU'] 'dislike_count' High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3 version 1.25.10; 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}
Terminal log
pi@raspberrypi:~ $ /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --project_id 'mirrorv3-87bb8' --device_model_id 'mirrorv3-87bb8-mirrorv3-tbtjeo'
USB-MIC-JACK
Initializing GPIOs 5 and 6 for assistant activity indication
/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: mirrorv3-87bb8-mirrorv3-tbtjeo
device_id: 1FC2027C98B5899D1329A30DDEA02778
ON_MUTED_CHANGED:
{"is_muted": false}
ON_START_FINISHED
ON_MEDIA_STATE_IDLE
ON_CONVERSATION_TURN_STARTED
ON_END_OF_UTTERANCE
ON_END_OF_UTTERANCE
ON_RECOGNIZING_SPEECH_FINISHED:
{"text": "play Waka Waka song from YouTube"}
stopping vlc
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.25.10; 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.
waka waka song
['pRpeEdMmmQ0']
['pRpeEdMmmQ0', '1zacYmrdexA']
['pRpeEdMmmQ0', '1zacYmrdexA', 'Ntn1-SocNiY']
['pRpeEdMmmQ0', '1zacYmrdexA', 'Ntn1-SocNiY', 'gVfgTw_W_JY']
['pRpeEdMmmQ0', '1zacYmrdexA', 'Ntn1-SocNiY', 'gVfgTw_W_JY', '6U58KYsh09w']
'dislike_count'
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
version 1.25.10; 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 I'm so sorry. I already uploaded the command line terminal reply. I hope it fixes. Thank you in advance!
Right now not work youtube. Please fix it
Here is the fix. Open a terminal and run these commands one after the another. After that try running the assistant.
source env/bin/activate
pip3 uninstall -y pafy
pip3 install git+https://github.com/shivasiddharth/pafy
Give this project some stars. A lot of resources (Pi hardware, other SBCs, Pi HATS, my precious time, etc) have been spent on this project's development. If you would like to support the development of this project, you can make some donations by clicking on the link in the README.
Thank you very much!
That did it. Really do appreciate your continued work on this project.
@jaedeezy Thanks for your donation.
Than you so much solved this problem
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
Board and OS details:
Open a terminal and run
Describe the bug:
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
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?
Yes, but I use manual start
4. Is the assistant service restarting automatically?
Yes
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