PiotrMachowski / Xiaomi-cloud-tokens-extractor

This tool/script retrieves tokens for all devices connected to Xiaomi cloud and encryption keys for BLE devices.
MIT License
3.24k stars 334 forks source link

error #58

Closed sagatxxx closed 2 years ago

sagatxxx commented 2 years ago

I get this error, what could be happening? before it worked fine for me

root@192.168.1.161's password: 

| |  | |                          /\           (_)   | |            | |  
| |__| | ___  _ __ ___   ___     /  \   ___ ___ _ ___| |_ __ _ _ __ | |_ 
|  __  |/ _ \| '_ \ _ \ / _ \   / /\ \ / __/ __| / __| __/ _\ | '_ \| __|
| |  | | (_) | | | | | |  __/  / ____ \\__ \__ \ \__ \ || (_| | | | | |_ 
|_|  |_|\___/|_| |_| |_|\___| /_/    \_\___/___/_|___/\__\__,_|_| |_|\__|

Welcome to the Home Assistant command line.

System information
  IPv4 addresses for eno1:  192.168.1.161/24
  IPv6 addresses for eno1:  fe80::e2fb:ccdb:2a3:9284/64
  IPv4 addresses for wlp2s0: 

  OS Version:               Home Assistant OS 7.4
  Home Assistant Core:      2022.2.9

  Home Assistant URL:       http://homeassistant.local:8123
  Observer URL:             http://homeassistant.local:4357
➜  ~ wget https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/releases/latest/download/token_extractor.zip
--2022-03-05 19:25:10--  https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/releases/latest/download/token_extractor.zip
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/releases/download/v1.1.2/token_extractor.zip [following]
--2022-03-05 19:25:11--  https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/releases/download/v1.1.2/token_extractor.zip
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/306357657/654f469e-1963-419d-b333-1377ce96cda4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220305%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220305T182511Z&X-Amz-Expires=300&X-Amz-Signature=913b9158f4e746877621de63c23e214f08c12668fde15178448b3351851a0e7f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=306357657&response-content-disposition=attachment%3B%20filename%3Dtoken_extractor.zip&response-content-type=application%2Foctet-stream [following]
--2022-03-05 19:25:11--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/306357657/654f469e-1963-419d-b333-1377ce96cda4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220305%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220305T182511Z&X-Amz-Expires=300&X-Amz-Signature=913b9158f4e746877621de63c23e214f08c12668fde15178448b3351851a0e7f&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=306357657&response-content-disposition=attachment%3B%20filename%3Dtoken_extractor.zip&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3583 (3.5K) [application/octet-stream]
Saving to: 'token_extractor.zip'

token_extractor.zip 100%[===================>]   3.50K  --.-KB/s    in 0s      

2022-03-05 19:25:11 (27.7 MB/s) - 'token_extractor.zip' saved [3583/3583]

➜  ~ unzip token_extractor.zip

Archive:  token_extractor.zip
   creating: token_extractor/
  inflating: token_extractor/token_extractor.py  
 extracting: token_extractor/requirements.txt  
➜  ~ ls
addons               media                token_extractor
backup               share                token_extractor.zip
config               ssl
➜  ~ cd token_extractor 
➜  token_extractor ls
requirements.txt    token_extractor.py
➜  token_extractor pip3 install -r requirements.txt
Requirement already satisfied: requests in /usr/lib/python3.9/site-packages (from -r requirements.txt (line 1)) (2.26.0)
Collecting pycryptodome
  Using cached pycryptodome-3.14.1.tar.gz (3.4 MB)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3.9/site-packages (from requests->-r requirements.txt (line 1)) (1.26.7)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.9/site-packages (from requests->-r requirements.txt (line 1)) (2020.12.5)
Requirement already satisfied: charset_normalizer~=2.0.0 in /usr/lib/python3.9/site-packages (from requests->-r requirements.txt (line 1)) (2.0.7)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3.9/site-packages (from requests->-r requirements.txt (line 1)) (3.3)
Using legacy 'setup.py install' for pycryptodome, since package 'wheel' is not installed.
Installing collected packages: pycryptodome
    Running setup.py install for pycryptodome ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-k932ymfz/pycryptodome_bfe6feffa58f4983bc5596378d34efe5/setup.py'"'"'; __file__='"'"'/tmp/pip-install-k932ymfz/pycryptodome_bfe6feffa58f4983bc5596378d34efe5/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-0o9ecvkw/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.9/pycryptodome
         cwd: /tmp/pip-install-k932ymfz/pycryptodome_bfe6feffa58f4983bc5596378d34efe5/
    Complete output (328 lines):
    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
    running build
    running build_py
    creating build/lib.linux-x86_64-3.9
    creating build/lib.linux-x86_64-3.9/Crypto
    copying lib/Crypto/__init__.py -> build/lib.linux-x86_64-3.9/Crypto
    creating build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/AES.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/ChaCha20.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_cbc.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_cfb.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_EKSBlowfish.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_gcm.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_ecb.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/Salsa20.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/Blowfish.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_ocb.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/ARC2.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_ctr.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/CAST.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/DES.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/ARC4.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_openpgp.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/ChaCha20_Poly1305.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/PKCS1_OAEP.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/DES3.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_siv.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_ccm.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_eax.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/PKCS1_v1_5.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_ofb.py -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    creating build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/KangarooTwelve.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/RIPEMD160.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA3_384.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA384.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/MD4.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/keccak.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA224.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/MD5.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/BLAKE2b.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/MD2.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHAKE256.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/TupleHash128.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA256.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA3_512.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/TupleHash256.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/KMAC128.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA3_256.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/KMAC256.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA1.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/CMAC.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/BLAKE2s.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/cSHAKE128.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/cSHAKE256.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA3_224.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA512.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/RIPEMD.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/HMAC.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHAKE128.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/Poly1305.py -> build/lib.linux-x86_64-3.9/Crypto/Hash
    creating build/lib.linux-x86_64-3.9/Crypto/IO
    copying lib/Crypto/IO/PKCS8.py -> build/lib.linux-x86_64-3.9/Crypto/IO
    copying lib/Crypto/IO/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/IO
    copying lib/Crypto/IO/PEM.py -> build/lib.linux-x86_64-3.9/Crypto/IO
    copying lib/Crypto/IO/_PBES.py -> build/lib.linux-x86_64-3.9/Crypto/IO
    creating build/lib.linux-x86_64-3.9/Crypto/PublicKey
    copying lib/Crypto/PublicKey/_openssh.py -> build/lib.linux-x86_64-3.9/Crypto/PublicKey
    copying lib/Crypto/PublicKey/RSA.py -> build/lib.linux-x86_64-3.9/Crypto/PublicKey
    copying lib/Crypto/PublicKey/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/PublicKey
    copying lib/Crypto/PublicKey/DSA.py -> build/lib.linux-x86_64-3.9/Crypto/PublicKey
    copying lib/Crypto/PublicKey/ECC.py -> build/lib.linux-x86_64-3.9/Crypto/PublicKey
    copying lib/Crypto/PublicKey/ElGamal.py -> build/lib.linux-x86_64-3.9/Crypto/PublicKey
    creating build/lib.linux-x86_64-3.9/Crypto/Protocol
    copying lib/Crypto/Protocol/KDF.py -> build/lib.linux-x86_64-3.9/Crypto/Protocol
    copying lib/Crypto/Protocol/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/Protocol
    copying lib/Crypto/Protocol/SecretSharing.py -> build/lib.linux-x86_64-3.9/Crypto/Protocol
    creating build/lib.linux-x86_64-3.9/Crypto/Random
    copying lib/Crypto/Random/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/Random
    copying lib/Crypto/Random/random.py -> build/lib.linux-x86_64-3.9/Crypto/Random
    creating build/lib.linux-x86_64-3.9/Crypto/Signature
    copying lib/Crypto/Signature/DSS.py -> build/lib.linux-x86_64-3.9/Crypto/Signature
    copying lib/Crypto/Signature/pkcs1_15.py -> build/lib.linux-x86_64-3.9/Crypto/Signature
    copying lib/Crypto/Signature/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/Signature
    copying lib/Crypto/Signature/PKCS1_PSS.py -> build/lib.linux-x86_64-3.9/Crypto/Signature
    copying lib/Crypto/Signature/pss.py -> build/lib.linux-x86_64-3.9/Crypto/Signature
    copying lib/Crypto/Signature/PKCS1_v1_5.py -> build/lib.linux-x86_64-3.9/Crypto/Signature
    creating build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/py3compat.py -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/strxor.py -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/_file_system.py -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/RFC1751.py -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/asn1.py -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/Padding.py -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/number.py -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/_cpu_features.py -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/_raw_api.py -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/Counter.py -> build/lib.linux-x86_64-3.9/Crypto/Util
    creating build/lib.linux-x86_64-3.9/Crypto/Math
    copying lib/Crypto/Math/_IntegerBase.py -> build/lib.linux-x86_64-3.9/Crypto/Math
    copying lib/Crypto/Math/Numbers.py -> build/lib.linux-x86_64-3.9/Crypto/Math
    copying lib/Crypto/Math/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/Math
    copying lib/Crypto/Math/_IntegerGMP.py -> build/lib.linux-x86_64-3.9/Crypto/Math
    copying lib/Crypto/Math/_IntegerNative.py -> build/lib.linux-x86_64-3.9/Crypto/Math
    copying lib/Crypto/Math/_IntegerCustom.py -> build/lib.linux-x86_64-3.9/Crypto/Math
    copying lib/Crypto/Math/Primality.py -> build/lib.linux-x86_64-3.9/Crypto/Math
    creating build/lib.linux-x86_64-3.9/Crypto/SelfTest
    copying lib/Crypto/SelfTest/st_common.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest
    copying lib/Crypto/SelfTest/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest
    copying lib/Crypto/SelfTest/__main__.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest
    copying lib/Crypto/SelfTest/loader.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest
    creating build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_CBC.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_EAX.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_Blowfish.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_CAST.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_CCM.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_OpenPGP.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_OCB.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_pkcs1_15.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_Salsa20.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_DES.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_CTR.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_ARC2.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_ChaCha20.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_DES3.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_ChaCha20_Poly1305.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_GCM.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_ARC4.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_OFB.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_SIV.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_AES.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/common.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    copying lib/Crypto/SelfTest/Cipher/test_CFB.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Cipher
    creating build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_MD2.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_BLAKE2.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_TupleHash.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_HMAC.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA3_224.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_Poly1305.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA512.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA3_384.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_KangarooTwelve.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_keccak.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA3_256.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA224.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA256.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHAKE.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_RIPEMD160.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA384.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_KMAC.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_MD5.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_CMAC.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_cSHAKE.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_MD4.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/common.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA3_512.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    copying lib/Crypto/SelfTest/Hash/test_SHA1.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Hash
    creating build/lib.linux-x86_64-3.9/Crypto/SelfTest/IO
    copying lib/Crypto/SelfTest/IO/test_PBES.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/IO
    copying lib/Crypto/SelfTest/IO/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/IO
    copying lib/Crypto/SelfTest/IO/test_PKCS8.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/IO
    creating build/lib.linux-x86_64-3.9/Crypto/SelfTest/Protocol
    copying lib/Crypto/SelfTest/Protocol/test_KDF.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Protocol
    copying lib/Crypto/SelfTest/Protocol/test_rfc1751.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Protocol
    copying lib/Crypto/SelfTest/Protocol/test_SecretSharing.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Protocol
    copying lib/Crypto/SelfTest/Protocol/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Protocol
    creating build/lib.linux-x86_64-3.9/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/test_DSA.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/test_RSA.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/test_ElGamal.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/test_import_RSA.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/test_ECC.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/test_import_DSA.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/PublicKey
    copying lib/Crypto/SelfTest/PublicKey/test_import_ECC.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/PublicKey
    creating build/lib.linux-x86_64-3.9/Crypto/SelfTest/Random
    copying lib/Crypto/SelfTest/Random/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Random
    copying lib/Crypto/SelfTest/Random/test_random.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Random
    creating build/lib.linux-x86_64-3.9/Crypto/SelfTest/Signature
    copying lib/Crypto/SelfTest/Signature/test_pkcs1_15.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Signature
    copying lib/Crypto/SelfTest/Signature/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Signature
    copying lib/Crypto/SelfTest/Signature/test_pss.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Signature
    copying lib/Crypto/SelfTest/Signature/test_dss.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Signature
    creating build/lib.linux-x86_64-3.9/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/test_strxor.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/test_rfc1751.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/test_Counter.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/test_number.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/test_asn1.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Util
    copying lib/Crypto/SelfTest/Util/test_Padding.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Util
    creating build/lib.linux-x86_64-3.9/Crypto/SelfTest/Math
    copying lib/Crypto/SelfTest/Math/test_Primality.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Math
    copying lib/Crypto/SelfTest/Math/test_Numbers.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Math
    copying lib/Crypto/SelfTest/Math/__init__.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Math
    copying lib/Crypto/SelfTest/Math/test_modexp.py -> build/lib.linux-x86_64-3.9/Crypto/SelfTest/Math
    copying lib/Crypto/py.typed -> build/lib.linux-x86_64-3.9/Crypto
    copying lib/Crypto/__init__.pyi -> build/lib.linux-x86_64-3.9/Crypto
    copying lib/Crypto/Cipher/ChaCha20_Poly1305.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_eax.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_ofb.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_cbc.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/DES.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_ocb.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/ChaCha20.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_ecb.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_EKSBlowfish.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/AES.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_ccm.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/ARC4.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_openpgp.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/PKCS1_v1_5.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_siv.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/PKCS1_OAEP.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_gcm.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/DES3.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/ARC2.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/Salsa20.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/Blowfish.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/__init__.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_cfb.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/_mode_ctr.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Cipher/CAST.pyi -> build/lib.linux-x86_64-3.9/Crypto/Cipher
    copying lib/Crypto/Hash/SHA1.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA3_512.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/TupleHash256.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/KangarooTwelve.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/cSHAKE128.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/BLAKE2s.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/KMAC128.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/CMAC.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/MD2.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/MD5.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/TupleHash128.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/BLAKE2b.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/keccak.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/cSHAKE256.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/KMAC256.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHAKE128.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHAKE256.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA3_256.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/RIPEMD.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/HMAC.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA384.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/MD4.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA224.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA3_224.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA3_384.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA256.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/SHA512.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/Poly1305.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/__init__.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/Hash/RIPEMD160.pyi -> build/lib.linux-x86_64-3.9/Crypto/Hash
    copying lib/Crypto/IO/PEM.pyi -> build/lib.linux-x86_64-3.9/Crypto/IO
    copying lib/Crypto/IO/_PBES.pyi -> build/lib.linux-x86_64-3.9/Crypto/IO
    copying lib/Crypto/IO/PKCS8.pyi -> build/lib.linux-x86_64-3.9/Crypto/IO
    copying lib/Crypto/PublicKey/ECC.pyi -> build/lib.linux-x86_64-3.9/Crypto/PublicKey
    copying lib/Crypto/PublicKey/_openssh.pyi -> build/lib.linux-x86_64-3.9/Crypto/PublicKey
    copying lib/Crypto/PublicKey/ElGamal.pyi -> build/lib.linux-x86_64-3.9/Crypto/PublicKey
    copying lib/Crypto/PublicKey/DSA.pyi -> build/lib.linux-x86_64-3.9/Crypto/PublicKey
    copying lib/Crypto/PublicKey/RSA.pyi -> build/lib.linux-x86_64-3.9/Crypto/PublicKey
    copying lib/Crypto/PublicKey/__init__.pyi -> build/lib.linux-x86_64-3.9/Crypto/PublicKey
    copying lib/Crypto/Protocol/SecretSharing.pyi -> build/lib.linux-x86_64-3.9/Crypto/Protocol
    copying lib/Crypto/Protocol/__init__.pyi -> build/lib.linux-x86_64-3.9/Crypto/Protocol
    copying lib/Crypto/Protocol/KDF.pyi -> build/lib.linux-x86_64-3.9/Crypto/Protocol
    copying lib/Crypto/Random/random.pyi -> build/lib.linux-x86_64-3.9/Crypto/Random
    copying lib/Crypto/Random/__init__.pyi -> build/lib.linux-x86_64-3.9/Crypto/Random
    copying lib/Crypto/Signature/pkcs1_15.pyi -> build/lib.linux-x86_64-3.9/Crypto/Signature
    copying lib/Crypto/Signature/PKCS1_PSS.pyi -> build/lib.linux-x86_64-3.9/Crypto/Signature
    copying lib/Crypto/Signature/pss.pyi -> build/lib.linux-x86_64-3.9/Crypto/Signature
    copying lib/Crypto/Signature/DSS.pyi -> build/lib.linux-x86_64-3.9/Crypto/Signature
    copying lib/Crypto/Signature/PKCS1_v1_5.pyi -> build/lib.linux-x86_64-3.9/Crypto/Signature
    copying lib/Crypto/Util/Padding.pyi -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/RFC1751.pyi -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/asn1.pyi -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/_file_system.pyi -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/py3compat.pyi -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/_cpu_features.pyi -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/number.pyi -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/_raw_api.pyi -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/Counter.pyi -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Util/strxor.pyi -> build/lib.linux-x86_64-3.9/Crypto/Util
    copying lib/Crypto/Math/Numbers.pyi -> build/lib.linux-x86_64-3.9/Crypto/Math
    copying lib/Crypto/Math/Primality.pyi -> build/lib.linux-x86_64-3.9/Crypto/Math
    copying lib/Crypto/Math/_IntegerGMP.pyi -> build/lib.linux-x86_64-3.9/Crypto/Math
    copying lib/Crypto/Math/_IntegerNative.pyi -> build/lib.linux-x86_64-3.9/Crypto/Math
    copying lib/Crypto/Math/_IntegerCustom.pyi -> build/lib.linux-x86_64-3.9/Crypto/Math
    copying lib/Crypto/Math/_IntegerBase.pyi -> build/lib.linux-x86_64-3.9/Crypto/Math
    running build_ext
    building 'Crypto.Hash._MD2' extension
    creating build/temp.linux-x86_64-3.9
    creating build/temp.linux-x86_64-3.9/src
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -fomit-frame-pointer -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -DPYCRYPTO_LITTLE_ENDIAN -DSYS_BITS=64 -DLTC_NO_ASM -Isrc/ -I/usr/include/python3.9 -c src/MD2.c -o build/temp.linux-x86_64-3.9/src/MD2.o
    error: command 'gcc' failed: No such file or directory
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-k932ymfz/pycryptodome_bfe6feffa58f4983bc5596378d34efe5/setup.py'"'"'; __file__='"'"'/tmp/pip-install-k932ymfz/pycryptodome_bfe6feffa58f4983bc5596378d34efe5/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-0o9ecvkw/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.9/pycryptodome Check the logs for full command output.
digitalit commented 2 years ago

Oh, no. Just unpacked my Roborock S7 and need the token for HA.

Is this an problem on the Xiaomi side or might it work with the "Windows way"?

Have a nice day :)

PiotrMachowski commented 2 years ago

It seems like installation of pycryptodome is problematic on HA. You can use one of following solutions: