gauravsacc / MMM-GoogleAssistant

Google Assistant module for magic mirror https://github.com/MichMich/MagicMirror
MIT License
118 stars 40 forks source link

Syntax Error when running assistant.py script #63

Open ghoul88 opened 4 years ago

ghoul88 commented 4 years ago

I have similar problem with here https://github.com/gauravsacc/MMM-GoogleAssistant/issues/62

The thread is already closed, without proper solution anyone can explain what did he mean by reflash? Hopefully someone can explain the solution for this in details

pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant/pi $ /home/pi/env/bin/python3 -u assistant.py File "assistant.py", line 64 pubnub.publish().channel("magicmirror").message("hello from python!!").async(my_publish_callback) ^ SyntaxError: invalid syntax

HarmKok70 commented 4 years ago

I got the same problem, no idea what is "reflash" is.

mdsalaamabdul99 commented 4 years ago

same problem

Saeijou commented 4 years ago

I have the same problem, did anyone find a viable solution yet? is it only an issue with RPi 4?

vivekpk007 commented 4 years ago

I have same problem, i am using RPi3 B+

michaelmcmahon274 commented 4 years ago

I have same problem too. any updates on this issue.

reubenvickers commented 4 years ago

I also had this issue. I found this issue which had an answer.

Essentially replace '.async' with '.pn_async', it seems that pubnub updated the publish method but the 'assistant.py' file has not been changed to compensate this.