Closed PoisonedCarrot closed 2 years ago
try
pip3 install wheel
pip3 install msmart
"pip3 install the wheel", went fine.
"pip3 install msmart", gave me these problems (I only write a part of it):
pip3 install msmart Collecting msmart Using cached msmart-0.2.0-py3-none-any.whl (23 kB) Collecting ifaddr Using cached ifaddr-0.1.7-py2.py3-none-any.whl (10 kB) Collecting click Using cached click-8.0.3-py3-none-any.whl (97 kB) Collecting pycryptodomex Using cached pycryptodomex-3.12.0.zip (3.7 MB) Requirement already satisfied: requests in /usr/lib/python3.9/site-packages (from msmart) (2.26.0) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3.9/site-packages (from requests->msmart) (1.26.7) Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.9/site-packages (from requests->msmart) (2020.12.5) Requirement already satisfied: charset_normalizer~=2.0.0 in /usr/lib/python3.9/site-packages (from requests->msmart) (2.0.7) Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3.9/site-packages (from requests->msmart) (3.3) Building wheels for collected packages: pycryptodomex Building wheel for pycryptodomex (setup.py) ... 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-h05d1mwz/pycryptodomex_b31210cde0aa481fae74ac86cb8370a0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-h05d1mwz/pycryptodomex_b31210cde0aa481fae74ac86cb8370a0/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-72oah5vh cwd: /tmp/pip-install-h05d1mwz/pycryptodomex_b31210cde0aa481fae74ac86cb8370a0/
lib pycryptodomex
is too old, i fix it.
ok, try pip3 install git+https://github.com/mac-zhou/midea-msmart
This is the result:
~ pip3 install git+https://github.com/mac-zhou/midea-msmart Collecting git+https://github.com/mac-zhou/midea-msmart Cloning https://github.com/mac-zhou/midea-msmart to /tmp/pip-req-build-6pzzy8b 4 Running command git clone -q https://github.com/mac-zhou/midea-msmart /tmp/pip -req-build-6pzzy8b4 Collecting click Downloading click-8.0.3-py3-none-any.whl (97 kB) |████████████████████████████████| 97 kB 633 kB/s Collecting pycryptodome Downloading pycryptodome-3.12.0.zip (3.7 MB) |████████████████████████████████| 3.7 MB 4.5 MB/s Requirement already satisfied: requests in /usr/lib/python3.9/site-packages (fro m msmart==0.2.0) (2.26.0) Collecting ifaddr Downloading ifaddr-0.1.7-py2.py3-none-any.whl (10 kB) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3.9/site- packages (from requests->msmart==0.2.0) (1.26.7) Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.9/site-pac kages (from requests->msmart==0.2.0) (2020.12.5) Requirement already satisfied: charset_normalizer~=2.0.0 in /usr/lib/python3.9/s ite-packages (from requests->msmart==0.2.0) (2.0.7) Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3.9/site-packages (from requests->msmart==0.2.0) (3.3) Using legacy 'setup.py install' for msmart, since package 'wheel' is not install ed. Using legacy 'setup.py install' for pycryptodome, since package 'wheel' is not i nstalled. Installing collected packages: pycryptodome, ifaddr, click, msmart 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-8j2qhe_6/pycryptodome_aad16ace11d54696bc55ebd5bf3cb0 9f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-8j2qhe_6/pycryptodome_aad16ace1 1d54696bc55ebd5bf3cb09f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)( __file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(com pile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-w2nbq5es /install-record.txt --single-version-externally-managed --compile --install-head ers /usr/include/python3.9/pycryptodome cwd: /tmp/pip-install-8j2qhe_6/pycryptodome_aad16ace11d54696bc55ebd5bf3 cb09f/
lib
pycryptodomex
is too old, i fix it. ok, trypip3 install git+https://github.com/mac-zhou/midea-msmart
Nothing new? I'm pretty sad... :(
In homeassistant, I encounter problems installing msmart. Can someone help me?
pip3 install msmart Collecting msmart Using cached msmart-0.2.0-py3-none-any.whl (23 kB) Collecting click Using cached click-8.0.3-py3-none-any.whl (97 kB) Collecting pycryptodomex Using cached pycryptodomex-3.12.0.zip (3.7 MB) Collecting ifaddr Using cached ifaddr-0.1.7-py2.py3-none-any.whl (10 kB) Requirement already satisfied: requests in /usr/lib/python3.9/site-packages (from msmart) (2.26.0) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3.9/site-packages (from requests->msmart) (1.26.7) Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3.9/site-packages (from requests->msmart) (2020.12.5) Requirement already satisfied: charset_normalizer~=2.0.0 in /usr/lib/python3.9/site-packages (from requests->msmart) (2.0.7) Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3.9/site-packages (from requests->msmart) (3.3) Using legacy 'setup.py install' for pycryptodomex, since package 'wheel' is not installed. Installing collected packages: pycryptodomex, ifaddr, click, msmart Running setup.py install for pycryptodomex ... 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-ma7568da/pycryptodomex_7d31052031ee4ec1afa5feab60b6e720/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ma7568da/pycryptodomex_7d31052031ee4ec1afa5feab60b6e720/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-z7yl8zvy/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.9/pycryptodomex cwd: /tmp/pip-install-ma7568da/pycryptodomex_7d31052031ee4ec1afa5feab60b6e720/
pip3 install --upgrade setuptools
pip3 install pycryptodome
pip3 install msmart
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mytfpnq4/pycryptodome_c3f301a2b93045a2bc5bb80eb6d064c2/setup.py'"'"'; file='"'"'/tmp/pip-install-mytfpnq4/pycryptodome_c3f301a2b93045a2bc5bb80eb6d064c2/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-s682z54e/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.9/pycryptodome Check the logs for full command output. `
Still nothing when "pip3 install pycryptodome"
same issue here
apt install build-essential
or apk add build-base
In homeassistant, I encounter problems installing msmart. Can someone help me?