shivasiddharth / GassistPi

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

gaana,youtube,radio are not working. #667

Closed mihirbhavsar closed 5 years ago

mihirbhavsar 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  
Paste your Board and OS details here.   
processor   : 0
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 76.80
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xd03
CPU revision    : 4

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

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

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

Hardware    : BCM2835
Revision    : a22082
Serial      : 000000007fa2fa16

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:
everything is working well except gaana,youtube,radio.
after giving command i have to restart it.

### 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 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

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

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


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

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

play Arijit Singh's playlist from gaana.com
### Paste the contents of the terminal below

ON_RECOGNIZING_SPEECH_FINISHED:
{"text": "play Arijit Singh's playlist from gaana.com"}
ON_RECOGNIZING_SPEECH_FINISHED:
{"text": "play Arijit Singh's playlist from gaana.com"}
stopping vlc
Searching for arijit singh's playlist "} in gaana.com
ERROR:main:'NoneType' object has no attribute 'group'
Traceback (most recent call last):
File "/home/pi/GassistPi/src/main.py", line 692, in 
Myassistant().main()
File "/home/pi/GassistPi/src/main.py", line 680, in main
gaana_playlist_select(str(usrcmd).lower())
File "/home/pi/GassistPi/src/actions.py", line 1477, in gaana_playlist_select
say("Searching for " + track + " in gaana.com")
File "/home/pi/GassistPi/src/actions.py", line 227, in say
newword=trans(words,language)
File "/home/pi/GassistPi/src/actions.py", line 218, in trans
transword= translator.translate(words, dest=lang)
File "/home/pi/env/lib/python3.5/site-packages/googletrans/client.py", line 132, in translate
data = self._translate(text, dest, src)
File "/home/pi/env/lib/python3.5/site-packages/googletrans/client.py", line 57, in _translate
token = self.token_acquirer.do(text)
File "/home/pi/env/lib/python3.5/site-packages/googletrans/gtoken.py", line 180, in do
self._update()
File "/home/pi/env/lib/python3.5/site-packages/googletrans/gtoken.py", line 62, in _update
code = unicode(self.RE_TKK.search(r.text).group(1)).replace('var ', '')
AttributeError: 'NoneType' object has no attribute 'group'
shivasiddharth commented 5 years ago
  1. Issue template is incomplete.... 2. Duplicate of #534 .... 3. Please do not open multiple issues for the same post...