Open pat160 opened 5 years ago
I got the exact same output. When you install all the required dependencies in python 2 as well, then it will also output the same error as with python 3. Trying to get samsungctl to work for ages now. With the master and develop branch in combination with a H-series TV. Nothing worked so far.
I actually fixed this script by changing the following line:
in utils.py in the class DebugLogger(object): approx. Line 111
if msg.startswith('DEBUG*;*'):
tstamp = time.strftime(r'%x %X ',time.localtime(time.time()))
# this was the original line below
# msg = time.strftime(msg.format('%%x %%X'), time.localtime(time.time()))
msg = tstamp + msg
Thx to @gbrissey
It all runs fine afterwards, but still the whole CLI for samsungctl isn't working yet. Hope kdschlosser has some time to fix this, would love to control my TV through Domoticz.
Hi,
I'm trying to get the develop branch installed on a Raspberry Pi in order to run the RUN_ME.py program. I'm not a very experienced Python programmer, so I might have overlooked some obvious things.
So I copied the samsungctl-develop to the /home folder I ran sudo python3 setup.py install form within the /home/samsungctl-develop folder After that I moved to the samsungctl folder and I ran the RUN_ME.py from within that folder.
I did that using Python 2 and Python 3. These are the screen output results:
Python 2 Output : _root@raspbx:/home/samsungctl-develop/samsungctl# python RUNME.py
Python 3 Output : _root@raspbx:/home/samsungctl-develop/samsungctl# python3 RUNME.py
root@raspbx:/home/samsungctl-develop/samsungctl#
Any idea what I might be doing wrong here? Thanks, Patrick.