『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1861|回复: 2

[技术探讨] 升级HomeAssistant报错,求大佬帮忙看看是哪里的问题。

[复制链接]

1

主题

37

帖子

171

积分

注册会员

Rank: 2

积分
171
金钱
134
HASS币
0
发表于 2019-8-17 16:46:33 | 显示全部楼层 |阅读模式
如题,升级时报错,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.


回复

使用道具 举报

6

主题

743

帖子

5956

积分

论坛元老

Rank: 8Rank: 8

积分
5956
金钱
5208
HASS币
20
发表于 2019-8-17 16:56:06 | 显示全部楼层
python3-cffi没有安装成功,可以用下面命令试试看有没有错误
sudo pip3 install --upgrade cffi==1.12.3
回复

使用道具 举报

1

主题

37

帖子

171

积分

注册会员

Rank: 2

积分
171
金钱
134
HASS币
0
 楼主| 发表于 2019-8-17 17:12:37 | 显示全部楼层
mitu 发表于 2019-8-17 16:56
python3-cffi没有安装成功,可以用下面命令试试看有没有错误
sudo pip3 install --upgrade cffi==1.12.3 ...
pip3 install --upgrade cffi==1.12.3
Collecting cffi==1.12.3
  Using cached https://files.pythonhosted.org/packages/93/1a/ab8c62b5838722f29f3daffcc8d4bd61844aa9b5f437341cc890ceee483b/cffi-1.12.3.tar.gz
Requirement already satisfied, skipping upgrade: pycparser in /opt/lib/python3.7/site-packages (from cffi==1.12.3) (2.19)
Installing collected packages: cffi
  Running setup.py install for cffi ... 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-pih05_1u/cffi/setup.py'"'"'; __file__='"'"'/opt/tmp/pip-install-pih05_1u/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-h11tfjrv/install-record.txt --single-version-externally-managed --compile
         cwd: /opt/tmp/pip-install-pih05_1u/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-pih05_1u/cffi/setup.py'"'"'; __file__='"'"'/opt/tmp/pip-install-pih05_1u/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-h11tfjrv/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.


安装提示这个错误,libffi_3.2.1-3_armv7-2.6.ipk 依赖已经安装,自己尝试重新编译了libffi-3.2.1,可依然报错。

QQ截图20190817171058.jpg QQ截图20190817171222.jpg
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 07:01 , Processed in 0.202934 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表