|
安装HomeAssistant出现如下报错,应该怎么处理?搞了好几天,一直这个报错,后面会不停的下载HomeAssistant所有版本文件包,直至撑满存储空间,请高手指点一二
root@HomeAssistant:~# python3 -m venv tutorial-env
Error: Command '['/root/tutorial-env/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
root@HomeAssistant:~# python3 -m pip install homeassistant
Collecting homeassistant
Using cached homeassistant-2021.10.6-py3-none-any.whl (14.2 MB)
Requirement already satisfied: pyyaml==5.4.1 in /opt/lib/python3.9/site-packages (from homeassistant) (5.4.1)
Collecting certifi>=2021.5.30
Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting PyJWT==2.1.0
Using cached PyJWT-2.1.0-py3-none-any.whl (16 kB)
Collecting astral==2.2
Using cached astral-2.2-py2.py3-none-any.whl (30 kB)
Collecting pip<20.3,>=8.0.3
Using cached pip-20.2.4-py2.py3-none-any.whl (1.5 MB)
Collecting httpx==0.19.0
Downloading httpx-0.19.0-py3-none-any.whl (77 kB)
|████████████████████████████████| 77 kB 82 kB/s
Collecting cryptography==3.4.8
Using cached cryptography-3.4.8.tar.gz (546 kB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /opt/bin/python3 /opt/tmp/pip-standalone-pip-yhoe1dvc/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /opt/tmp/pip-build-env-61q1nht0/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.12; platform_python_implementation != '"'"'PyPy'"'"'' 'setuptools-rust>=0.11.4'
cwd: None
Complete output (148 lines):
Collecting setuptools>=40.6.0
Using cached setuptools-58.3.0-py3-none-any.whl (946 kB)
Collecting wheel
Using cached wheel-0.37.0-py2.py3-none-any.whl (35 kB)
Collecting cffi>=1.12
Using cached cffi-1.15.0.tar.gz (484 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting setuptools-rust>=0.11.4
Using cached setuptools_rust-0.12.1-py3-none-any.whl (22 kB)
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Collecting toml>=0.9.0
Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting semantic-version>=2.6.0
Using cached semantic_version-2.8.5-py2.py3-none-any.whl (15 kB)
Building wheels for collected packages: cffi
Building wheel for cffi (setup.py): started
Building wheel for cffi (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /opt/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/opt/tmp/pip-install-ht6jprip/cffi_2f99b5e1e8834df4b09338946848e29f/setup.py'"'"'; __file__='"'"'/opt/tmp/pip-install-ht6jprip/cffi_2f99b5e1e8834df4b09338946848e29f/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /opt/tmp/pip-wheel-y6p5uqg6
cwd: /opt/tmp/pip-install-ht6jprip/cffi_2f99b5e1e8834df4b09338946848e29f/
Complete output (55 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 bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.9
creating build/lib.linux-armv7l-3.9/cffi
copying cffi/model.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/error.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/lock.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/__init__.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/recompiler.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/commontypes.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/cparser.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/verifier.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/api.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.9/cffi
copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.9/cffi
copying cffi/_embedding.h -> build/lib.linux-armv7l-3.9/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.9/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv7l-3.9
creating build/temp.linux-armv7l-3.9/c
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -mtune=cortex-a9 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -O2 -pipe -mtune=cortex-a9 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -DNDEBUG -fno-inline -pthread -O2 -pipe -mtune=cortex-a9 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -DNDEBUG -fno-inline -pthread -I/opt/include -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/opt/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.9/c/_cffi_backend.o
gcc -shared -Wl,--dynamic-linker=/opt/lib/ld-linux.so.3 -Wl,-rpath=/opt/lib -L/opt/lib -L/media/ware3/Entware.2021.09/build_dir/target-arm_cortex-a9_glibc-2.27_eabi/Python-3.9.6 -L/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux.so.3 -Wl,-rpath=/opt/lib -L/opt/lib -L/media/ware3/Entware.2021.09/build_dir/target-arm_cortex-a9_glibc-2.27_eabi/Python-3.9.6 -L/opt/lib build/temp.linux-armv7l-3.9/c/_cffi_backend.o -L/opt/lib -lffi -o build/lib.linux-armv7l-3.9/_cffi_backend.cpython-39.so
/opt/bin/ld: cannot find -lffi
collect2: error: ld returned 1 exit status
error: command '/opt/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cffi
Installing collected packages: toml, setuptools, semantic-version, pycparser, wheel, setuptools-rust, cffi
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: /opt/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/opt/tmp/pip-install-ht6jprip/cffi_2f99b5e1e8834df4b09338946848e29f/setup.py'"'"'; __file__='"'"'/opt/tmp/pip-install-ht6jprip/cffi_2f99b5e1e8834df4b09338946848e29f/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /opt/tmp/pip-record-7pvafgyk/install-record.txt --single-version-externally-managed --prefix /opt/tmp/pip-build-env-61q1nht0/overlay --compile --install-headers /opt/tmp/pip-build-env-61q1nht0/overlay/include/python3.9/cffi
cwd: /opt/tmp/pip-install-ht6jprip/cffi_2f99b5e1e8834df4b09338946848e29f/
Complete output (57 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
/opt/lib/python3.9/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
creating build/lib.linux-armv7l-3.9
creating build/lib.linux-armv7l-3.9/cffi
copying cffi/model.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/error.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/lock.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/__init__.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/recompiler.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/commontypes.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/cparser.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/verifier.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/api.py -> build/lib.linux-armv7l-3.9/cffi
copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.9/cffi
copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.9/cffi
copying cffi/_embedding.h -> build/lib.linux-armv7l-3.9/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.9/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv7l-3.9
creating build/temp.linux-armv7l-3.9/c
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -mtune=cortex-a9 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -O2 -pipe -mtune=cortex-a9 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -DNDEBUG -fno-inline -pthread -O2 -pipe -mtune=cortex-a9 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -DNDEBUG -fno-inline -pthread -I/opt/include -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/opt/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.9/c/_cffi_backend.o
gcc -shared -Wl,--dynamic-linker=/opt/lib/ld-linux.so.3 -Wl,-rpath=/opt/lib -L/opt/lib -L/media/ware3/Entware.2021.09/build_dir/target-arm_cortex-a9_glibc-2.27_eabi/Python-3.9.6 -L/opt/lib -Wl,--dynamic-linker=/opt/lib/ld-linux.so.3 -Wl,-rpath=/opt/lib -L/opt/lib -L/media/ware3/Entware.2021.09/build_dir/target-arm_cortex-a9_glibc-2.27_eabi/Python-3.9.6 -L/opt/lib build/temp.linux-armv7l-3.9/c/_cffi_backend.o -L/opt/lib -lffi -o build/lib.linux-armv7l-3.9/_cffi_backend.cpython-39.so
/opt/bin/ld: cannot find -lffi
collect2: error: ld returned 1 exit status
error: command '/opt/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/opt/tmp/pip-install-ht6jprip/cffi_2f99b5e1e8834df4b09338946848e29f/setup.py'"'"'; __file__='"'"'/opt/tmp/pip-install-ht6jprip/cffi_2f99b5e1e8834df4b09338946848e29f/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /opt/tmp/pip-record-7pvafgyk/install-record.txt --single-version-externally-managed --prefix /opt/tmp/pip-build-env-61q1nht0/overlay --compile --install-headers /opt/tmp/pip-build-env-61q1nht0/overlay/include/python3.9/cffi Check the logs for full command output.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/p ... ea1688e3370b2e24a1c (from https://pypi.org/simple/cryptography/) (requires-python:>=3.6). Command errored out with exit status 1: /opt/bin/python3 /opt/tmp/pip-standalone-pip-yhoe1dvc/__env_pip__.zip/pip install --ignore-installed --no-user --prefix /opt/tmp/pip-build-env-61q1nht0/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.12; platform_python_implementation != '"'"'PyPy'"'"'' 'setuptools-rust>=0.11.4' Check the logs for full command output.
Collecting homeassistant
Using cached homeassistant-2021.10.5-py3-none-any.whl (14.2 MB)
Using cached homeassistant-2021.10.4-py3-none-any.whl (14.2 MB)
这后面会一直不停的下载HomeAssistant所有版本
|
|