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

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

[技术探讨] 树霉派升级出错,求大神指教。

[复制链接]

2

主题

78

帖子

3006

积分

论坛元老

Rank: 8Rank: 8

积分
3006
金钱
2928
HASS币
0
发表于 2019-5-2 21:01:32 | 显示全部楼层 |阅读模式
本帖最后由 cngdlhj 于 2019-5-2 21:05 编辑

现运行的是0.91版,raspbian系统上安装的,开始安装的是0.8x版,一直升到0.91版都没问题,现在升级却报错。

(homeassistant) homeassistant@raspberrypi:/srv/homeassistant $ pip3 install --upgrade homeassistant
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting homeassistant
  Using cached https://files.pythonhosted.org/p ... .2-py3-none-any.whl
Requirement already satisfied, skipping upgrade: bcrypt==3.1.6 in ./lib/python3.5/site-packages (from homeassistant) (3.1.6)
Requirement already satisfied, skipping upgrade: pip>=8.0.3 in ./lib/python3.5/site-packages (from homeassistant) (19.1)
Requirement already satisfied, skipping upgrade: certifi>=2018.04.16 in ./lib/python3.5/site-packages (from homeassistant) (2019.3.9)
Requirement already satisfied, skipping upgrade: requests==2.21.0 in ./lib/python3.5/site-packages (from homeassistant) (2.21.0)
Collecting cryptography==2.6.1 (from homeassistant)
  Using cached https://files.pythonhosted.org/p ... graphy-2.6.1.tar.gz
  Installing build dependencies ... error
  ERROR: Complete output from command /srv/homeassistant/bin/python3 /srv/homeassistant/lib/python3.5/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-4sas3o8i/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- 'setuptools>=18.5' wheel 'cffi>=1.8,!=1.11.3; python_implementation != '"'"'PyPy'"'"'':
  ERROR: Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple, https://www.piwheels.org/simple
  Collecting setuptools>=18.5
    Using cached https://files.pythonhosted.org/p ... y2.py3-none-any.whl
  Collecting wheel
    WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))': /simple/wheel/
    Using cached https://files.pythonhosted.org/p ... y2.py3-none-any.whl
  Collecting cffi!=1.11.3,>=1.8
    Using cached https://files.pythonhosted.org/p ... /cffi-1.12.3.tar.gz
  Collecting pycparser (from cffi!=1.11.3,>=1.8)
    Using cached https://www.piwheels.org/simple/ ... y2.py3-none-any.whl
  Building wheels for collected packages: cffi
    Building wheel for cffi (setup.py): started
    Building wheel for cffi (setup.py): finished with status 'error'
    ERROR: Complete output from command /srv/homeassistant/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-obc4qt7g/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-drcyhsf0 --python-tag cp35:
    ERROR: 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.5
    creating build/lib.linux-armv7l-3.5/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/verifier.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/error.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/cparser.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/model.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/recompiler.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/__init__.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/lock.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/commontypes.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/api.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/_embedding.h -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.5/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-armv7l-3.5
    creating build/temp.linux-armv7l-3.5/c
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -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/include -I/usr/include/python3.5m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.5/c/_cffi_backend.o
    c/_cffi_backend.c:15:17: fatal error: ffi.h: 没有那个文件或目录
     #include <ffi.h>
                     ^
    compilation terminated.
    error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
    ----------------------------------------
    ERROR: Failed building wheel for cffi
    Running setup.py clean for cffi
  Failed to build cffi
  Installing collected packages: setuptools, wheel, pycparser, cffi
    Running setup.py install for cffi: started
      Running setup.py install for cffi: finished with status 'error'
      ERROR: Complete output from command /srv/homeassistant/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-obc4qt7g/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-kxp8vf90/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-4sas3o8i/overlay --compile --install-headers /srv/homeassistant/include/site/python3.5/cffi:
      ERROR: 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-armv7l-3.5
      creating build/lib.linux-armv7l-3.5/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/verifier.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/error.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/cparser.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/model.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/recompiler.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/__init__.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/lock.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/commontypes.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/api.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/_embedding.h -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.5/cffi
      running build_ext
      building '_cffi_backend' extension
      creating build/temp.linux-armv7l-3.5
      creating build/temp.linux-armv7l-3.5/c
      arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. -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/include -I/usr/include/python3.5m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.5/c/_cffi_backend.o
      c/_cffi_backend.c:15:17: fatal error: ffi.h: 没有那个文件或目录
       #include <ffi.h>
                       ^
      compilation terminated.
      error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
      ----------------------------------------
  ERROR: Command "/srv/homeassistant/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-obc4qt7g/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-kxp8vf90/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-4sas3o8i/overlay --compile --install-headers /srv/homeassistant/include/site/python3.5/cffi" failed with error code 1 in /tmp/pip-install-obc4qt7g/cffi/
  ----------------------------------------
ERROR: Command "/srv/homeassistant/bin/python3 /srv/homeassistant/lib/python3.5/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-4sas3o8i/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- 'setuptools>=18.5' wheel 'cffi>=1.8,!=1.11.3; python_implementation != '"'"'PyPy'"'"''" failed with error code 1 in None


回复

使用道具 举报

23

主题

660

帖子

3108

积分

论坛元老

Rank: 8Rank: 8

积分
3108
金钱
2448
HASS币
10
发表于 2019-5-2 23:09:33 | 显示全部楼层
我的好像是8.2,之前升级上来的,现在升级也报错。
回复

使用道具 举报

2

主题

78

帖子

3006

积分

论坛元老

Rank: 8Rank: 8

积分
3006
金钱
2928
HASS币
0
 楼主| 发表于 2019-5-13 22:34:55 | 显示全部楼层
顶顶,再求助~
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-16 10:08 , Processed in 0.074052 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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