Core: 0.92 Error installing dependency cryptography: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

Created on 25 Apr 2019  路  4Comments  路  Source: home-assistant/core

Home Assistant release with the issue:
0.92.0

Last working Home Assistant release (if known):
0.90.0

Operating environment (Hass.io/Docker/Windows/etc.):
RPI Python Virtual Env

Description of problem:
Trying to upgrade Home-assistant gives me this error: : command 'arm-linux-gnueabihf-gcc' failed with exit status 1

Log:

(homeassistant) pi@home:~ $ sudo python3 -m pip install --upgrade homeassistant
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 attrs==18.2.0 (from homeassistant)
  Using cached https://files.pythonhosted.org/packages/3a/e1/5f9023cc983f1a628a8c2fd051ad19e76ff7b142a0faf329336f9a62a514/attrs-18.2.0-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: voluptuous-serialize==2.1.0 in /usr/local/lib/python3.5/dist-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 ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied, skipping upgrade: python-slugify==3.0.2 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (3.0.2)
Requirement already satisfied, skipping upgrade: pyyaml<4,>=3.13 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (3.13)
Collecting requests==2.21.0 (from homeassistant)
  Using cached https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: voluptuous==0.11.5 in /usr/local/lib/python3.5/dist-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
Requirement already satisfied, skipping upgrade: pip>=8.0.3 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (19.1)
Collecting bcrypt==3.1.6 (from homeassistant)
  Using cached https://www.piwheels.org/simple/bcrypt/bcrypt-3.1.6-cp35-cp35m-linux_armv7l.whl
Requirement already satisfied, skipping upgrade: astral==1.10.1 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (1.10.1)
Collecting async-timeout==3.0.1 (from homeassistant)
  Using cached https://files.pythonhosted.org/packages/e1/1e/5a4441be21b0726c4464f3f23c8b19628372f606755a9d2e46c187e65ec4/async_timeout-3.0.1-py3-none-any.whl
Requirement already satisfied, skipping upgrade: ruamel.yaml==0.15.91 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (0.15.91)
Requirement already satisfied, skipping upgrade: pytz>=2019.01 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (2019.1)
Collecting aiohttp==3.5.4 (from homeassistant)
  Using cached https://www.piwheels.org/simple/aiohttp/aiohttp-3.5.4-cp35-cp35m-linux_armv7l.whl
Requirement already satisfied, skipping upgrade: certifi>=2018.04.16 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (2019.3.9)
Requirement already satisfied, skipping upgrade: jinja2>=2.10 in /usr/local/lib/python3.5/dist-packages (from homeassistant) (2.10.1)
Requirement already satisfied, skipping upgrade: cffi!=1.11.3,>=1.8 in /usr/local/lib/python3.5/dist-packages (from cryptography==2.6.1->homeassistant) (1.12.3)
Requirement already satisfied, skipping upgrade: six>=1.4.1 in /usr/local/lib/python3.5/dist-packages (from cryptography==2.6.1->homeassistant) (1.12.0)
Requirement already satisfied, skipping upgrade: asn1crypto>=0.21.0 in /usr/local/lib/python3.5/dist-packages (from cryptography==2.6.1->homeassistant) (0.24.0)
Requirement already satisfied, skipping upgrade: text-unidecode==1.2 in /usr/local/lib/python3.5/dist-packages (from python-slugify==3.0.2->homeassistant) (1.2)
Collecting chardet<3.1.0,>=3.0.2 (from requests==2.21.0->homeassistant)
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting urllib3<1.25,>=1.21.1 (from requests==2.21.0->homeassistant)
  Using cached https://files.pythonhosted.org/packages/df/1c/59cca3abf96f991f2ec3131a4ffe72ae3d9ea1f5894abe8a9c5e3c77cfee/urllib3-1.24.2-py2.py3-none-any.whl
Collecting idna<2.9,>=2.5 (from requests==2.21.0->homeassistant)
  Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl
Collecting yarl<2.0,>=1.0 (from aiohttp==3.5.4->homeassistant)
  Using cached https://www.piwheels.org/simple/yarl/yarl-1.3.0-cp35-cp35m-linux_armv7l.whl
Collecting idna-ssl>=1.0; python_version < "3.7" (from aiohttp==3.5.4->homeassistant)
  Using cached https://www.piwheels.org/simple/idna-ssl/idna_ssl-1.1.0-py3-none-any.whl
Collecting typing-extensions>=3.6.5; python_version < "3.7" (from aiohttp==3.5.4->homeassistant)
  Using cached https://files.pythonhosted.org/packages/0f/62/c66e553258c37c33f9939abb2dd8d2481803d860ff68e635466f12aa7efa/typing_extensions-3.7.2-py3-none-any.whl
Collecting multidict<5.0,>=4.0 (from aiohttp==3.5.4->homeassistant)
  Using cached https://www.piwheels.org/simple/multidict/multidict-4.5.2-cp35-cp35m-linux_armv7l.whl
Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in /usr/local/lib/python3.5/dist-packages (from jinja2>=2.10->homeassistant) (1.1.1)
Requirement already satisfied, skipping upgrade: pycparser in /usr/local/lib/python3.5/dist-packages (from cffi!=1.11.3,>=1.8->cryptography==2.6.1->homeassistant) (2.19)
Building wheels for collected packages: cryptography
  Building wheel for cryptography (PEP 517) ... error
  ERROR: Complete output from command /usr/bin/python3 /usr/local/lib/python3.5/dist-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp9wgaf7mo:
  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/__about__.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/utils.py -> build/lib.linux-armv7l-3.5/cryptography
  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/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/name.py -> build/lib.linux-armv7l-3.5/cryptography/x509
  copying src/cryptography/x509/ocsp.py -> 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/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/certificate_transparency.py -> build/lib.linux-armv7l-3.5/cryptography/x509
  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/interfaces.py -> 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
  creating 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/hmac.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
  copying src/cryptography/hazmat/primitives/constant_time.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/hashes.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/padding.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives
  creating 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
  copying src/cryptography/hazmat/bindings/openssl/__init__.py -> 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
  creating 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/ed25519.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/x25519.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/x448.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/encode_asn1.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/ocsp.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/ed448.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/__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/decode_asn1.py -> 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/backend.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/ciphers.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/backends/openssl
  creating 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
  copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> 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/totp.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/base.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
  creating 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
  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/concatkdf.py -> 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/x963kdf.py -> build/lib.linux-armv7l-3.5/cryptography/hazmat/primitives/kdf
  creating 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/algorithms.py -> 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/base.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/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/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/dsa.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
  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/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
  running egg_info
  writing requirements to src/cryptography.egg-info/requires.txt
  writing dependency_links to src/cryptography.egg-info/dependency_links.txt
  writing top-level names to src/cryptography.egg-info/top_level.txt
  writing src/cryptography.egg-info/PKG-INFO
  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/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: No such file or directory
   #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
ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly

Most helpful comment

And how about
sudo apt-get install libssl-dev ?
I can see in your log that openssl/opensslv.h is missing.

All 4 comments

(Almost) same here.

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
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: async-timeout==3.0.1 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (3.0.1)
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: pyyaml<4,>=3.13 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (3.13)
Collecting python-slugify==3.0.2 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/c1/19/c3cf1dc65e89aa999f85a4a3a4924ccac765a6964b405d487b7b7c8bb39f/python-slugify-3.0.2.tar.gz
Collecting ruamel.yaml==0.15.91 (from homeassistant)
  Using cached https://files.pythonhosted.org/packages/ad/0d/c9f94a393b9b8825accca0bc17afb6cbb7719e8601d26d06cbf7b21abfa3/ruamel.yaml-0.15.91.tar.gz
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: voluptuous-serialize==2.1.0 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (2.1.0)
Collecting PyJWT==1.7.1 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/87/8b/6a9f14b5f781697e51259d81657e6048fd31a113229cf346880bb7545565/PyJWT-1.7.1-py2.py3-none-any.whl
Collecting pytz>=2019.01 (from homeassistant)
  Downloading https://files.pythonhosted.org/packages/3d/73/fe30c2daaaa0713420d0382b16fbb761409f532c56bdcc514bf7b6262bb6/pytz-2019.1-py2.py3-none-any.whl (510kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 512kB 1.3MB/s
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: jinja2>=2.10 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (2.10)
Requirement already satisfied, skipping upgrade: bcrypt==3.1.6 in /srv/homeassistant/lib/python3.5/site-packages (from homeassistant) (3.1.6)
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-g03j5o6c/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
    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/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-cxxfnv52/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-xa_91o5u --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/recompiler.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/verifier.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/commontypes.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/__init__.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/cparser.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/api.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/error.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/model.py -> build/lib.linux-armv7l-3.5/cffi
    copying cffi/lock.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: Nie ma takiego pliku ani katalogu
     #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-cxxfnv52/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-7lir7r5d/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-g03j5o6c/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/recompiler.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/verifier.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/commontypes.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/__init__.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/cparser.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/api.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/error.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/model.py -> build/lib.linux-armv7l-3.5/cffi
      copying cffi/lock.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: Nie ma takiego pliku ani katalogu
       #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-cxxfnv52/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-7lir7r5d/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-g03j5o6c/overlay --compile --install-headers /srv/homeassistant/include/site/python3.5/cffi" failed with error code 1 in /tmp/pip-install-cxxfnv52/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-g03j5o6c/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

sudo apt-get install libffi-dev
fixed it.

That didn't help for me, already had latest version of libffi-dev

And how about
sudo apt-get install libssl-dev ?
I can see in your log that openssl/opensslv.h is missing.

Thanks! installing libssl-dev fixed the installation of cryptography, although i got another error now:
ERROR: requests 2.21.0 has requirement chardet<3.1.0,>=3.0.2, but you'll have chardet 2.3.0 which is incompatible.

Building wheels for collected packages: cryptography
  Building wheel for cryptography (PEP 517) ... done
  Stored in directory: /root/.cache/pip/wheels/43/61/c8/0a4464601ce180d26e0a8dfdfa88c824e419dcc65bd43bda6e
Successfully built cryptography
ERROR: requests 2.21.0 has requirement chardet<3.1.0,>=3.0.2, but you'll have chardet 2.3.0 which is incompatible.
Installing collected packages: cryptography, async-timeout, multidict, idna, yarl, typing-extensions, attrs, idna-ssl, aiohttp, bcrypt, urllib3, reque, PyJWT, homeassistant
  Found existing installation: cryptography 1.7.1
    Uninstalling cryptography-1.7.1:
      Successfully uninstalled cryptography-1.7.1
  Found existing installation: idna 2.2
    Uninstalling idna-2.2:
      Successfully uninstalled idna-2.2
  Found existing installation: urllib3 1.19.1
    Uninstalling urllib3-1.19.1:
      Successfully uninstalled urllib3-1.19.1
  Found existing installation: requests 2.12.4
    Uninstalling requests-2.12.4:
      Successfully uninstalled requests-2.12.4
Successfully installed PyJWT-1.7.1 aiohttp-3.5.4 async-timeout-3.0.1 attrs-18.2.0 bcrypt-3.1.6 cryptography-2.6.1 homeassistant-0.92.0 idna-2.8 idna-s1.1.0 multidict-4.5.2 requests-2.21.0 typing-extensions-3.7.2 urllib3-1.24.2 yarl-1.3.0

Installing pip3 install chardet==3.0.2 fixed that

Was this page helpful?
0 / 5 - 0 ratings