Hi, I had this working and out of nowhere it has stopped, I thought I just had to re-pair (as my TV lost power for a while and seems to have lost all "allowed" connections) but when I try to re-pair I get the following error:
My lack of python knowledge isn't helping but I tried Googling the error and not getting anywhere fast.
python3 smartcrypto.py
Current state: running
Pin ON TV
Please enter pin from tv: 1353
Got pin: '1353'
Traceback (most recent call last):
File "smartcrypto.py", line 96, in
output = HelloExchange(tvPIN)
File "smartcrypto.py", line 49, in HelloExchange
hello_output = crypto.generateServerHello(UserId,pin)
File "/home/pi/SmartCrypto/PySmartCrypto/crypto.py", line 32, in generateServerHello
sha1.update(pin)
TypeError: Unicode-objects must be encoded before hashing
Hi, I had this working and out of nowhere it has stopped, I thought I just had to re-pair (as my TV lost power for a while and seems to have lost all "allowed" connections) but when I try to re-pair I get the following error:
My lack of python knowledge isn't helping but I tried Googling the error and not getting anywhere fast.
python3 smartcrypto.py Current state: running Pin ON TV Please enter pin from tv: 1353 Got pin: '1353'
Traceback (most recent call last): File "smartcrypto.py", line 96, in
output = HelloExchange(tvPIN)
File "smartcrypto.py", line 49, in HelloExchange
hello_output = crypto.generateServerHello(UserId,pin)
File "/home/pi/SmartCrypto/PySmartCrypto/crypto.py", line 32, in generateServerHello
sha1.update(pin)
TypeError: Unicode-objects must be encoded before hashing
Any help much appreciated.