Znalazłem jeszcze coś takiego
https://github.com/beveradb/sonoff-lan- … eassistant
Próbowałem uruchomić:
root@LEDE:~/onoff/no# python3 test_sonoff.py
Traceback (most recent call last):
File "test_sonoff.py", line 17, in <module>
import websocket
ModuleNotFoundError: No module named 'websocket'
Doinstalwoałem pip do python3, ale wywala sie przy instalacji
Chyba sie próbuje kompilować:
wyciąg z logu:
))" install --record /tmp/pip-58ydtz41-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'greenlet' extension
creating build
creating build/temp.linux-x86_64-3.6
ccache_cc -Wno-unused-result -Wsign-compare -DNDEBUG -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/build/lede-17.01/slaves/phase2/x86_64/build/sdk/build_dir/target-x86_64_musl-1.1.16/Python-3.6.0:Python-3.6.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/build/lede-17.01/slaves/phase2/x86_64/build/sdk/build_dir/target-x86_64_musl-1.1.16/Python-3.6.0:Python-3.6.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/build/lede-17.01/slaves/phase2/x86_64/build/sdk/build_dir/target-x86_64_musl-1.1.16/Python-3.6.0:Python-3.6.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG -fno-inline -I/build/lede-17.01/slaves/phase2/x86_64/build/sdk/staging_dir/target-x86_64_musl-1.1.16/usr/include -I/build/lede-17.01/slaves/phase2/x86_64/build/sdk/staging_dir/target-x86_64_musl-1.1.16/include -I/build/lede-17.01/slaves/phase2/x86_64/build/sdk/staging_dir/toolchain-x86_64_gcc-5.4.0_musl-1.1.16/usr/include -I/build/lede-17.01/slaves/phase2/x86_64/build/sdk/staging_dir/toolchain-x86_64_gcc-5.4.0_musl-1.1.16/include/fortify -I/build/lede-17.01/slaves/phase2/x86_64/build/sdk/staging_dir/toolchain-x86_64_gcc-5.4.0_musl-1.1.16/include -fPIC -I/usr/include/python3.6 -c greenlet.c -o build/temp.linux-x86_64-3.6/greenlet.o
unable to execute 'ccache_cc': No such file or directory
error: command 'ccache_cc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-s7pvzmqw/greenlet/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-58ydtz41-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-s7pvzmqw/greenlet/