Hi,
I try to update home assistant but the update is not working. Thank you.
I try the following command:
sudo apt-get update
sudo apt-get -y upgrade
sudo -u homeassistant -H -s
$ source /srv/homeassistant/bin/activate
$ pip3 install --upgrade homeassistant
$ exit
and this is the output:
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting homeassistant
Using cached https://files.pythonhosted.org/packages/bb/94/dd2d566a504310e386da1ea9fe29547aab102ec87342411d7c8cf9d619e6/homeassistant-0.92.0-py3-none-any.whl
Collecting PyJWT==1.7.1 (from homeassistant)
Using cached https://files.pythonhosted.org/packages/87/8b/6a9f14b5f781697e51259d81657e6048fd31a113229cf346880bb7545565/PyJWT-1.7.1-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: requests==2.21.0 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (2.21.0)
Requirement already satisfied, skipping upgrade: async-timeout==3.0.1 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (3.0.1)
Requirement already satisfied, skipping upgrade: voluptuous==0.11.5 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (0.11.5)
Requirement already satisfied, skipping upgrade: bcrypt==3.1.6 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (3.1.6)
Requirement already satisfied, skipping upgrade: voluptuous-serialize==2.1.0 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (2.1.0)
Collecting cryptography==2.6.1 (from homeassistant)
Using cached https://files.pythonhosted.org/packages/07/ca/bc827c5e55918ad223d59d299fff92f3563476c3b00d0a9157d9c0217449/cryptography-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-naxx6hii/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/packages/ec/51/f45cea425fd5cb0b0380f5b0f048ebc1da5b417e48d304838c02d6288a1e/setuptools-41.0.1-py2.py3-none-any.whl
Collecting wheel
Using cached https://files.pythonhosted.org/packages/96/ba/a4702cbb6a3a485239fbe9525443446203f00771af9ac000fa3ef2788201/wheel-0.33.1-py2.py3-none-any.whl
Collecting cffi!=1.11.3,>=1.8
Using cached https://files.pythonhosted.org/packages/93/1a/ab8c62b5838722f29f3daffcc8d4bd61844aa9b5f437341cc890ceee483b/cffi-1.12.3.tar.gz
Collecting pycparser (from cffi!=1.11.3,>=1.8)
Using cached https://www.piwheels.org/simple/pycparser/pycparser-2.19-py2.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-7614b42i/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-aalce87n --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/pkgconfig.py -> build/lib.linux-armv7l-3.5/cffi copying cffi/__init__.py -> build/lib.linux-armv7l-3.5/cffi copying cffi/cparser.py -> build/lib.linux-armv7l-3.5/cffi copying cffi/api.py -> build/lib.linux-armv7l-3.5/cffi copying cffi/model.py -> 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/cffi_opcode.py -> build/lib.linux-armv7l-3.5/cffi copying cffi/commontypes.py -> build/lib.linux-armv7l-3.5/cffi copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.5/cffi copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.5/cffi copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.5/cffi copying cffi/lock.py -> build/lib.linux-armv7l-3.5/cffi copying cffi/recompiler.py -> build/lib.linux-armv7l-3.5/cffi copying cffi/error.py -> build/lib.linux-armv7l-3.5/cffi copying cffi/verifier.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: File o directory non esistente #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-7614b42i/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-2hxjlhiy/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-naxx6hii/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/pkgconfig.py -> build/lib.linux-armv7l-3.5/cffi
copying cffi/init.py -> build/lib.linux-armv7l-3.5/cffi
copying cffi/cparser.py -> build/lib.linux-armv7l-3.5/cffi
copying cffi/api.py -> build/lib.linux-armv7l-3.5/cffi
copying cffi/model.py -> 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/cffi_opcode.py -> build/lib.linux-armv7l-3.5/cffi
copying cffi/commontypes.py -> build/lib.linux-armv7l-3.5/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.5/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.5/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.5/cffi
copying cffi/lock.py -> build/lib.linux-armv7l-3.5/cffi
copying cffi/recompiler.py -> build/lib.linux-armv7l-3.5/cffi
copying cffi/error.py -> build/lib.linux-armv7l-3.5/cffi
copying cffi/verifier.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: File o directory non esistente
#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-7614b42i/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-2hxjlhiy/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-naxx6hii/overlay --compile --install-headers /srv/homeassistant/include/site/python3.5/cffi" failed with error code 1 in /tmp/pip-install-7614b42i/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-naxx6hii/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