Struggling at the moment and not sure where to turn. I have the kodi skill setup however I think the server side on my pi is having issues. I get this when running install - requirements.txt
Code:
(venv) pi@raspberrypi:~/kodi-alexa$ pip install -r requirements.txt
Requirement already satisfied: gunicorn in ./venv/lib/python2.7/site-packages (from -r requirements.txt (line 1))
Requirement already satisfied: pytz in ./venv/lib/python2.7/site-packages (from -r requirements.txt (line 2))
Collecting flask-ask>=0.8.9 (from -r requirements.txt (line 3))
Using cached Flask_Ask-0.9.7-py2.py3-none-any.whl
Collecting kodi-voice>=0.9.8 (from -r requirements.txt (line 4))
Requirement already satisfied: aniso8601==1.2.0 in ./venv/lib/python2.7/site-packages (from flask-ask>=0.8.9->-r requirements.txt (line 3))
Requirement already satisfied: Flask==0.12.1 in ./venv/lib/python2.7/site-packages (from flask-ask>=0.8.9->-r requirements.txt (line 3))
Requirement already satisfied: six==1.10.0 in ./venv/lib/python2.7/site-packages (from flask-ask>=0.8.9->-r requirements.txt (line 3))
Requirement already satisfied: PyYAML==3.12 in ./venv/lib/python2.7/site-packages (from flask-ask>=0.8.9->-r requirements.txt (line 3))
Collecting pyOpenSSL==17.0.0 (from flask-ask>=0.8.9->-r requirements.txt (line 3))
Using cached pyOpenSSL-17.0.0-py2.py3-none-any.whl
Collecting ConfigParser (from kodi-voice>=0.9.8->-r requirements.txt (line 4))
Collecting num2words (from kodi-voice>=0.9.8->-r requirements.txt (line 4))
Using cached num2words-0.5.5-py2.py3-none-any.whl
Collecting roman (from kodi-voice>=0.9.8->-r requirements.txt (line 4))
Collecting fuzzywuzzy (from kodi-voice>=0.9.8->-r requirements.txt (line 4))
Using cached fuzzywuzzy-0.15.1-py2.py3-none-any.whl
Collecting requests (from kodi-voice>=0.9.8->-r requirements.txt (line 4))
Using cached requests-2.18.4-py2.py3-none-any.whl
Requirement already satisfied: python-dateutil in ./venv/lib/python2.7/site-packages (from aniso8601==1.2.0->flask-ask>=0.8.9->-r requirements.txt (line 3))
Requirement already satisfied: Jinja2>=2.4 in ./venv/lib/python2.7/site-packages (from Flask==0.12.1->flask-ask>=0.8.9->-r requirements.txt (line 3))
Requirement already satisfied: Werkzeug>=0.7 in ./venv/lib/python2.7/site-packages (from Flask==0.12.1->flask-ask>=0.8.9->-r requirements.txt (line 3))
Requirement already satisfied: click>=2.0 in ./venv/lib/python2.7/site-packages (from Flask==0.12.1->flask-ask>=0.8.9->-r requirements.txt (line 3))
Requirement already satisfied: itsdangerous>=0.21 in ./venv/lib/python2.7/site-packages (from Flask==0.12.1->flask-ask>=0.8.9->-r requirements.txt (line 3))
Collecting cryptography>=1.7 (from pyOpenSSL==17.0.0->flask-ask>=0.8.9->-r requirements.txt (line 3))
Using cached cryptography-2.0.3.tar.gz
Collecting certifi>=2017.4.17 (from requests->kodi-voice>=0.9.8->-r requirements.txt (line 4))
Using cached certifi-2017.7.27.1-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests->kodi-voice>=0.9.8->-r requirements.txt (line 4))
Using cached chardet-3.0.4-py2.py3-none-any.whl
Requirement already satisfied: idna<2.7,>=2.5 in ./venv/lib/python2.7/site-packages (from requests->kodi-voice>=0.9.8->-r requirements.txt (line 4))
Collecting urllib3<1.23,>=1.21.1 (from requests->kodi-voice>=0.9.8->-r requirements.txt (line 4))
Using cached urllib3-1.22-py2.py3-none-any.whl
Requirement already satisfied: MarkupSafe>=0.23 in ./venv/lib/python2.7/site-packages (from Jinja2>=2.4->Flask==0.12.1->flask-ask>=0.8.9->-r requirements.txt (line 3))
Requirement already satisfied: asn1crypto>=0.21.0 in ./venv/lib/python2.7/site-packages (from cryptography>=1.7->pyOpenSSL==17.0.0->flask-ask>=0.8.9->-r requirements.txt (line 3))
Requirement already satisfied: enum34 in ./venv/lib/python2.7/site-packages (from cryptography>=1.7->pyOpenSSL==17.0.0->flask-ask>=0.8.9->-r requirements.txt (line 3))
Requirement already satisfied: ipaddress in ./venv/lib/python2.7/site-packages (from cryptography>=1.7->pyOpenSSL==17.0.0->flask-ask>=0.8.9->-r requirements.txt (line 3))
Collecting cffi>=1.7 (from cryptography>=1.7->pyOpenSSL==17.0.0->flask-ask>=0.8.9->-r requirements.txt (line 3))
Using cached cffi-1.10.0.tar.gz
Requirement already satisfied: pycparser in ./venv/lib/python2.7/site-packages (from cffi>=1.7->cryptography>=1.7->pyOpenSSL==17.0.0->flask-ask>=0.8.9->-r requirements.txt (line 3))
Building wheels for collected packages: cryptography, cffi
Running setup.py bdist_wheel for cryptography ... error
Complete output from command /home/pi/kodi-alexa/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a1wct1/cryptography/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/tmpldEqSbpip-wheel- --python-tag cp27:
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 "<string>", line 1, in <module>
File "/tmp/pip-build-a1wct1/cryptography/setup.py", line 312, in <module>
**keywords_with_side_effects(sys.argv)
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 325, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 446, in fetch_build_eggs
replace_conflicting=True,
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 855, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1127, in best_match
return self.obtain(req, installer)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1139, in obtain
return installer(requirement)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 518, in fetch_build_egg
return cmd.easy_install(req)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 672, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 698, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 879, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1118, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1106, 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
----------------------------------------
Failed building wheel for cryptography
Running setup.py clean for cryptography
Complete output from command /home/pi/kodi-alexa/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a1wct1/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all:
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 "<string>", line 1, in <module>
File "/tmp/pip-build-a1wct1/cryptography/setup.py", line 312, in <module>
**keywords_with_side_effects(sys.argv)
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 325, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 446, in fetch_build_eggs
replace_conflicting=True,
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 855, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1127, in best_match
return self.obtain(req, installer)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1139, in obtain
return installer(requirement)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 518, in fetch_build_egg
return cmd.easy_install(req)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 672, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 698, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 879, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1118, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/home/pi/kodi-alexa/venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1106, 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
----------------------------------------
Failed cleaning build dir for cryptography
Running setup.py bdist_wheel for cffi ... error
Complete output from command /home/pi/kodi-alexa/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a1wct1/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/tmpyqnxHPpip-wheel- --python-tag cp27:
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-2.7
creating build/lib.linux-armv7l-2.7/cffi
copying cffi/error.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/cparser.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/model.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/verifier.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/api.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/recompiler.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/lock.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/commontypes.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/__init__.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_embedding.h -> build/lib.linux-armv7l-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv7l-2.7
creating build/temp.linux-armv7l-2.7/c
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-armv7l-2.7/c/_cffi_backend.o
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cryptography cffi
Installing collected packages: cffi, cryptography, pyOpenSSL, flask-ask, ConfigParser, num2words, roman, fuzzywuzzy, certifi, chardet, urllib3, requests, kodi-voice
Running setup.py install for cffi ... error
Complete output from command /home/pi/kodi-alexa/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a1wct1/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-qADxjJ-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/kodi-alexa/venv/include/site/python2.7/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
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/cffi
copying cffi/error.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/cparser.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/model.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/verifier.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/api.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/recompiler.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/lock.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/commontypes.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/__init__.py -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-armv7l-2.7/cffi
copying cffi/_embedding.h -> build/lib.linux-armv7l-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv7l-2.7
creating build/temp.linux-armv7l-2.7/c
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-armv7l-2.7/c/_cffi_backend.o
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
Command "/home/pi/kodi-alexa/venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a1wct1/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-qADxjJ-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/kodi-alexa/venv/include/site/python2.7/cffi" failed with error code 1 in /tmp/pip-build-a1wct1/cffi/
(venv) pi@raspberrypi:~/kodi-alexa$