如题,升级时报错,setuptools cffi的版本要求都是满足了的,可不知道为什么还是报错。求大佬帮忙瞅瞅看看是哪里的问题造成的。错误代码如下:
pip3 install --upgrade homeassistant -i http://pypi.douban.com/simple/ --trusted-
host pypi.douban.com
Looking in indexes: http://pypi.douban.com/simple/
Collecting homeassistant
Downloading http://pypi.doubanio.com/packages/cb/44/b1d2a177bbd036ee561033c66409097626643e09ed21b0c3fc09d7305c68/homeassistant-0.97.2-py3-none-any.whl (5.1MB)
|████████████████████████████████| 5.1MB 1.4MB/s
Requirement already satisfied, skipping upgrade: pytz>=2019.01 in /opt/lib/python3.7/site-packages (from homeassistant) (2019.2)
Requirement already satisfied, skipping upgrade: voluptuous==0.11.5 in /opt/lib/python3.7/site-packages (from homeassistant) (0.11.5)
Collecting python-slugify==3.0.2 (from homeassistant)
Downloading http://pypi.doubanio.com/packages/c1/19/c3cf1dc65e89aa999f85a4a3a4924ccac765a6964b405d487b7b7c8bb39f/python-slugify-3.0.2.tar.gz
Collecting bcrypt==3.1.7 (from homeassistant)
Downloading http://pypi.doubanio.com/packages/fa/aa/025a3ab62469b5167bc397837c9ffc486c42a97ef12ceaa6699d8f5a5416/bcrypt-3.1.7.tar.gz (42kB)
|████████████████████████████████| 51kB 282kB/s
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /opt/bin/python3 /opt/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /opt/tmp/pip-build-env-xjecliuu/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com -- 'setuptools>=40.8.0' wheel 'cffi>=1.1; python_implementation != '"'"'PyPy'"'"''
cwd: None
Complete output (57 lines):
Looking in indexes: http://pypi.douban.com/simple/
Collecting setuptools>=40.8.0
Downloading http://pypi.doubanio.com/packages/75/b3/0a106dfaf7f48aef638da80b32608617cc8de4b24a22c8cd3759c32e5d30/setuptools-41.1.0-py2.py3-none-any.whl (576kB)
Collecting wheel
Downloading http://pypi.doubanio.com/packages/bb/10/44230dd6bf3563b8f227dbf344c908d412ad2ff48066476672f3a72e174e/wheel-0.33.4-py2.py3-none-any.whl
Collecting cffi>=1.1
Downloading http://pypi.doubanio.com/packages/93/1a/ab8c62b5838722f29f3daffcc8d4bd61844aa9b5f437341cc890ceee483b/cffi-1.12.3.tar.gz (456kB)
Collecting pycparser (from cffi>=1.1)
Downloading http://pypi.doubanio.com/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)
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: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/opt/tmp/pip-install-t3ns3sjc/cffi/setup.py'"'"'; __file__='"'"'/opt/tmp/pip-install-t3ns3sjc/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 /opt/tmp/pip-record-71lw064_/install-record.txt --single-version-externally-managed --prefix /opt/tmp/pip-build-env-xjecliuu/overlay --compile
cwd: /opt/tmp/pip-install-t3ns3sjc/cffi/
Complete output (37 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-mips-3.7
creating build/lib.linux-mips-3.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-mips-3.7/cffi
copying cffi/api.py -> build/lib.linux-mips-3.7/cffi
copying cffi/recompiler.py -> build/lib.linux-mips-3.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-mips-3.7/cffi
copying cffi/model.py -> build/lib.linux-mips-3.7/cffi
copying cffi/error.py -> build/lib.linux-mips-3.7/cffi
copying cffi/__init__.py -> build/lib.linux-mips-3.7/cffi
copying cffi/lock.py -> build/lib.linux-mips-3.7/cffi
copying cffi/verifier.py -> build/lib.linux-mips-3.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-mips-3.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-mips-3.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-mips-3.7/cffi
copying cffi/cparser.py -> build/lib.linux-mips-3.7/cffi
copying cffi/pkgconfig.py -> build/lib.linux-mips-3.7/cffi
copying cffi/commontypes.py -> build/lib.linux-mips-3.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-mips-3.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-mips-3.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-mips-3.7/cffi
copying cffi/_embedding.h -> build/lib.linux-mips-3.7/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-mips-3.7/cffi
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-mips-3.7
creating build/temp.linux-mips-3.7/c
mipsel-openwrt-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -DNDEBUG -fno-inline -O2 -pipe -mno-branch-likely -mips32r2 -mtune=mips32r2 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -DNDEBUG -fno-inline -I/home/ryzhovau/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/include -I/home/ryzhovau/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-7.4.0_glibc-2.27/include -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/opt/include/python3.7 -c c/_cffi_backend.c -o build/temp.linux-mips-3.7/c/_cffi_backend.o
mipsel-openwrt-linux-gnu-gcc -shared -L/home/ryzhovau/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/home/ryzhovau/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib -Wl,--dynamic-linker=/opt/lib/ld.so.1 -L/home/ryzhovau/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-7.4.0_glibc-2.27/lib -L/home/ryzhovau/Entware/build_dir/target-mipsel_mips32r2_glibc-2.27/Python-3.7.2 -L/home/ryzhovau/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib -Wl,-rpath,/opt/lib -Wl,-rpath-link=/home/ryzhovau/Entware/staging_dir/target-mipsel_mips32r2_glibc-2.27/opt/lib -Wl,--dynamic-linker=/opt/lib/ld.so.1 -L/home/ryzhovau/Entware/staging_dir/toolchain-mipsel_mips32r2_gcc-7.4.0_glibc-2.27/lib -L/home/ryzhovau/Entware/build_dir/target-mipsel_mips32r2_glibc-2.27/Python-3.7.2 build/temp.linux-mips-3.7/c/_cffi_backend.o -L/opt/lib -lffi -lpython3.7 -o build/lib.linux-mips-3.7/_cffi_backend.cpython-37.so
/opt/bin/ld: cannot find -lffi
collect2: error: ld returned 1 exit status
error: command 'mipsel-openwrt-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/opt/tmp/pip-install-t3ns3sjc/cffi/setup.py'"'"'; __file__='"'"'/opt/tmp/pip-install-t3ns3sjc/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 /opt/tmp/pip-record-71lw064_/install-record.txt --single-version-externally-managed --prefix /opt/tmp/pip-build-env-xjecliuu/overlay --compile Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/bin/python3 /opt/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /opt/tmp/pip-build-env-xjecliuu/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com -- 'setuptools>=40.8.0' wheel 'cffi>=1.1; python_implementation != '"'"'PyPy'"'"'' Check the logs for full command output.
|