almottier / TapoP100

A module for controlling the TP-Link Tapo P100 Plugs
MIT License
68 stars 18 forks source link

Error when importing PyL530 #27

Open zedenzn opened 3 months ago

zedenzn commented 3 months ago

Hi, when i try run the commands for the L530 bulb ('from PyP100 import PyL530'), I get the error as seen below: └─$ python3 Python 3.11.8 (main, Feb 7 2024, 21:52:08) [GCC 13.2.0] on linux Type "help", "copyright", "credits" or "license" for more information.

from PyP100 import PyL530 Traceback (most recent call last): File "", line 1, in File "/home/zeenat/.local/lib/python3.11/site-packages/PyP100/PyL530.py", line 1, in from PyP100 import PyP100 File "/home/zeenat/.local/lib/python3.11/site-packages/PyP100/PyP100.py", line 9, in from Crypto.Cipher import AES, PKCS1_OAEP, PKCS1_v1_5 File "/home/zeenat/.local/lib/python3.11/site-packages/Crypto/Cipher/init.py", line 33, in from Crypto.Cipher._mode_ccm import _create_ccm_cipher File "/home/zeenat/.local/lib/python3.11/site-packages/Crypto/Cipher/_mode_ccm.py", line 47, in from Crypto.Hash import BLAKE2s ImportError: cannot import name 'BLAKE2s' from 'Crypto.Hash' (/home/zeenat/.local/lib/python3.11/site-packages/Crypto/Hash/init.py)

I have ran the command 'pip install PyP100'

is there any help for this?

error in plug