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

Crypto Cipher problem #54

Closed privatesam closed 3 years ago

privatesam commented 3 years ago

Getting the following problem:

.homeassistant/custom_components/samsungtv_encrypted$ python ./get_token.py -ip 10.7.7.58 -port 8080 Traceback (most recent call last): File "./get_token.py", line 3, in <module> from PySmartCrypto.pysmartcrypto import PySmartCrypto File "/home/homeassistant/.homeassistant/custom_components/samsungtv_encrypted/PySmartCrypto/pysmartcrypto.py", line 2, in <module> from . import crypto File "/home/homeassistant/.homeassistant/custom_components/samsungtv_encrypted/PySmartCrypto/crypto.py", line 2, in <module> from Crypto.Cipher import AES ImportError: No module named Crypto.Cipher

ChaoticBD commented 3 years ago

Have the same issue running python3 by hassio ssh addon

add - that was a bad idea to run this in ha ssh addon. To run it via ssh i installed python3, pip, websocket, requests and crypto... may be running from hassio scripts will be more clean and easy

estevez-dev commented 3 years ago
pip install pycrypto

If you already have crypto installed:

pip uninstall crypto
pip uninstall pycrypto
pip install pycrypto