Update error

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

1 Like

try adding libiffi-dev

unfortunally no. Any other idea?

[email protected]:~ $ sudo apt-get install libffi-dev
Lettura elenco dei pacchetti… Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato… Fatto
Il seguente pacchetto è stato installato automaticamente e non è più richiesto:
realpath
Usare “sudo apt autoremove” per rimuoverlo.
I seguenti pacchetti NUOVI saranno installati:
libffi-dev
0 aggiornati, 1 installati, 0 da rimuovere e 5 non aggiornati.
È necessario scaricare 159 kB di archivi.
Dopo quest’operazione, verranno occupati 332 kB di spazio su disco.
Scaricamento di:1 http://raspbian.mirror.garr.it/mirrors/raspbian/raspbian stretch/main armhf libffi-dev armhf 3.2.1-6 [159 kB]
Recuperati 159 kB in 3s (46,2 kB/s)
Selezionato il pacchetto libffi-dev:armhf non precedentemente selezionato.
(Lettura del database… 120035 file e directory attualmente installati.)
Preparativi per estrarre …/libffi-dev_3.2.1-6_armhf.deb…
Estrazione di libffi-dev:armhf (3.2.1-6)…
Elaborazione dei trigger per install-info (6.3.0.dfsg.1-1+b1)…
Configurazione di libffi-dev:armhf (3.2.1-6)…
Elaborazione dei trigger per man-db (2.7.6.1-2)…
[email protected]:~ $ sudo apt-get update
Scaricamento di:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15,0 kB]
Trovato:2 http://archive.raspberrypi.org/debian stretch InRelease
Trovato:3 http://linux.teamviewer.com/deb stable InRelease
Ign:4 https://dl.bintray.com/openhab/apt-repo2 stable InRelease
Scaricamento di:5 https://dl.bintray.com/openhab/apt-repo2 stable Release [6.051 B]
Trovato:5 https://dl.bintray.com/openhab/apt-repo2 stable Release
Recuperati 15,0 kB in 3s (4.932 B/s)
Lettura elenco dei pacchetti… Fatto
[email protected]:~ $ sudo apt-get -y upgrade
Lettura elenco dei pacchetti… Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato… Fatto
Calcolo dell’aggiornamento… Fatto
Il seguente pacchetto è stato installato automaticamente e non è più richiesto:
realpath
Usare “sudo apt autoremove” per rimuoverlo.
I seguenti pacchetti sono stati mantenuti alla versione attuale:
piwiz python-gpiozero python3-gpiozero python3-thonny sense-emu-tools
0 aggiornati, 0 installati, 0 da rimuovere e 5 non aggiornati.
[email protected]:~ $ sudo -u homeassistant -H -s
[email protected]:/home/pi $ source /srv/homeassistant/bin/activate
(homeassistant) [email protected]:/home/pi $ pip3 install --upgrade homeassistant
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting homeassistant
Downloading https://files.pythonhosted.org/packages/31/0c/b090b882d8ef089c1483a5331ef3cddb9bf15b284cfed6fd048db85f0997/homeassistant-0.92.1-py3-none-any.whl (4.6MB)
|████████████████████████████████| 4.6MB 1.0MB/s
Requirement already satisfied, skipping upgrade: attrs==18.2.0 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (18.2.0)
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: certifi>=2018.04.16 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (2019.3.9)
Requirement already satisfied, skipping upgrade: aiohttp==3.5.4 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (3.5.4)
Collecting ruamel.yaml==0.15.91 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/ad/0d/c9f94a393b9b8825accca0bc17afb6cbb7719e8601d26d06cbf7b21abfa3/ruamel.yaml-0.15.91.tar.gz (309kB)
|████████████████████████████████| 317kB 2.1MB/s
Requirement already satisfied, skipping upgrade: pyyaml<4,>=3.13 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (3.13)
Requirement already satisfied, skipping upgrade: voluptuous==0.11.5 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (0.11.5)
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
Collecting pytz>=2019.01 (from homeassistant)
Using cached https://files.pythonhosted.org/packages/3d/73/fe30c2daaaa0713420d0382b16fbb761409f532c56bdcc514bf7b6262bb6/pytz-2019.1-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: async-timeout==3.0.1 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (3.0.1)
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 … done
Getting requirements to build wheel … done
Preparing wheel metadata … done
Requirement already satisfied, skipping upgrade: voluptuous-serialize==2.1.0 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (2.1.0)
Requirement already satisfied, skipping upgrade: pip>=8.0.3 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (19.1)
Requirement already satisfied, skipping upgrade: jinja2>=2.10 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (2.10)
Requirement already satisfied, skipping upgrade: astral==1.10.1 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (1.10.1)
Requirement already satisfied, skipping upgrade: requests==2.21.0 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (2.21.0)
Collecting python-slugify==3.0.2 (from homeassistant)
Using cached https://files.pythonhosted.org/packages/c1/19/c3cf1dc65e89aa999f85a4a3a4924ccac765a6964b405d487b7b7c8bb39f/python-slugify-3.0.2.tar.gz
Requirement already satisfied, skipping upgrade: cffi>=1.1 in /srv/homeassistant/lib/python3.5/site-packages (from bcrypt==3.1.6->homeassistant) (1.11.5)
Requirement already satisfied, skipping upgrade: six>=1.4.1 in /srv/homeassistant/lib/python3.5/site-packages (from bcrypt==3.1.6->homeassistant) (1.12.0)
Requirement already satisfied, skipping upgrade: chardet<4.0,>=2.0 in /srv/homeassistant/lib/python3.5/site-packages (from aiohttp==3.5.4->homeassistant) (3.0.4)
Requirement already satisfied, skipping upgrade: idna-ssl>=1.0; python_version < “3.7” in /srv/homeassistant/lib/python3.5/site-packages (from aiohttp==3.5.4->homeassistant) (1.1.0)
Requirement already satisfied, skipping upgrade: yarl<2.0,>=1.0 in /srv/homeassistant/lib/python3.5/site-packages (from aiohttp==3.5.4->homeassistant) (1.3.0)
Requirement already satisfied, skipping upgrade: multidict<5.0,>=4.0 in /srv/homeassistant/lib/python3.5/site-packages (from aiohttp==3.5.4->homeassistant) (4.5.2)
Requirement already satisfied, skipping upgrade: typing-extensions>=3.6.5; python_version < “3.7” in /srv/homeassistant/lib/python3.5/site-packages (from aiohttp==3.5.4->homeassistant) (3.7.2)
Requirement already satisfied, skipping upgrade: asn1crypto>=0.21.0 in /srv/homeassistant/lib/python3.5/site-packages (from cryptography==2.6.1->homeassistant) (0.24.0)
Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in /srv/homeassistant/lib/python3.5/site-packages (from jinja2>=2.10->homeassistant) (1.1.0)
Requirement already satisfied, skipping upgrade: idna<2.9,>=2.5 in /srv/homeassistant/lib/python3.5/site-packages (from requests==2.21.0->homeassistant) (2.8)
Requirement already satisfied, skipping upgrade: urllib3<1.25,>=1.21.1 in /srv/homeassistant/lib/python3.5/site-packages (from requests==2.21.0->homeassistant) (1.24.1)
Collecting text-unidecode==1.2 (from python-slugify==3.0.2->homeassistant)
Downloading https://files.pythonhosted.org/packages/79/42/d717cc2b4520fb09e45b344b1b0b4e81aa672001dd128c180fabc655c341/text_unidecode-1.2-py2.py3-none-any.whl (77kB)
|████████████████████████████████| 81kB 2.0MB/s
Requirement already satisfied, skipping upgrade: pycparser in /srv/homeassistant/lib/python3.5/site-packages (from cffi>=1.1->bcrypt==3.1.6->homeassistant) (2.19)
Building wheels for collected packages: cryptography
Building wheel for cryptography (PEP 517) … error
ERROR: Complete output from command /srv/homeassistant/bin/python3 /srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpokov2tu8:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.5
creating build/lib.linux-armv7l-3.5/cryptography
copying src/cryptography/utils.py -> build/lib.linux-armv7l-3.5/cryptography
copying src/cryptography/exceptions.py -> build/lib.linux-armv7l-3.5/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-armv7l-3.5/cryptography
copying src/cryptography/init.py -> build/lib.linux-armv7l-3.5/cryptography
copying src/cryptography/about.py -> build/lib.linux-armv7l-3.5/cryptography
creating build/lib.linux-armv7l-3.5/cryptography/x509
copying src/cryptography/x509/init.py -> build/lib.linux-armv7l-3.5/cryptography/x509
copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-armv7l-3.5/cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.linux-armv7l-3.5/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.linux-armv7l-3.5/cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-armv7l-3.5/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-armv7l-3.5/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-armv7l-3.5/cryptography/x509
copying src/cryptography/x509/ocsp.py -> build/lib.linux-armv7l-3.5/cryptography/x509
creating build/lib.linux-armv7l-3.5/cryptography/hazmat
copying src/cryptography/hazmat/init.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat
copying src/cryptography/hazmat/_oid.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat
creating build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/mac.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/init.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives
creating build/lib.linux-armv7l-3.5/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/init.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/bindings
creating build/lib.linux-armv7l-3.5/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/init.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends
creating build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/init.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/twofactor
creating build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/init.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/serialization
creating build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/init.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/asymmetric
creating build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/init.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/init.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/kdf
creating build/lib.linux-armv7l-3.5/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/init.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/bindings/openssl
creating build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/init.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
running egg_info
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing requirements to src/cryptography.egg-info/requires.txt
writing src/cryptography.egg-info/PKG-INFO
writing top-level names to src/cryptography.egg-info/top_level.txt
reading manifest file ‘src/cryptography.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
no previously-included directories found matching ‘docs/_build’
warning: no previously-included files matching ‘*’ found under directory ‘vectors’
writing manifest file ‘src/cryptography.egg-info/SOURCES.txt’
running build_ext
generating cffi module ‘build/temp.linux-armv7l-3.5/_padding.c’
creating build/temp.linux-armv7l-3.5
generating cffi module ‘build/temp.linux-armv7l-3.5/_constant_time.c’
generating cffi module ‘build/temp.linux-armv7l-3.5/_openssl.c’
building ‘_openssl’ extension
creating build/temp.linux-armv7l-3.5/build
creating build/temp.linux-armv7l-3.5/build/temp.linux-armv7l-3.5
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 -I/srv/homeassistant/include -I/usr/include/python3.5m -c build/temp.linux-armv7l-3.5/_openssl.c -o build/temp.linux-armv7l-3.5/build/temp.linux-armv7l-3.5/_openssl.o -Wconversion -Wno-error=sign-conversion
build/temp.linux-armv7l-3.5/_openssl.c:498:30: fatal error: openssl/opensslv.h: File o directory non esistente
#include <openssl/opensslv.h>
^
compilation terminated.
error: command ‘arm-linux-gnueabihf-gcc’ failed with exit status 1

ERROR: Failed building wheel for cryptography
Running setup.py clean for cryptography
Failed to build cryptography
Building wheels for collected packages: ruamel.yaml, python-slugify
Building wheel for ruamel.yaml (setup.py) … done
Stored in directory: /home/homeassistant/.cache/pip/wheels/23/98/a5/472c898bcc5476abb98537f9a5cdaa2cacd064e33d430f98a5
Building wheel for python-slugify (setup.py) … done
Stored in directory: /home/homeassistant/.cache/pip/wheels/16/7f/c3/6b0582283ad589d68a306da924a78c74546e010d8106b9b3a9
Successfully built ruamel.yaml python-slugify
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly

Now install libssl-dev
EDIT: If you are running HASSbian, the script should handle this for you. Run

sudo hassbian-config upgrade hassbian
sudo hassbian-config upgrade homeassistant

From
https://www.home-assistant.io/docs/installation/hassbian/installation/

1 Like

Same issue here…
I’ve let myself get a bit behind in versions.
I was siting at 85.1 and started working to get current.
I first switched to Lovelace from States and got it working, made it my default.
Then I tried jumping all the way to current and it was a disaster.
I rolled back to 85.1, all good.
Decided to upgrade slowly, version by version, fixing issues as I went along.
0.85.1->0.86.0->0.87.0->0.88.2->0.89.2->0.91.4->0.92.1
Fixed a lot along the way, but here’s where I got stuck.

I’ll distill down the error to:
No package ‘libffi’ found
Any ideas how to fix or what I can look at?

Tried to install missing packages as recommended in this thread…
(homeassistant) [email protected]:/home/pi $ pip3 install libiffi-dev
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting libiffi-dev
ERROR: Could not find a version that satisfies the requirement libiffi-dev (from versions: none)
ERROR: No matching distribution found for libiffi-dev
(homeassistant) [email protected]:/home/pi $ pip3 install libssl-dev
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting libssl-dev
ERROR: Could not find a version that satisfies the requirement libssl-dev (from versions: none)
ERROR: No matching distribution found for libssl-dev

Environment:
os_name Linux
python_version 3.5.3
timezone America/New_York
version 0.91.4
virtualenv true
Lovelace
mode yaml
resources 0
views 7

Are you on HASSbian or a manual venv?
If on a manual venv try adding libiffi-dev & libssl-dev

Tried to install missing packages as recommended in this thread…
(homeassistant) [email protected]:/home/pi $ pip3 install libiffi-dev
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting libiffi-dev
ERROR: Could not find a version that satisfies the requirement libiffi-dev (from versions: none)
ERROR: No matching distribution found for libiffi-dev
(homeassistant) [email protected]:/home/pi $ pip3 install libssl-dev
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting libssl-dev
ERROR: Could not find a version that satisfies the requirement libssl-dev (from versions: none)
ERROR: No matching distribution found for libssl-dev

Environment:
os_name Linux
python_version 3.5.3
timezone America/New_York
version 0.91.4
virtualenv true
Lovelace
mode yaml
resources 0
views 7

Sorry. libffi-dev I had an extra i in there.

[email protected]:~# apt search libffi-dev
Sorting… Done
Full Text Search… Done
libffi-dev/stable 3.2.1-6 armhf
Foreign Function Interface library (development files)

[email protected]:~#

Thanks, but it does not seem to like that library at all…

[email protected]:~ $ sudo su -s /bin/bash homeassistant
[email protected]:/home/pi $ source /srv/homeassistant/bin/activate
(homeassistant) [email protected]:/home/pi $ pip3 install libffi-dev
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting libffi-dev
ERROR: Could not find a version that satisfies the requirement libffi-dev (from versions: none)
ERROR: No matching distribution found for libffi-dev

Wrong install command on last try. Changed to apt-get and it seemed to load. Will retry the 92.1 install. Thanks again.

[email protected]:~ $ sudo apt-get install libffi-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
realpath vlc-plugin-notify vlc-plugin-samba vlc-plugin-video-splitter
vlc-plugin-visualization
Use ‘sudo apt autoremove’ to remove them.
The following NEW packages will be installed:
libffi-dev
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
Need to get 159 kB of archives.
After this operation, 332 kB of additional disk space will be used.
Get:1 http://mirror.umd.edu/raspbian/raspbian stretch/main armhf libffi-dev armhf 3.2.1-6 [159 kB]
Fetched 159 kB in 0s (197 kB/s)
Selecting previously unselected package libffi-dev:armhf.
(Reading database … 134375 files and directories currently installed.)
Preparing to unpack …/libffi-dev_3.2.1-6_armhf.deb …
Unpacking libffi-dev:armhf (3.2.1-6) …
Processing triggers for install-info (6.3.0.dfsg.1-1+b1) …
Setting up libffi-dev:armhf (3.2.1-6) …
Processing triggers for man-db (2.7.6.1-2) …

1 Like

Yeah. I just showed the search command to verify I did not typo again. I missed they were trying to install with pip.

Both the FFI and SSL libraries were loaded.
Afterwards I did the upgrade from 0.91.4 to 0.92.1.
Upgrade finished and said that it was successful.
Restarted the HA service. No dice. Neither lovelace nor states will load.
Rebooted the machine. Same non-result.
Service reports as up. But no web interface available on 8123…

[email protected]:~ $ sudo systemctl status [email protected]
[email protected] - Home Assistant
Loaded: loaded (/etc/systemd/system/[email protected]; enabled; vendor preset: enabled)
Active: active (running) since Sat 2019-04-27 20:43:07 BST; 8min ago
Main PID: 323 (hass)
CGroup: /system.slice/system-home\x2dassistant.slice/[email protected]
├─ 323 /srv/homeassistant/bin/python3 /srv/homeassistant/bin/hass -c /home/homeassistant/.homeassistant
├─ 895 /srv/homeassistant/bin/python3 -m pip install --quiet homeassistant-pyozw==0.1.4 --upgrade --constraint /srv/homeassistant/li ├─ 918 /srv/homeassistant/bin/python3 -u -c import setuptools, tokenize;file=’/tmp/pip-install-b381x9s4/homeassistant-pyozw/setu ├─2805 arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6wa └─2806 /usr/lib/gcc/arm-linux-gnueabihf/6/cc1plus -quiet -I src-lib/libopenzwave/ -I openzwave-embed/open-zwave-hass/cpp/src -I open
Apr 27 20:43:30 MrSulu hass[323]: 2019-04-27 20:43:30 INFO (Thread-19) [homeassistant.util.package] Attempting install of pychromecast==3.2.0
Apr 27 20:43:45 MrSulu hass[323]: 2019-04-27 20:43:45 INFO (MainThread) [homeassistant.setup] Setting up cast
Apr 27 20:43:45 MrSulu hass[323]: 2019-04-27 20:43:45 INFO (MainThread) [homeassistant.setup] Setup of domain cast took 0.0 seconds.
Apr 27 20:43:46 MrSulu hass[323]: 2019-04-27 20:43:46 INFO (Thread-16) [homeassistant.util.package] Attempting install of homeassistant-pyozw==Apr 27 20:43:46 MrSulu hass[323]: 2019-04-27 20:43:46 INFO (Thread-18) [homeassistant.loader] Loaded media_player from homeassistant.componentsApr 27 20:43:46 MrSulu hass[323]: 2019-04-27 20:43:46 INFO (MainThread) [homeassistant.setup] Setting up media_player
Apr 27 20:43:46 MrSulu hass[323]: 2019-04-27 20:43:46 INFO (MainThread) [homeassistant.setup] Setup of domain media_player took 0.0 seconds.
Apr 27 20:43:46 MrSulu hass[323]: 2019-04-27 20:43:46 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.cast
Apr 27 20:43:46 MrSulu hass[323]: 2019-04-27 20:43:46 INFO (Thread-5) [pychromecast] Querying device status
Apr 27 20:43:46 MrSulu hass[323]: 2019-04-27 20:43:46 INFO (Thread-13) [pychromecast] Querying device status
l

Solved. Just very, very, uncommonly slow to start up.
It is working for both states and lovelace.
Thanks for the help could not have done it with out the hints.
Did I miss this in the documentation somewhere (about the two libraries)?
Thanks!

I do not think so. The devs are focusing on Hassbian & docker based installs. They consider a manual venv install as a “community” one. T
he Hassbian scripts likely add the extra libraries. The docker containers contain them.

That is one reason I moved to Hassio on Linux. I felt it might have better support but thewy are now reorganizing the addons & breaking people.

Interesting. Should I be looking to change to one of those installs? Will venv end up deprecated?

I doubt it will be deprecated since Hassbian is just a venv with Raspbian Lite & some management scripts.
Hassbian is just for Raspberry Pi though. What hardware are you using?

EDIT this is a Hassbian thread. I you are running HASSbian, why did you not use their upgrade commands?

  1. Hardware: RaspPi (which is now panting heavily after 8 successful upgrades and associated shenanigans today).

  2. Why this thread: I saw the original poster had the exact same problem and didn’t want to start a new thread for the same issue - which I thought may be universal and not Hassbian only. I had a “posting ethics” issue (if that’s a thing!!) - start a new thread for same issue (bad), comment in a thread on the wrong category (bad). So I made my choice.

1 Like

You could run Hassbian and it would be similar to your existing environment.
If I were you & chose to do that, I would back up the /home/homeassistant directory tree, reformat the SD card with SD Formatter, Install Hassbian, and then add your pieces back.

Of course if you have another SD Card, that would work too.
https://www.home-assistant.io/docs/installation/hassbian/installation/

Thanks I’ll give that or docker some consideration.
Appreciate the insight.

Works perfectlly thank you!

I usually use this command to update home assistant:

sudo apt-get update
sudo apt-get -y upgrade
sudo -u homeassistant -H -s
$ source /srv/homeassistant/bin/activate
$ pip3 install --upgrade homeassistant
$ exit