gauravsacc / MMM-GoogleAssistant

Google Assistant module for magic mirror https://github.com/MichMich/MagicMirror

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syntax Error when running assistant.py script

ghoul88 opened this issue · comments

commented

I have similar problem with here
#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

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

same problem

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

I have same problem, i am using RPi3 B+

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

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.