Solution/Fix
=============
#sudo apt-get install libffi-dev
Error
===========
Downloading/unpacking testscenarios (from python-subunit->-r /home/saju/tempest_test/tempest/test-requirements.txt (line 5))
Downloading testscenarios-0.4.tar.gz
Running setup.py (path:/home/saju/tempest_test/tempest/.venv/build/testscenarios/setup.py) egg_info for package testscenarios
Downloading/unpacking cryptography>=0.2.1 (from pyOpenSSL->python-glanceclient>=0.9.0->-r /home/saju/tempest_test/tempest/requirements.txt (line 11))
Downloading cryptography-0.2.1.tar.gz (13.8MB): 13.8MB downloaded
Running setup.py (path:/home/saju/tempest_test/tempest/.venv/build/cryptography/setup.py) egg_info for package cryptography
no previously-included directories found matching 'documentation/_build'
zip_safe flag not set; analyzing archive contents...
six: module references __file__
Installed /home/saju/tempest_test/tempest/.venv/build/cryptography/six-1.5.2-py2.7.egg
Searching for cffi>=0.8
Reading https://pypi.python.org/simple/cffi/
Best match: cffi 0.8.1
Downloading https://pypi.python.org/packages/source/c/cffi/cffi-0.8.1.tar.gz#md5=1a877bf113bfe90fdefedbf9e39310d2
Processing cffi-0.8.1.tar.gz
Writing /tmp/easy_install-IP8sy3/cffi-0.8.1/setup.cfg
Running cffi-0.8.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-IP8sy3/cffi-0.8.1/egg-dist-tmp-KXIMky
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
cc -c c/check__thread.c -o c/check__thread.o
c/_cffi_backend.c:14:17: fatal error: ffi.h: No such file or directory
#include
^
compilation terminated.
Traceback (most recent call last):
File "", line 17, in
File "/home/saju/tempest_test/tempest/.venv/build/cryptography/setup.py", line 113, in
"build": cffi_build,
File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 239, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 264, in fetch_build_eggs
replace_conflicting=True
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/pkg_resources.py", line 580, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/pkg_resources.py", line 818, in best_match
return self.obtain(req, installer) # try and download/install
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/pkg_resources.py", line 830, in obtain
return installer(requirement)
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 314, in fetch_build_egg
return cmd.easy_install(req)
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 593, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 623, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 809, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1015, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1003, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Complete output from command python setup.py egg_info:
no previously-included directories found matching 'documentation/_build'
zip_safe flag not set; analyzing archive contents...
six: module references __file__
Installed /home/saju/tempest_test/tempest/.venv/build/cryptography/six-1.5.2-py2.7.egg
Searching for cffi>=0.8
Reading https://pypi.python.org/simple/cffi/
Best match: cffi 0.8.1
Downloading https://pypi.python.org/packages/source/c/cffi/cffi-0.8.1.tar.gz#md5=1a877bf113bfe90fdefedbf9e39310d2
Processing cffi-0.8.1.tar.gz
Writing /tmp/easy_install-IP8sy3/cffi-0.8.1/setup.cfg
Running cffi-0.8.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-IP8sy3/cffi-0.8.1/egg-dist-tmp-KXIMky
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
cc -c c/check__thread.c -o c/check__thread.o
c/_cffi_backend.c:14:17: fatal error: ffi.h: No such file or directory
#include
^
compilation terminated.
Traceback (most recent call last):
File "", line 17, in
File "/home/saju/tempest_test/tempest/.venv/build/cryptography/setup.py", line 113, in
"build": cffi_build,
File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
_setup_distribution = dist = klass(attrs)
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 239, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 264, in fetch_build_eggs
replace_conflicting=True
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/pkg_resources.py", line 580, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/pkg_resources.py", line 818, in best_match
return self.obtain(req, installer) # try and download/install
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/pkg_resources.py", line 830, in obtain
return installer(requirement)
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 314, in fetch_build_egg
return cmd.easy_install(req)
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 593, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 623, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 809, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1015, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/home/saju/tempest_test/tempest/.venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1003, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/saju/tempest_test/tempest/.venv/build/cryptography
Storing debug log for failure in /home/saju/.pip/pip.log
Command "tools/with_venv.sh pip install --upgrade -r /home/saju/tempest_test/tempest/requirements.txt -r /home/saju/tempest_test/tempest/test-requirements.txt" failed.
None
Traceback (most recent call last):
File "tools/colorizer.py", line 46, in
import subunit
ImportError: No module named subunit
/home/saju/tempest_test/tempest/.venv/bin/python: No module named subunit
Non-zero exit code (1) from test listing. stdout='', stderr=None
Running flake8 ...
tools/with_venv.sh: line 4: flake8: command not found