Been following these instructions - https://github.com/sjorsjes/home-assistant#install-mysql-db
Here’s the error - tried 2x’s - fails same spot each time -
Downloading/unpacking cryptography>=1.1 (from paramiko>=1.10,<3.0->fabric)
Downloading cryptography-1.6.tar.gz (410kB): 410kB downloaded
Running setup.py (path:/tmp/pip-build-B0dGwd/cryptography/setup.py) egg_info for package cryptography
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
Downloading/unpacking idna>=2.0 (from cryptography>=1.1->paramiko>=1.10,<3.0->fabric)
Downloading idna-2.1-py2.py3-none-any.whl (54kB): 54kB downloaded
Requirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /usr/lib/python2.7/dist-packages (from cryptography>=1.1->paramiko>=1.10,<3.0->fabric)
Downloading/unpacking setuptools>=11.3 (from cryptography>=1.1->paramiko>=1.10,<3.0->fabric)
Downloading setuptools-30.4.0-py2.py3-none-any.whl (477kB): 477kB downloaded
Downloading/unpacking enum34 (from cryptography>=1.1->paramiko>=1.10,<3.0->fabric)
Downloading enum34-1.1.6-py2-none-any.whl
Downloading/unpacking ipaddress (from cryptography>=1.1->paramiko>=1.10,<3.0->fabric)
Downloading ipaddress-1.0.17-py2-none-any.whl
Downloading/unpacking cffi>=1.4.1 (from cryptography>=1.1->paramiko>=1.10,<3.0->fabric)
Downloading cffi-1.9.1.tar.gz (407kB): 407kB downloaded
Running setup.py (path:/tmp/pip-build-B0dGwd/cffi/setup.py) egg_info for package cffi
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
Downloading/unpacking pycparser (from cffi>=1.4.1->cryptography>=1.1->paramiko>=1.10,<3.0->fabric)
Downloading pycparser-2.17.tar.gz (231kB): 231kB downloaded
Running setup.py (path:/tmp/pip-build-B0dGwd/pycparser/setup.py) egg_info for package pycparser
warning: no previously-included files matching 'yacctab.*' found under directory 'tests'
warning: no previously-included files matching 'lextab.*' found under directory 'tests'
warning: no previously-included files matching 'yacctab.*' found under directory 'examples'
warning: no previously-included files matching 'lextab.*' found under directory 'examples'
Installing collected packages: fabric, paramiko, cryptography, idna, setuptools, enum34, ipaddress, cffi, pycparser
Running setup.py install for cryptography
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
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-B0dGwd/cryptography/setup.py”, line 334, in
**keywords_with_side_effects(sys.argv)
File “/usr/lib/python2.7/distutils/core.py”, line 111, in setup
_setup_distribution = dist = klass(attrs)
File “/usr/lib/python2.7/dist-packages/setuptools/dist.py”, line 262, in init
self.fetch_build_eggs(attrs[‘setup_requires’])
File “/usr/lib/python2.7/dist-packages/setuptools/dist.py”, line 287, in fetch_build_eggs
replace_conflicting=True,
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 631, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 874, in best_match
return self.obtain(req, installer)
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 886, in obtain
return installer(requirement)
File “/usr/lib/python2.7/dist-packages/setuptools/dist.py”, line 338, in fetch_build_egg
return cmd.easy_install(req)
File “/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py”, line 636, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File “/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py”, line 666, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File “/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py”, line 856, in install_eggs
return self.build_and_install(setup_script, setup_base)
File “/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py”, line 1078, in build_and_install
self.run_setup(setup_script, setup_base, args)
File “/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py”, line 1066, in run_setup
raise DistutilsError(“Setup script exited with %s” % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command ‘arm-linux-gnueabihf-gcc’ failed with exit status 1
Complete output from command /usr/bin/python -c “import setuptools, tokenize;file=’/tmp/pip-build-B0dGwd/cryptography/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-LhLrOV-record/install-record.txt --single-version-externally-managed --compile:
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
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-B0dGwd/cryptography/setup.py”, line 334, in
**keywords_with_side_effects(sys.argv)
File “/usr/lib/python2.7/distutils/core.py”, line 111, in setup
_setup_distribution = dist = klass(attrs)
File “/usr/lib/python2.7/dist-packages/setuptools/dist.py”, line 262, in init
self.fetch_build_eggs(attrs['setup_requires'])
File “/usr/lib/python2.7/dist-packages/setuptools/dist.py”, line 287, in fetch_build_eggs
replace_conflicting=True,
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 631, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 874, in best_match
return self.obtain(req, installer)
File “/usr/lib/python2.7/dist-packages/pkg_resources.py”, line 886, in obtain
return installer(requirement)
File “/usr/lib/python2.7/dist-packages/setuptools/dist.py”, line 338, in fetch_build_egg
return cmd.easy_install(req)
File “/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py”, line 636, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File “/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py”, line 666, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File “/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py”, line 856, in install_eggs
return self.build_and_install(setup_script, setup_base)
File “/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py”, line 1078, in build_and_install
self.run_setup(setup_script, setup_base, args)
File “/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py”, line 1066, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command ‘arm-linux-gnueabihf-gcc’ failed with exit status 1
Cleaning up…
Command /usr/bin/python -c “import setuptools, tokenize;file=’/tmp/pip-build-B0dGwd/cryptography/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-LhLrOV-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-B0dGwd/cryptography
Storing debug log for failure in /root/.pip/pip.log
Cloning into ‘fabric-home-assistant’…
remote: Counting objects: 223, done.
remote: Total 223 (delta 0), reused 0 (delta 0), pack-reused 223
Receiving objects: 100% (223/223), 104.12 KiB | 0 bytes/s, done.
Resolving deltas: 100% (125/125), done.
Checking connectivity… done.
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/fabric/network.py”, line 24, in
import paramiko as ssh
File “/usr/local/lib/python2.7/dist-packages/paramiko/init.py”, line 30, in
from paramiko.transport import SecurityOptions, Transport
File “/usr/local/lib/python2.7/dist-packages/paramiko/transport.py”, line 33, in
from cryptography.hazmat.backends import default_backend
ImportError: No module named cryptography.hazmat.backends
There was a problem importing our SSH library (see traceback above).
Please make sure all dependencies are installed and importable.
Don’t know where to go from there…