|
本帖最后由 huang7dede 于 2020-2-15 13:41 编辑
(已解决,组件没安装,先apt-get安装一堆依赖组件再安装HA,HA不会自己安装)安装的0.92.2,因为高版本的斐讯S7插件不工作,只能虚拟环境安装低版本。Ubuntu Bionic with Armbian Linux 5.1.0-aml-s905+python3.68,出错一堆啊,,,大神救命啊。
下面是完整安装输出信息:
(homeassistant_venv) root@aml:/srv/homeassistant# pip3 install homeassistant==0.92.2
Collecting homeassistant==0.92.2
Downloading homeassistant-0.92.2-py3-none-any.whl (4.6 MB)
|################################| 4.6 MB 248 kB/s
Collecting ruamel.yaml==0.15.91
Downloading ruamel.yaml-0.15.91.tar.gz (309 kB)
|################################| 309 kB 293 kB/s
Requirement already satisfied: certifi>=2018.04.16 in ./homeassistant_venv/lib/python3.6/site-packages (from homeassistant==0.92.2) (2019.11.28)
Collecting cryptography==2.6.1
Downloading cryptography-2.6.1.tar.gz (491 kB)
|################################| 491 kB 2.3 MB/s
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /srv/homeassistant/homeassistant_venv/bin/python3 /srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-apsiwe30/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=18.5' wheel 'cffi>=1.8,!=1.11.3; python_implementation != '"'"'PyPy'"'"''
cwd: None
Complete output (75 lines):
Collecting setuptools>=18.5
Downloading setuptools-45.2.0-py3-none-any.whl (584 kB)
Collecting wheel
Downloading wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Collecting cffi!=1.11.3,>=1.8
Downloading cffi-1.14.0.tar.gz (463 kB)
Collecting pycparser
Downloading pycparser-2.19.tar.gz (158 kB)
Installing collected packages: setuptools, wheel, pycparser, cffi
Running setup.py install for pycparser: started
Running setup.py install for pycparser: finished with status 'done'
Running setup.py install for cffi: started
Running setup.py install for cffi: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /srv/homeassistant/homeassistant_venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rc35rff8/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rc35rff8/cffi/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-0f6znqel/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-apsiwe30/overlay --compile --install-headers /srv/homeassistant/homeassistant_venv/include/site/python3.6/cffi
cwd: /tmp/pip-install-rc35rff8/cffi/
Complete output (56 lines):
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.6
creating build/lib.linux-aarch64-3.6/cffi
copying cffi/recompiler.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/verifier.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/__init__.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/lock.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/api.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/vengine_gen.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/pkgconfig.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/ffiplatform.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/cparser.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/error.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/commontypes.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/model.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-aarch64-3.6/cffi
copying cffi/_cffi_include.h -> build/lib.linux-aarch64-3.6/cffi
copying cffi/parse_c_type.h -> build/lib.linux-aarch64-3.6/cffi
copying cffi/_embedding.h -> build/lib.linux-aarch64-3.6/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-aarch64-3.6/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-aarch64-3.6
creating build/temp.linux-aarch64-3.6/c
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/srv/homeassistant/homeassistant_venv/include -I/usr/include/python3.6m -c c/_cffi_backend.c -o build/temp.linux-aarch64-3.6/c/_cffi_backend.o
c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^~~~~~~
compilation terminated.
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /srv/homeassistant/homeassistant_venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rc35rff8/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rc35rff8/cffi/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-0f6znqel/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-apsiwe30/overlay --compile --install-headers /srv/homeassistant/homeassistant_venv/include/site/python3.6/cffi Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: /srv/homeassistant/homeassistant_venv/bin/python3 /srv/homeassistant/homeassistant_venv/lib/python3.6/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-apsiwe30/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=18.5' wheel 'cffi>=1.8,!=1.11.3; python_implementation != '"'"'PyPy'"'"'' Check the logs for full
|
|