petretiandrea / plugp100

Work in progress implementation of tapo protocol in python.
GNU General Public License v3.0
72 stars 28 forks source link

Problem with plugp100 on Home Assistant 2022.7.0b0 #42

Closed piio closed 2 years ago

piio commented 2 years ago

Hi,

After installing newest beta of Home Assistant (2022.7.0b0) tapo integration could'nt install due to problem with dependency of plugp100 with pycryptodome - in newer HA there is pycryptodome 3.15.0 and can't install pycryptodome 3.12.0

The following integrations and platforms could not be set up:

[tapo](https://github.com/petretiandrea/home-assistant-tapo-p100) ([Show logs](https://localhost:8423/config/logs?filter=tapo))

Please check your config and logs.

Setup failed for custom integration tapo: Requirements for tapo not found: ['plugp100==2.1.14'].

I had to install gcc, musl-devel and finally I managed to install plugp100

piio commented 2 years ago

After some digging, when I installed plugp100 in version 2.1.14 on 2022.7.0b0 my bulbs are still not working.

I tried to run directly from python:

import asyncio from plugp100 import TapoApiClient

async def main(): ... # create generic tapo api ... sw = TapoApiClient("truncated", "truncated", "truncated") ... await sw.login() ... await sw.on() ... await sw.set_brightness(100) ... print(await sw.get_state()) ... loop = asyncio.get_event_loop()

:1: DeprecationWarning: There is no current event loop >>> loop.run_until_complete(main()) /usr/local/lib/python3.10/site-packages/jsons/_common_impl.py:43: UserWarning: Failed to dump attribute "HandshakeParams(key='-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC61i5qy8hYR5mqppgwKeqyS6oYxU6PVd1jhTRE\r\nO3bdj7a3A98GJ8dzMEAeVjo9Wu3g2GtmnRoq+S2V7VQVMrdZaysSsPDuGqKQGeGY6RmfarB4+Toq\r\nvO7QQWR2HnyP8SkXVHQNhYmv2TvE4GsMpBXmHMNAEWKOez9mhRU6sl4JtwIDAQAB\n-----END PUBLIC KEY-----\n')" of object of type "HandshakeMethod". Reason: 'NoneType' object is not callable. Ignoring the attribute. Use suppress_warning(attribute-not-serialized) or suppress_warnings(True) to turn off this message. warnings.warn(msg_, *args, **kwargs) Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() File "", line 4, in main File "/usr/local/lib/python3.10/site-packages/plugp100/api.py", line 84, in login await self._handshake() File "/usr/local/lib/python3.10/site-packages/plugp100/api.py", line 159, in _handshake self.__validate_response(resp_dict) File "/usr/local/lib/python3.10/site-packages/plugp100/api.py", line 257, in __validate_response raise TapoException.from_error_code(resp['error_code']) plugp100.core.exceptions.TapoException.TapoException: Returned unknown error_code: -1010 It looks that there is connected with change of Python version in 2022.7.0b0 to 3.10
rahaaas commented 2 years ago

Can confirm same problem / error with the 2022.7.0 release. Agreed seems to be a Python 3.10 issue... or perhaps more specifically with plugp100(?)

richard-scott commented 2 years ago

It's an issue caused from trying to install pycryptodome

nickmcgill commented 2 years ago

Is this an issue with requirements.txt line 5 has 'pycryptodome==3.12.0', would changing that to 'pycryptodome>=3.12.0' fix the problem?

petretiandrea commented 2 years ago

Please try to install new version pip install plugp100==2.1.15

augard commented 2 years ago

Same issue

➜  ~ pip install plugp100==2.1.15
Collecting plugp100==2.1.15
  Downloading plugp100-2.1.15-py3-none-any.whl (32 kB)
Collecting chardet
  Downloading chardet-5.0.0-py3-none-any.whl (193 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 193.6/193.6 kB 2.8 MB/s eta 0:00:00
Collecting aiohttp>=3.7.4.post0
  Downloading aiohttp-3.8.1-cp310-cp310-musllinux_1_1_aarch64.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 5.5 MB/s eta 0:00:00
Collecting certifi>=2020.12.5
  Downloading certifi-2022.6.15-py3-none-any.whl (160 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.2/160.2 kB 6.6 MB/s eta 0:00:00
Collecting requests>=2.25.1
  Downloading requests-2.28.1-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 3.6 MB/s eta 0:00:00
Collecting pycryptodome==3.12.0
  Downloading pycryptodome-3.12.0.zip (3.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.7/3.7 MB 7.6 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting typish==1.9.3
  Downloading typish-1.9.3-py3-none-any.whl (45 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.1/45.1 kB 2.6 MB/s eta 0:00:00
Collecting pkcs7==0.1.2
  Downloading pkcs7-0.1.2.zip (3.3 kB)
  Preparing metadata (setup.py) ... done
Collecting urllib3==1.26.5
  Downloading urllib3-1.26.5-py2.py3-none-any.whl (138 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 138.1/138.1 kB 6.0 MB/s eta 0:00:00
Collecting jsons==1.6.1
  Downloading jsons-1.6.1-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.6/61.6 kB 3.1 MB/s eta 0:00:00
Collecting idna>=2.10
  Downloading idna-3.3-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 3.5 MB/s eta 0:00:00
Collecting charset-normalizer<3.0,>=2.0
  Downloading charset_normalizer-2.1.0-py3-none-any.whl (39 kB)
Collecting multidict<7.0,>=4.5
  Downloading multidict-6.0.2-cp310-cp310-musllinux_1_1_aarch64.whl (138 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 138.5/138.5 kB 5.4 MB/s eta 0:00:00
Collecting aiosignal>=1.1.2
  Downloading aiosignal-1.2.0-py3-none-any.whl (8.2 kB)
Collecting yarl<2.0,>=1.0
  Downloading yarl-1.7.2-cp310-cp310-musllinux_1_1_aarch64.whl (310 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 310.2/310.2 kB 7.0 MB/s eta 0:00:00
Collecting frozenlist>=1.1.1
  Downloading frozenlist-1.3.0-cp310-cp310-musllinux_1_1_aarch64.whl (160 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.4/160.4 kB 5.7 MB/s eta 0:00:00
Collecting attrs>=17.3.0
  Downloading attrs-21.4.0-py2.py3-none-any.whl (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.6/60.6 kB 3.2 MB/s eta 0:00:00
Collecting async-timeout<5.0,>=4.0.0a3
  Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Using legacy 'setup.py install' for pkcs7, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pycryptodome, since package 'wheel' is not installed.
Installing collected packages: typish, pkcs7, urllib3, pycryptodome, multidict, jsons, idna, frozenlist, charset-normalizer, chardet, certifi, attrs, async-timeout, yarl, requests, aiosignal, aiohttp, plugp100
  Running setup.py install for pkcs7 ... done
  Running setup.py install for pycryptodome ... error
  error: subprocess-exited-with-error

  × Running setup.py install for pycryptodome did not run successfully.
  │ exit code: 1
  ╰─> [330 lines of output]
      Testing support for clang
      Target does not support clang
      Testing support for gcc
      Target does not support gcc
      Testing support for stdint.h header
      Target does not support stdint.h header
      Testing support for 128-bit integer
      Target does not support 128-bit integer
      Testing support for cpuid.h header
      Target does not support cpuid.h header
      Testing support for intrin.h header
      Target does not support intrin.h header
      Testing support for posix_memalign
      Target does not support posix_memalign
      Testing support for memalign
      Target does not support memalign
      Testing support for SSE2(intrin.h)
      Target does not support SSE2(intrin.h)
      Testing support for SSE2(x86intrin.h)
      Target does not support SSE2(x86intrin.h)
      Testing support for SSE2(emmintrin.h)
      Target does not support SSE2(emmintrin.h)
      Warning: compiler does not support AESNI instructions
      Warning: compiler does not support CLMUL instructions
      running install
      /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build/lib.linux-aarch64-3.10
      creating build/lib.linux-aarch64-3.10/Crypto
      copying lib/Crypto/__init__.py -> build/lib.linux-aarch64-3.10/Crypto
      creating build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_ocb.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/ChaCha20.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_cfb.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/DES3.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_openpgp.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/Salsa20.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_ecb.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/PKCS1_OAEP.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_cbc.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_gcm.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/Blowfish.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/ARC2.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/DES.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/AES.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_siv.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_eax.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/ChaCha20_Poly1305.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_ccm.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/PKCS1_v1_5.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_ctr.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_ofb.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/CAST.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_EKSBlowfish.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/ARC4.py -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      creating build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA3_224.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/MD4.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/keccak.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA384.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/RIPEMD.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA256.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/BLAKE2b.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA1.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/Poly1305.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/KMAC128.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/cSHAKE128.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/TupleHash256.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/cSHAKE256.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/HMAC.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA3_384.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/KMAC256.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/TupleHash128.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/CMAC.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHAKE256.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHAKE128.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/MD2.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA512.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA3_256.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA3_512.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA224.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/KangarooTwelve.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/RIPEMD160.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/BLAKE2s.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/MD5.py -> build/lib.linux-aarch64-3.10/Crypto/Hash
      creating build/lib.linux-aarch64-3.10/Crypto/IO
      copying lib/Crypto/IO/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/IO
      copying lib/Crypto/IO/PEM.py -> build/lib.linux-aarch64-3.10/Crypto/IO
      copying lib/Crypto/IO/PKCS8.py -> build/lib.linux-aarch64-3.10/Crypto/IO
      copying lib/Crypto/IO/_PBES.py -> build/lib.linux-aarch64-3.10/Crypto/IO
      creating build/lib.linux-aarch64-3.10/Crypto/PublicKey
      copying lib/Crypto/PublicKey/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/PublicKey
      copying lib/Crypto/PublicKey/_openssh.py -> build/lib.linux-aarch64-3.10/Crypto/PublicKey
      copying lib/Crypto/PublicKey/ElGamal.py -> build/lib.linux-aarch64-3.10/Crypto/PublicKey
      copying lib/Crypto/PublicKey/DSA.py -> build/lib.linux-aarch64-3.10/Crypto/PublicKey
      copying lib/Crypto/PublicKey/RSA.py -> build/lib.linux-aarch64-3.10/Crypto/PublicKey
      copying lib/Crypto/PublicKey/ECC.py -> build/lib.linux-aarch64-3.10/Crypto/PublicKey
      creating build/lib.linux-aarch64-3.10/Crypto/Protocol
      copying lib/Crypto/Protocol/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/Protocol
      copying lib/Crypto/Protocol/KDF.py -> build/lib.linux-aarch64-3.10/Crypto/Protocol
      copying lib/Crypto/Protocol/SecretSharing.py -> build/lib.linux-aarch64-3.10/Crypto/Protocol
      creating build/lib.linux-aarch64-3.10/Crypto/Random
      copying lib/Crypto/Random/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/Random
      copying lib/Crypto/Random/random.py -> build/lib.linux-aarch64-3.10/Crypto/Random
      creating build/lib.linux-aarch64-3.10/Crypto/Signature
      copying lib/Crypto/Signature/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/Signature
      copying lib/Crypto/Signature/PKCS1_PSS.py -> build/lib.linux-aarch64-3.10/Crypto/Signature
      copying lib/Crypto/Signature/DSS.py -> build/lib.linux-aarch64-3.10/Crypto/Signature
      copying lib/Crypto/Signature/pss.py -> build/lib.linux-aarch64-3.10/Crypto/Signature
      copying lib/Crypto/Signature/pkcs1_15.py -> build/lib.linux-aarch64-3.10/Crypto/Signature
      copying lib/Crypto/Signature/PKCS1_v1_5.py -> build/lib.linux-aarch64-3.10/Crypto/Signature
      creating build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/RFC1751.py -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/strxor.py -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/_raw_api.py -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/Padding.py -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/_cpu_features.py -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/py3compat.py -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/asn1.py -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/_file_system.py -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/Counter.py -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/number.py -> build/lib.linux-aarch64-3.10/Crypto/Util
      creating build/lib.linux-aarch64-3.10/Crypto/Math
      copying lib/Crypto/Math/_IntegerNative.py -> build/lib.linux-aarch64-3.10/Crypto/Math
      copying lib/Crypto/Math/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/Math
      copying lib/Crypto/Math/_IntegerBase.py -> build/lib.linux-aarch64-3.10/Crypto/Math
      copying lib/Crypto/Math/Numbers.py -> build/lib.linux-aarch64-3.10/Crypto/Math
      copying lib/Crypto/Math/_IntegerGMP.py -> build/lib.linux-aarch64-3.10/Crypto/Math
      copying lib/Crypto/Math/_IntegerCustom.py -> build/lib.linux-aarch64-3.10/Crypto/Math
      copying lib/Crypto/Math/Primality.py -> build/lib.linux-aarch64-3.10/Crypto/Math
      creating build/lib.linux-aarch64-3.10/Crypto/SelfTest
      copying lib/Crypto/SelfTest/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest
      copying lib/Crypto/SelfTest/st_common.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest
      copying lib/Crypto/SelfTest/loader.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest
      copying lib/Crypto/SelfTest/__main__.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest
      creating build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/common.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_Salsa20.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_CCM.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_CTR.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_OCB.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_DES3.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_ChaCha20.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_SIV.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_OFB.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_Blowfish.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_ARC2.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_CAST.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_CBC.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_EAX.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_DES.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_AES.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_CFB.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_pkcs1_15.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_ChaCha20_Poly1305.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_OpenPGP.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_ARC4.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      copying lib/Crypto/SelfTest/Cipher/test_GCM.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Cipher
      creating build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/common.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_MD2.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_Poly1305.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_SHA512.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_SHAKE.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_HMAC.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_CMAC.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_KangarooTwelve.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_SHA3_256.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_SHA224.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_SHA3_224.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_TupleHash.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_SHA384.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_SHA256.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_MD5.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_KMAC.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_RIPEMD160.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_SHA3_384.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_cSHAKE.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_SHA1.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_BLAKE2.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_MD4.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_SHA3_512.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      copying lib/Crypto/SelfTest/Hash/test_keccak.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Hash
      creating build/lib.linux-aarch64-3.10/Crypto/SelfTest/IO
      copying lib/Crypto/SelfTest/IO/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/IO
      copying lib/Crypto/SelfTest/IO/test_PBES.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/IO
      copying lib/Crypto/SelfTest/IO/test_PKCS8.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/IO
      creating build/lib.linux-aarch64-3.10/Crypto/SelfTest/Protocol
      copying lib/Crypto/SelfTest/Protocol/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Protocol
      copying lib/Crypto/SelfTest/Protocol/test_KDF.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Protocol
      copying lib/Crypto/SelfTest/Protocol/test_rfc1751.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Protocol
      copying lib/Crypto/SelfTest/Protocol/test_SecretSharing.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Protocol
      creating build/lib.linux-aarch64-3.10/Crypto/SelfTest/PublicKey
      copying lib/Crypto/SelfTest/PublicKey/test_ElGamal.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/PublicKey
      copying lib/Crypto/SelfTest/PublicKey/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/PublicKey
      copying lib/Crypto/SelfTest/PublicKey/test_ECC.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/PublicKey
      copying lib/Crypto/SelfTest/PublicKey/test_import_ECC.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/PublicKey
      copying lib/Crypto/SelfTest/PublicKey/test_RSA.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/PublicKey
      copying lib/Crypto/SelfTest/PublicKey/test_import_RSA.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/PublicKey
      copying lib/Crypto/SelfTest/PublicKey/test_import_DSA.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/PublicKey
      copying lib/Crypto/SelfTest/PublicKey/test_DSA.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/PublicKey
      creating build/lib.linux-aarch64-3.10/Crypto/SelfTest/Random
      copying lib/Crypto/SelfTest/Random/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Random
      copying lib/Crypto/SelfTest/Random/test_random.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Random
      creating build/lib.linux-aarch64-3.10/Crypto/SelfTest/Signature
      copying lib/Crypto/SelfTest/Signature/test_dss.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Signature
      copying lib/Crypto/SelfTest/Signature/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Signature
      copying lib/Crypto/SelfTest/Signature/test_pkcs1_15.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Signature
      copying lib/Crypto/SelfTest/Signature/test_pss.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Signature
      creating build/lib.linux-aarch64-3.10/Crypto/SelfTest/Util
      copying lib/Crypto/SelfTest/Util/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Util
      copying lib/Crypto/SelfTest/Util/test_Counter.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Util
      copying lib/Crypto/SelfTest/Util/test_rfc1751.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Util
      copying lib/Crypto/SelfTest/Util/test_strxor.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Util
      copying lib/Crypto/SelfTest/Util/test_number.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Util
      copying lib/Crypto/SelfTest/Util/test_Padding.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Util
      copying lib/Crypto/SelfTest/Util/test_asn1.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Util
      creating build/lib.linux-aarch64-3.10/Crypto/SelfTest/Math
      copying lib/Crypto/SelfTest/Math/__init__.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Math
      copying lib/Crypto/SelfTest/Math/test_modexp.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Math
      copying lib/Crypto/SelfTest/Math/test_Primality.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Math
      copying lib/Crypto/SelfTest/Math/test_Numbers.py -> build/lib.linux-aarch64-3.10/Crypto/SelfTest/Math
      copying lib/Crypto/py.typed -> build/lib.linux-aarch64-3.10/Crypto
      copying lib/Crypto/__init__.pyi -> build/lib.linux-aarch64-3.10/Crypto
      copying lib/Crypto/Cipher/ChaCha20.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/DES3.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_cbc.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/ChaCha20_Poly1305.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_ocb.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_ecb.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_gcm.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/AES.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/PKCS1_v1_5.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/PKCS1_OAEP.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_eax.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/ARC2.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/ARC4.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_ofb.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/__init__.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_cfb.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/CAST.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_ccm.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/DES.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/Blowfish.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_siv.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/Salsa20.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_EKSBlowfish.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_ctr.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Cipher/_mode_openpgp.pyi -> build/lib.linux-aarch64-3.10/Crypto/Cipher
      copying lib/Crypto/Hash/HMAC.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/keccak.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/Poly1305.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA3_256.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/cSHAKE128.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/KMAC128.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHAKE128.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/MD2.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHAKE256.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/RIPEMD160.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA224.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA256.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/cSHAKE256.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/MD4.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/TupleHash256.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/MD5.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/BLAKE2b.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/CMAC.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/__init__.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/KMAC256.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA512.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA384.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/RIPEMD.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA3_224.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA3_512.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/KangarooTwelve.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/BLAKE2s.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/TupleHash128.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA1.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/Hash/SHA3_384.pyi -> build/lib.linux-aarch64-3.10/Crypto/Hash
      copying lib/Crypto/IO/PEM.pyi -> build/lib.linux-aarch64-3.10/Crypto/IO
      copying lib/Crypto/IO/_PBES.pyi -> build/lib.linux-aarch64-3.10/Crypto/IO
      copying lib/Crypto/IO/PKCS8.pyi -> build/lib.linux-aarch64-3.10/Crypto/IO
      copying lib/Crypto/PublicKey/_openssh.pyi -> build/lib.linux-aarch64-3.10/Crypto/PublicKey
      copying lib/Crypto/PublicKey/ECC.pyi -> build/lib.linux-aarch64-3.10/Crypto/PublicKey
      copying lib/Crypto/PublicKey/DSA.pyi -> build/lib.linux-aarch64-3.10/Crypto/PublicKey
      copying lib/Crypto/PublicKey/__init__.pyi -> build/lib.linux-aarch64-3.10/Crypto/PublicKey
      copying lib/Crypto/PublicKey/ElGamal.pyi -> build/lib.linux-aarch64-3.10/Crypto/PublicKey
      copying lib/Crypto/PublicKey/RSA.pyi -> build/lib.linux-aarch64-3.10/Crypto/PublicKey
      copying lib/Crypto/Protocol/SecretSharing.pyi -> build/lib.linux-aarch64-3.10/Crypto/Protocol
      copying lib/Crypto/Protocol/__init__.pyi -> build/lib.linux-aarch64-3.10/Crypto/Protocol
      copying lib/Crypto/Protocol/KDF.pyi -> build/lib.linux-aarch64-3.10/Crypto/Protocol
      copying lib/Crypto/Random/random.pyi -> build/lib.linux-aarch64-3.10/Crypto/Random
      copying lib/Crypto/Random/__init__.pyi -> build/lib.linux-aarch64-3.10/Crypto/Random
      copying lib/Crypto/Signature/pss.pyi -> build/lib.linux-aarch64-3.10/Crypto/Signature
      copying lib/Crypto/Signature/DSS.pyi -> build/lib.linux-aarch64-3.10/Crypto/Signature
      copying lib/Crypto/Signature/PKCS1_PSS.pyi -> build/lib.linux-aarch64-3.10/Crypto/Signature
      copying lib/Crypto/Signature/PKCS1_v1_5.pyi -> build/lib.linux-aarch64-3.10/Crypto/Signature
      copying lib/Crypto/Signature/pkcs1_15.pyi -> build/lib.linux-aarch64-3.10/Crypto/Signature
      copying lib/Crypto/Util/_cpu_features.pyi -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/Padding.pyi -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/number.pyi -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/strxor.pyi -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/_file_system.pyi -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/asn1.pyi -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/Counter.pyi -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/py3compat.pyi -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/RFC1751.pyi -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Util/_raw_api.pyi -> build/lib.linux-aarch64-3.10/Crypto/Util
      copying lib/Crypto/Math/_IntegerGMP.pyi -> build/lib.linux-aarch64-3.10/Crypto/Math
      copying lib/Crypto/Math/_IntegerBase.pyi -> build/lib.linux-aarch64-3.10/Crypto/Math
      copying lib/Crypto/Math/Numbers.pyi -> build/lib.linux-aarch64-3.10/Crypto/Math
      copying lib/Crypto/Math/Primality.pyi -> build/lib.linux-aarch64-3.10/Crypto/Math
      copying lib/Crypto/Math/_IntegerCustom.pyi -> build/lib.linux-aarch64-3.10/Crypto/Math
      copying lib/Crypto/Math/_IntegerNative.pyi -> build/lib.linux-aarch64-3.10/Crypto/Math
      running build_ext
      building 'Crypto.Hash._MD2' extension
      creating build/temp.linux-aarch64-3.10
      creating build/temp.linux-aarch64-3.10/src
      gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -g -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -DPYCRYPTO_LITTLE_ENDIAN -DSYS_BITS=64 -DLTC_NO_ASM -Isrc/ -I/usr/include/python3.10 -c src/MD2.c -o build/temp.linux-aarch64-3.10/src/MD2.o
      error: command 'gcc' failed: No such file or directory
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pycryptodome

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
petretiandrea commented 2 years ago

I see musllinux_1_1 as part of wheels installed by pip. What's your host machine?

Seems to be there are no wheels for all of these package for your machine typish, pkcs7, urllib3, pycryptodome, multidict, jsons, idna, frozenlist, charset-normalizer, chardet, certifi, attrs, async-timeout, yarl, requests, aiosignal, aiohttp .

petretiandrea commented 2 years ago

Please try this new version, I hope this works: pip install plugp100==2.1.16

piio commented 2 years ago

Installation problem is resolved