google-assistant-samsung-smart-tv-integration
google-assistant-samsung-smart-tv-integration copied to clipboard
doesn't run on RPI
I'm trying to run the script (Master branch) on my PI running jessie
Using python samsung-smart-tv-remote.py I get an error due the name in the PY for configparser being that used for python 3 renaming configparser on line 3 and 5 to ConfigParser and adding the () for the prints moves this on to other errors.
python3 samsung-smart-tv-remote.py gives multiple syntax errors e.g. print function needing (), getitem not supported ...
Is this script for a PI!?
Can you try with Python 2?
With Python 2.7.9 and no changes to the script i get:
Traceback (most recent call last):
File "samsung-smart-tv-remote.py", line 3, in
Then changing the configparser to ConfigParser as it appears to be using Python 3 naming "The ConfigParser module has been renamed to configparser in Python 3" but still running under Python 2.x i next get:
Traceback (most recent call last):
File "samsung-smart-tv-remote.py", line 8, in
I guess something changed in the configparser library. I will try with a fresh setup and I would let you know.
cool THANK YOU
Almost Working!
So here is what I have done so far and the error now seems to be in the JSon Payload! Current error
TypeError: the JSON object must be str, not 'bytes'
Actions thus far:
Install pika and samsungctl for Python 3 with pip3 Install pip3 install pika Install pip3 install samsungctl
Edit samsung-smart-tv-remote.py adding () to each print line
Run the python script using python3 python3 samsung-smart-tv-remote.py
Error on Pi when message is read:
pi@xxxxxx:~/SamsungTV $ python3 samsung-smart-tv-remote.py
Traceback (most recent call last):
File "samsung-smart-tv-remote.py", line 52, in