sermayoral / ha-samsungtv-encrypted

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

Get token - Crypto module not found #36

Closed homected closed 4 years ago

homected commented 4 years ago

I tried the command from Ubuntu and FreeBSD: python3 get_token.py --ip 192.168.3.23 --port 8080

but in both cases I get this error:

Traceback (most recent call last): File "get_token.py", line 3, in from PySmartCrypto.pysmartcrypto import PySmartCrypto File "/home/jlgalindo/Documents/samsung/ha-samsungtv-encrypted/custom_components/samsungtv_encrypted/PySmartCrypto/pysmartcrypto.py", line 2, in from . import crypto File "/home/jlgalindo/Documents/samsung/ha-samsungtv-encrypted/custom_components/samsungtv_encrypted/PySmartCrypto/crypto.py", line 2, in from Crypto.Cipher import AES ModuleNotFoundError: No module named 'Crypto'

homected commented 4 years ago

Finally with these commands I solve the error:

python3 -m pip install pycrypto python3 -m pip install websocket python3 -m pip install websocket-client