sermayoral / ha-samsungtv-encrypted

Samsung TV Encrypted Models (H & J Series) custom component for Home Assistant
Apache License 2.0
38 stars 24 forks source link

I just can’t get token #24

Closed sashadeg closed 4 years ago

sashadeg commented 4 years ago

I’ve been suffering for 3 weeks! Help me please! Oh my god, Author, make normal use instructions. Here, not all people are python masters.The author sends me this link, but this does not work. It does not even indicate that you need to install additional modules. I figured out how to do this myself, but still get_token.py does not work for me.

C:\Windows\system32>cd C:\ha-samsungtv-encrypted-master\custom_components\samsungtv_encrypted

C:\ha-samsungtv-encrypted-master\custom_components\samsungtv_encrypted>get_token.py --ip 192.168.100.2 --port 8080
Traceback (most recent call last):
  File "C:\ha-samsungtv-encrypted-master\custom_components\samsungtv_encrypted\get_token.py", line 3, in <module>
    from PySmartCrypto.pysmartcrypto import PySmartCrypto
  File "C:\Users\Professional\Desktop\ha-samsungtv-encrypted-master\custom_components\samsungtv_encrypted\PySmartCrypto\pysmartcrypto.py", line 2, in <module>
  File "C:\Users\Professional\Desktop\ha-samsungtv-encrypted-master\custom_components\samsungtv_encrypted\PySmartCrypto\crypto.py", line 2, in <module>
ImportError: No module named Crypto.Cipher
sermayoral commented 4 years ago

@sashadeg sorry, the smartcrypto module is not mine. We have use the module SmartCrypto from https://github.com/eclair4151/SmartCrypto, and I use his instructions (not mine).

Everything I can tell you, try:

pip3 install pycrypto

After that, you could execute the get_token.py