Closed vernnobile closed 10 years ago
sudo apt-get install libssl-dev
after this command try to run setup again
On Wed, Apr 23, 2014 at 7:08 PM, vernon adams notifications@github.comwrote:
Fresh + clean Ubuntu 14.04 distro. 'VENVRUN=virtualenv make setup;' is failing with;
Command python setup.py egg_info failed with error code 1 in /home/vern/src/fontbakery/venv/build/cryptography Storing debug log for failure in /home/vern/.pip/pip.log make: *\ [setup] Error 1
pip.log says;
File "cryptography/hazmat/bindings/openssl/binding.py", line 99, in _ensure_ffi_initialized
libraries)
File "cryptography/hazmat/bindings/utils.py", line 77, in build_ffi
ext_package="cryptography",
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/api.py", line 341, in ver$
lib = self.verifier.load_library()
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/verifier.py", line 74, in$
self._compile_module()
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/verifier.py", line 139, i$
outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/ffiplatform.py", line 25,$
outputfilename = _build(tmpdir, ext)
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/ffiplatform.py", line 50,$
raise VerificationError('%s: %s' % (e.__class__.__name__, e))
cffi.ffiplatform.VerificationError: CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Cleaning up... Removing temporary dir /home/vern/src/fontbakery/venv/build... Command python setup.py egg_info failed with error code 1 in /home/vern/src/fontbakery/venv/build/cryptography Exception information: Traceback (most recent call last): File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/pip/commands/install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/pip/req.py", line 1229, in prepare_files req_to_install.run_egg_info() File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/pip/req.py", line 325, in run_egg_info command_desc='python setup.py egg_info') File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/pip/util.py", line 697, in call_subprocess % (command_desc, proc.returncode, cwd)) InstallationError: Command python setup.py egg_info failed with error code 1 in /home/vern/src/fontbakery/venv/build/crypt$
full terminal output below;
%2Fredis-2.9.1.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/redis/setup.py) egg_info for package redis
warning: no previously-included files found matching '__pycache__' warning: no previously-included files matching '*.pyc' found under directory 'tests'
Downloading/unpacking python-magic (from -r requirements.txt (line 40)) Downloading python-magic-0.4.6.tar.gz Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fp%2Fpython-magic%2Fpython-magic-0.4.6.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/python-magic/setup.py) egg_info for package python-magic
Downloading/unpacking lxml from https://pypi.python.org/packages/source/l/lxml/lxml-3.3.5.tar.gz#md5=88c75f4c73fc8f59c9ebb17495044f2f (from -r requirements.txt (line 41)) Downloading lxml-3.3.5.tar.gz (3.5MB): 3.5MB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fl%2Flxml%2Flxml-3.3.5.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/lxml/setup.py) egg_info for package lxml /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.3.5. Building without Cython. Using build configuration of libxslt 1.1.28
warning: no previously-included files found matching '*.py'
Downloading/unpacking scrapy (from -r requirements.txt (line 44)) Downloading Scrapy-0.22.2.tar.gz (757kB): 757kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FS%2FScrapy%2FScrapy-0.22.2.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/scrapy/setup.py) egg_info for package scrapy
no previously-included directories found matching 'docs/build'
Requirement already up-to-date: html5lib in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 45)) Downloading/unpacking unidecode (from -r requirements.txt (line 46)) Downloading Unidecode-0.04.14.tar.gz (200kB): 200kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FU%2FUnidecode%2FUnidecode-0.04.14.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/unidecode/setup.py) egg_info for package unidecode
Downloading/unpacking mandrill (from -r requirements.txt (line 49)) Downloading mandrill-1.0.53.tar.gz Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fm%2Fmandrill%2Fmandrill-1.0.53.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/mandrill/setup.py) egg_info for package mandrill
Downloading/unpacking Werkzeug>=0.7 (from Flask->-r requirements.txt (line 3)) Downloading Werkzeug-0.9.4.tar.gz (1.1MB): 1.1MB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FW%2FWerkzeug%2FWerkzeug-0.9.4.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/Werkzeug/setup.py) egg_info for package Werkzeug
warning: no files found matching '*' under directory 'werkzeug/debug/templates' warning: no files found matching '*' under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'docs' warning: no previously-included files matching '*.pyo' found under directory 'docs' warning: no previously-included files matching '*.pyc' found under directory 'tests' warning: no previously-included files matching '*.pyo' found under directory 'tests' warning: no previously-included files matching '*.pyc' found under directory 'examples' warning: no previously-included files matching '*.pyo' found under directory 'examples' no previously-included directories found matching 'docs/_build'
Downloading/unpacking Jinja2>=2.4 (from Flask->-r requirements.txt (line 3)) Downloading Jinja2-2.7.2.tar.gz (378kB): 378kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FJ%2FJinja2%2FJinja2-2.7.2.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/Jinja2/setup.py) egg_info for package Jinja2
warning: no files found matching '*' under directory 'custom_fixers' warning: no previously-included files matching '*' found under directory 'docs/_build' warning: no previously-included files matching '*.pyc' found under directory 'jinja2' warning: no previously-included files matching '*.pyc' found under directory 'docs' warning: no previously-included files matching '*.pyo' found under directory 'jinja2' warning: no previously-included files matching '*.pyo' found under directory 'docs'
Downloading/unpacking itsdangerous>=0.21 (from Flask->-r requirements.txt (line 3)) Downloading itsdangerous-0.24.tar.gz (46kB): 46kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fi%2Fitsdangerous%2Fitsdangerous-0.24.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/itsdangerous/setup.py) egg_info for package itsdangerous
warning: no previously-included files matching '*' found under directory 'docs/_build'
Downloading/unpacking speaklater>=1.2 (from Flask-Babel->-r requirements.txt (line 4)) Downloading speaklater-1.3.tar.gz Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fs%2Fspeaklater%2Fspeaklater-1.3.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/speaklater/setup.py) egg_info for package speaklater
Downloading/unpacking PyYAML (from Flask-FlatPages->-r requirements.txt (line 5)) Downloading PyYAML-3.11.tar.gz (248kB): 248kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FP%2FPyYAML%2FPyYAML-3.11.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/PyYAML/setup.py) egg_info for package PyYAML
Downloading/unpacking Markdown (from Flask-FlatPages->-r requirements.txt (line 5)) Downloading Markdown-2.4.tar.gz (260kB): 260kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FM%2FMarkdown%2FMarkdown-2.4.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/Markdown/setup.py) egg_info for package Markdown
Downloading/unpacking blinker (from Flask-Mail->-r requirements.txt (line 6)) Downloading blinker-1.3.tar.gz (91kB): 91kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fb%2Fblinker%2Fblinker-1.3.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/blinker/setup.py) egg_info for package blinker
Downloading/unpacking setuptools from https://pypi.python.org/packages/3.4/s/setuptools/setuptools-3.4.4-py2.py3-none-any.whl#md5=46284205a95cf3f9e132bbfe569e1b9d (from Flask-SQLAlchemy->-r requirements.txt (line 7)) Downloading setuptools-3.4.4-py2.py3-none-any.whl (545kB): 545kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2F3.4%2Fs%2Fsetuptools%2Fsetuptools-3.4.4-py2.py3-none-any.whl Downloading/unpacking SQLAlchemy (from Flask-SQLAlchemy->-r requirements.txt (line 7)) Downloading SQLAlchemy-0.9.4.tar.gz (4.5MB): 4.5MB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FS%2FSQLAlchemy%2FSQLAlchemy-0.9.4.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/SQLAlchemy/setup.py) egg_info for package SQLAlchemy
warning: no files found matching '*.jpg' under directory 'doc' warning: no files found matching 'distribute_setup.py' warning: no files found matching 'sa2to3.py' warning: no files found matching 'ez_setup.py' no previously-included directories found matching 'doc/build/output'
Downloading/unpacking gevent-websocket (from gevent-socketio==0.3.5-rc2->-r requirements.txt (line 32)) Downloading gevent_websocket-0.9.3-py27-none-any.whl Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2F2.7%2Fg%2Fgevent-websocket%2Fgevent_websocket-0.9.3-py27-none-any.whl Downloading/unpacking rq (from flask-rq->-r requirements.txt (line 36)) Downloading rq-0.4.1-py2.py3-none-any.whl (41kB): 41kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fpy2.py3%2Fr%2Frq%2Frq-0.4.1-py2.py3-none-any.whl Downloading/unpacking Twisted>=10.0.0 (from scrapy->-r requirements.txt (line 44)) Downloading Twisted-13.2.0.tar.bz2 (2.7MB): 2.7MB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FT%2FTwisted%2FTwisted-13.2.0.tar.bz2 Running setup.py (path:/home/vern/src/fontbakery/venv/build/Twisted/setup.py) egg_info for package Twisted
Downloading/unpacking w3lib>=1.2 (from scrapy->-r requirements.txt (line 44)) Downloading w3lib-1.5.tar.gz Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fw%2Fw3lib%2Fw3lib-1.5.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/w3lib/setup.py) egg_info for package w3lib
Downloading/unpacking queuelib (from scrapy->-r requirements.txt (line 44)) Downloading queuelib-1.1.1.tar.gz Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fq%2Fqueuelib%2Fqueuelib-1.1.1.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/queuelib/setup.py) egg_info for package queuelib
Downloading/unpacking pyOpenSSL from https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.14.tar.gz#md5=8579ff3a1d858858acfba5f046a4ddf7 (from scrapy->-r requirements.txt (line 44)) Downloading pyOpenSSL-0.14.tar.gz (128kB): 128kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fp%2FpyOpenSSL%2FpyOpenSSL-0.14.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/pyOpenSSL/setup.py) egg_info for package pyOpenSSL
warning: no previously-included files matching '*.pyc' found anywhere in distribution no previously-included directories found matching 'doc/_build'
Downloading/unpacking cssselect>=0.9 (from scrapy->-r requirements.txt (line 44)) Downloading cssselect-0.9.1.tar.gz Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fc%2Fcssselect%2Fcssselect-0.9.1.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/cssselect/setup.py) egg_info for package cssselect
no previously-included directories found matching 'docs/_build'
Downloading/unpacking docopt==0.4.0 (from mandrill->-r requirements.txt (line 49)) Downloading docopt-0.4.0.tar.gz Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fd%2Fdocopt%2Fdocopt-0.4.0.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/docopt/setup.py) egg_info for package docopt
Downloading/unpacking zope.interface>=3.6.0 from https://pypi.python.org/packages/source/z/zope.interface/zope.interface-4.1.1.tar.gz#md5=edcd5f719c5eb2e18894c4d06e29b6c6 (from Twisted>=10.0.0->scrapy->-r requirements.txt (line 44)) Downloading zope.interface-4.1.1.tar.gz (864kB): 864kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fz%2Fzope.interface%2Fzope.interface-4.1.1.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/zope.interface/setup.py) egg_info for package zope.interface
warning: no previously-included files matching '*.dll' found anywhere in distribution warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files matching '*.pyo' found anywhere in distribution warning: no previously-included files matching '*.so' found anywhere in distribution
Downloading/unpacking cryptography>=0.2.1 (from pyOpenSSL->scrapy->-r requirements.txt (line 44)) Downloading cryptography-0.3.tar.gz (208kB): 208kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fc%2Fcryptography%2Fcryptography-0.3.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/cryptography/setup.py) egg_info for package cryptography
Installed /home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg Searching for pycparser Reading https://pypi.python.org/simple/pycparser/ Best match: pycparser 2.10 Downloading https://pypi.python.org/packages/source/p/pycparser/pycparser-2.10.tar.gz#md5=d87aed98c8a9f386aa56d365fe4d515f Processing pycparser-2.10.tar.gz Writing /tmp/easy_install-5BwJID/pycparser-2.10/setup.cfg Running pycparser-2.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-5BwJID/pycparser-2.10/egg-dist-tmp-xbJkHK zip_safe flag not set; analyzing archive contents... Installed /home/vern/src/fontbakery/venv/build/cryptography/pycparser-2.10-py2.7.egg building '_Cryptography_cffi_684bb40axf342507b' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_684bb40axf342507b.c -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_684bb40axf342507b.o x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_684bb40axf342507b.o -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_684bb40axf342507b.so building '_Cryptography_cffi_8f86901cxc1767c5a' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_8f86901cxc1767c5a.c -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_8f86901cxc1767c5a.o x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/__pycache__/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_8f86901cxc1767c5a.o -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/__pycache__/_Cryptography_cffi_8f86901cxc1767c5a.so building '_Cryptography_cffi_48bbf0ebx93c91939' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_48bbf0ebx93c91939.c -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/bindings/__pycache__/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_48bbf0ebx93c91939.o cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_48bbf0ebx93c91939.c:165:25: fatal error: openssl/aes.h: No such file or directory #include <openssl/aes.h> ^ compilation terminated. Traceback (most recent call last): File "<string>", line 17, in <module> File "/home/vern/src/fontbakery/venv/build/cryptography/setup.py", line 156, in <module> "test": PyTest, File "/usr/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "<string>", line 15, in replacement_run File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 186, in find_sources mm.run() File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 246, in run self.add_defaults() File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 282, in add_defaults sdist.add_defaults(self) File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/sdist.py", line 167, in add_defaults build_py = self.get_finalized_command('build_py') File "/usr/lib/python2.7/distutils/cmd.py", line 312, in get_finalized_command cmd_obj.ensure_finalized() File "/usr/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized self.finalize_options() File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/build_py.py", line 26, in finalize_options _build_py.finalize_options(self) File "/usr/lib/python2.7/distutils/command/build_py.py", line 46, in finalize_options ('force', 'force')) File "/usr/lib/python2.7/distutils/cmd.py", line 298, in set_undefined_options src_cmd_obj.ensure_finalized() File "/usr/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized self.finalize_options() File "/home/vern/src/fontbakery/venv/build/cryptography/setup.py", line 75, in finalize_options OpenSSLBinding().ffi.verifier.get_extension(), File "cryptography/hazmat/bindings/openssl/binding.py", line 83, in __init__ self._ensure_ffi_initialized() File "cryptography/hazmat/bindings/openssl/binding.py", line 99, in _ensure_ffi_initialized libraries) File "cryptography/hazmat/bindings/utils.py", line 77, in build_ffi ext_package="cryptography", File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/api.py", line 341, in verify lib = self.verifier.load_library() File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/verifier.py", line 74, in load_library self._compile_module() File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/verifier.py", line 139, in _compile_module outputfilename = ffiplatform.compile(tmpdir, self.get_extension()) File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/ffiplatform.py", line 25, in compile outputfilename = _build(tmpdir, ext) File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/ffiplatform.py", line 50, in _build raise VerificationError('%s: %s' % (e.__class__.__name__, e)) cffi.ffiplatform.VerificationError: CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Complete output from command python setup.py egg_info:
Installed /home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg
Searching for pycparser
Reading https://pypi.python.org/simple/pycparser/
Best match: pycparser 2.10
Processing pycparser-2.10.tar.gz
Writing /tmp/easy_install-5BwJID/pycparser-2.10/setup.cfg
Running pycparser-2.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-5BwJID/pycparser-2.10/egg-dist-tmp-xbJkHK
zip_safe flag not set; analyzing archive contents...
Installed /home/vern/src/fontbakery/venv/build/cryptography/pycparser-2.10-py2.7.egg
running egg_info
creating pip-egg-info/cryptography.egg-info
writing dependency_links to pip-egg-info/cryptography.egg-info/dependency_links.txt
writing requirements to pip-egg-info/cryptography.egg-info/requires.txt
writing pip-egg-info/cryptography.egg-info/PKG-INFO
writing top-level names to pip-egg-info/cryptography.egg-info/top_level.txt
writing manifest file 'pip-egg-info/cryptography.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
running build_ext
building '_Cryptography_cffi_684bb40axf342507b' extension
creating /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography
creating /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat
creating /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat/primitives
creating /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat/primitives/pycache
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cryptography/hazmat/primitives/pycache/_Cryptography_cffi_684bb40axf342507b.c -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_684bb40axf342507b.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_684bb40axf342507b.o -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_684bb40axf342507b.so
running build_ext
building '_Cryptography_cffi_8f86901cxc1767c5a' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cryptography/hazmat/primitives/pycache/_Cryptography_cffi_8f86901cxc1767c5a.c -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_8f86901cxc1767c5a.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_8f86901cxc1767c5a.o -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_8f86901cxc1767c5a.so
running build_ext
building '_Cryptography_cffi_48bbf0ebx93c91939' extension
creating /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/bindings/pycache/cryptography
creating /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/bindings/pycache/cryptography/hazmat
creating /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/bindings/pycache/cryptography/hazmat/bindings
creating /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/bindings/pycache/cryptography/hazmat/bindings/pycache
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cryptography/hazmat/bindings/pycache/_Cryptography_cffi_48bbf0ebx93c91939.c -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/bindings/pycache/cryptography/hazmat/bindings/pycache/_Cryptography_cffi_48bbf0ebx93c91939.o
cryptography/hazmat/bindings/pycache/_Cryptography_cffi_48bbf0ebx93c91939.c:165:25: fatal error: openssl/aes.h: No such file or directory
include <openssl/aes.h>
^
compilation terminated.
Traceback (most recent call last):
File "
", line 17, in File "/home/vern/src/fontbakery/venv/build/cryptography/setup.py", line 156, in
"test": PyTest,
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "
", line 15, in replacement_run File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 186, in find_sources
mm.run()
File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 246, in run
self.add_defaults()
File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 282, in add_defaults
sdist.add_defaults(self)
File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/sdist.py", line 167, in add_defaults
build_py = self.get_finalized_command('build_py')
File "/usr/lib/python2.7/distutils/cmd.py", line 312, in get_finalized_command
cmd_obj.ensure_finalized()
File "/usr/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
self.finalize_options()
File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/build_py.py", line 26, in finalize_options
_build_py.finalize_options(self)
File "/usr/lib/python2.7/distutils/command/build_py.py", line 46, in finalize_options
('force', 'force'))
File "/usr/lib/python2.7/distutils/cmd.py", line 298, in set_undefined_options
src_cmd_obj.ensure_finalized()
File "/usr/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
self.finalize_options()
File "/home/vern/src/fontbakery/venv/build/cryptography/setup.py", line 75, in finalize_options
OpenSSLBinding().ffi.verifier.get_extension(),
File "cryptography/hazmat/bindings/openssl/binding.py", line 83, in init
self._ensure_ffi_initialized()
File "cryptography/hazmat/bindings/openssl/binding.py", line 99, in _ensure_ffi_initialized
libraries)
File "cryptography/hazmat/bindings/utils.py", line 77, in build_ffi
ext_package="cryptography",
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/api.py", line 341, in verify
lib = self.verifier.load_library()
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/verifier.py", line 74, in load_library
self._compile_module()
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/verifier.py", line 139, in _compile_module
outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/ffiplatform.py", line 25, in compile
outputfilename = _build(tmpdir, ext)
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/ffiplatform.py", line 50, in _build
raise VerificationError('%s: %s' % (e.__class__.__name__, e))
cffi.ffiplatform.VerificationError: CompileError: 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/vern/src/fontbakery/venv/build/cryptography Storing debug log for failure in /home/vern/.pip/pip.log make: *\ [setup] Error 1 vern@vern-X300:~/src/fontbakery$
ā Reply to this email directly or view it on GitHubhttps://github.com/googlefonts/fontbakery/issues/301 .
Best Regards,
Vitaly Volkov Python Developer
Please add this to the docs and ci scripts before closing this issue On 23 Apr 2014 21:40, "Vitaly Volkov" notifications@github.com wrote:
sudo apt-get install libssl-dev
On Wed, Apr 23, 2014 at 7:08 PM, vernon adams notifications@github.comwrote:
Fresh + clean Ubuntu 14.04 distro. 'VENVRUN=virtualenv make setup;' is failing with;
Command python setup.py egg_info failed with error code 1 in /home/vern/src/fontbakery/venv/build/cryptography Storing debug log for failure in /home/vern/.pip/pip.log make: *\ [setup] Error 1
pip.log says;
File "cryptography/hazmat/bindings/openssl/binding.py", line 99, in _ensure_ffi_initialized
libraries)
File "cryptography/hazmat/bindings/utils.py", line 77, in build_ffi
ext_package="cryptography",
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/api.py", line 341, in ver$
lib = self.verifier.load_library()
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/verifier.py", line 74, in$
self._compile_module()
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/verifier.py", line 139, i$
outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/ffiplatform.py", line 25,$
outputfilename = _build(tmpdir, ext)
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/ffiplatform.py", line 50,$
raise VerificationError('%s: %s' % (e.class.name, e))
cffi.ffiplatform.VerificationError: CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Cleaning up... Removing temporary dir /home/vern/src/fontbakery/venv/build... Command python setup.py egg_info failed with error code 1 in /home/vern/src/fontbakery/venv/build/cryptography Exception information: Traceback (most recent call last): File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/pip/commands/install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/pip/req.py", line 1229, in prepare_files req_to_install.run_egg_info() File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/pip/req.py", line 325, in run_egg_info command_desc='python setup.py egg_info') File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/pip/util.py", line 697, in call_subprocess % (command_desc, proc.returncode, cwd)) InstallationError: Command python setup.py egg_info failed with error code 1 in /home/vern/src/fontbakery/venv/build/crypt$
full terminal output below;
%2Fredis-2.9.1.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/redis/setup.py) egg_info for package redis
warning: no previously-included files found matching 'pycache' warning: no previously-included files matching '*.pyc' found under directory 'tests' Downloading/unpacking python-magic (from -r requirements.txt (line 40)) Downloading python-magic-0.4.6.tar.gz Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2Fp%2Fpython-magic%2Fpython-magic-0.4.6.tar.gz
Running setup.py (path:/home/vern/src/fontbakery/venv/build/python-magic/setup.py) egg_info for package python-magic
Downloading/unpacking lxml from https://pypi.python.org/packages/source/l/lxml/lxml-3.3.5.tar.gz#md5=88c75f4c73fc8f59c9ebb17495044f2f(from -r requirements.txt (line 41)) Downloading lxml-3.3.5.tar.gz (3.5MB): 3.5MB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2Fl%2Flxml%2Flxml-3.3.5.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/lxml/setup.py) egg_info for package lxml /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.3.5. Building without Cython. Using build configuration of libxslt 1.1.28
warning: no previously-included files found matching '*.py' Downloading/unpacking scrapy (from -r requirements.txt (line 44)) Downloading Scrapy-0.22.2.tar.gz (757kB): 757kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2FS%2FScrapy%2FScrapy-0.22.2.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/scrapy/setup.py) egg_info for package scrapy
no previously-included directories found matching 'docs/build' Requirement already up-to-date: html5lib in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 45)) Downloading/unpacking unidecode (from -r requirements.txt (line 46)) Downloading Unidecode-0.04.14.tar.gz (200kB): 200kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2FU%2FUnidecode%2FUnidecode-0.04.14.tar.gz
Running setup.py (path:/home/vern/src/fontbakery/venv/build/unidecode/setup.py) egg_info for package unidecode
Downloading/unpacking mandrill (from -r requirements.txt (line 49)) Downloading mandrill-1.0.53.tar.gz Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2Fm%2Fmandrill%2Fmandrill-1.0.53.tar.gz
Running setup.py (path:/home/vern/src/fontbakery/venv/build/mandrill/setup.py) egg_info for package mandrill
Downloading/unpacking Werkzeug>=0.7 (from Flask->-r requirements.txt (line 3)) Downloading Werkzeug-0.9.4.tar.gz (1.1MB): 1.1MB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2FW%2FWerkzeug%2FWerkzeug-0.9.4.tar.gz
Running setup.py (path:/home/vern/src/fontbakery/venv/build/Werkzeug/setup.py) egg_info for package Werkzeug
warning: no files found matching '' under directory 'werkzeug/debug/templates' warning: no files found matching '' under directory 'tests' warning: no previously-included files matching '.pyc' found under directory 'docs' warning: no previously-included files matching '.pyo' found under directory 'docs' warning: no previously-included files matching '.pyc' found under directory 'tests' warning: no previously-included files matching '.pyo' found under directory 'tests' warning: no previously-included files matching '.pyc' found under directory 'examples' warning: no previously-included files matching '.pyo' found under directory 'examples' no previously-included directories found matching 'docs/_build' Downloading/unpacking Jinja2>=2.4 (from Flask->-r requirements.txt (line 3)) Downloading Jinja2-2.7.2.tar.gz (378kB): 378kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2FJ%2FJinja2%2FJinja2-2.7.2.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/Jinja2/setup.py) egg_info for package Jinja2
warning: no files found matching '_' under directory 'customfixers' warning: no previously-included files matching '' found under directory 'docs/build' warning: no previously-included files matching '.pyc' found under directory 'jinja2' warning: no previously-included files matching '.pyc' found under directory 'docs' warning: no previously-included files matching '.pyo' found under directory 'jinja2' warning: no previously-included files matching '_.pyo' found under directory 'docs' Downloading/unpacking itsdangerous>=0.21 (from Flask->-r requirements.txt (line 3)) Downloading itsdangerous-0.24.tar.gz (46kB): 46kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2Fi%2Fitsdangerous%2Fitsdangerous-0.24.tar.gz
Running setup.py (path:/home/vern/src/fontbakery/venv/build/itsdangerous/setup.py) egg_info for package itsdangerous
warning: no previously-included files matching '*' found under directory 'docs/_build' Downloading/unpacking speaklater>=1.2 (from Flask-Babel->-r requirements.txt (line 4)) Downloading speaklater-1.3.tar.gz Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2Fs%2Fspeaklater%2Fspeaklater-1.3.tar.gz
Running setup.py (path:/home/vern/src/fontbakery/venv/build/speaklater/setup.py) egg_info for package speaklater
Downloading/unpacking PyYAML (from Flask-FlatPages->-r requirements.txt (line 5)) Downloading PyYAML-3.11.tar.gz (248kB): 248kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2FP%2FPyYAML%2FPyYAML-3.11.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/PyYAML/setup.py) egg_info for package PyYAML
Downloading/unpacking Markdown (from Flask-FlatPages->-r requirements.txt (line 5)) Downloading Markdown-2.4.tar.gz (260kB): 260kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2FM%2FMarkdown%2FMarkdown-2.4.tar.gz
Running setup.py (path:/home/vern/src/fontbakery/venv/build/Markdown/setup.py) egg_info for package Markdown
Downloading/unpacking blinker (from Flask-Mail->-r requirements.txt (line 6)) Downloading blinker-1.3.tar.gz (91kB): 91kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2Fb%2Fblinker%2Fblinker-1.3.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/blinker/setup.py) egg_info for package blinker
Downloading/unpacking setuptools from https://pypi.python.org/packages/3.4/s/setuptools/setuptools-3.4.4-py2.py3-none-any.whl#md5=46284205a95cf3f9e132bbfe569e1b9d(from Flask-SQLAlchemy->-r requirements.txt (line 7)) Downloading setuptools-3.4.4-py2.py3-none-any.whl (545kB): 545kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2F3.4%2Fs%2Fsetuptools%2Fsetuptools-3.4.4-py2.py3-none-any.whl
Downloading/unpacking SQLAlchemy (from Flask-SQLAlchemy->-r requirements.txt (line 7)) Downloading SQLAlchemy-0.9.4.tar.gz (4.5MB): 4.5MB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2FS%2FSQLAlchemy%2FSQLAlchemy-0.9.4.tar.gz
Running setup.py (path:/home/vern/src/fontbakery/venv/build/SQLAlchemy/setup.py) egg_info for package SQLAlchemy
warning: no files found matching '*.jpg' under directory 'doc' warning: no files found matching 'distribute_setup.py' warning: no files found matching 'sa2to3.py' warning: no files found matching 'ez_setup.py' no previously-included directories found matching 'doc/build/output' Downloading/unpacking gevent-websocket (from gevent-socketio==0.3.5-rc2->-r requirements.txt (line 32)) Downloading gevent_websocket-0.9.3-py27-none-any.whl Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2F2.7%2Fg%2Fgevent-websocket%2Fgevent_websocket-0.9.3-py27-none-any.whl
Downloading/unpacking rq (from flask-rq->-r requirements.txt (line 36)) Downloading rq-0.4.1-py2.py3-none-any.whl (41kB): 41kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fpy2.py3%2Fr%2Frq%2Frq-0.4.1-py2.py3-none-any.whl
Downloading/unpacking Twisted>=10.0.0 (from scrapy->-r requirements.txt (line 44)) Downloading Twisted-13.2.0.tar.bz2 (2.7MB): 2.7MB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2FT%2FTwisted%2FTwisted-13.2.0.tar.bz2
Running setup.py (path:/home/vern/src/fontbakery/venv/build/Twisted/setup.py) egg_info for package Twisted
Downloading/unpacking w3lib>=1.2 (from scrapy->-r requirements.txt (line 44)) Downloading w3lib-1.5.tar.gz Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2Fw%2Fw3lib%2Fw3lib-1.5.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/w3lib/setup.py) egg_info for package w3lib
Downloading/unpacking queuelib (from scrapy->-r requirements.txt (line 44)) Downloading queuelib-1.1.1.tar.gz Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2Fq%2Fqueuelib%2Fqueuelib-1.1.1.tar.gz
Running setup.py (path:/home/vern/src/fontbakery/venv/build/queuelib/setup.py) egg_info for package queuelib
Downloading/unpacking pyOpenSSL from https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.14.tar.gz#md5=8579ff3a1d858858acfba5f046a4ddf7(from scrapy->-r requirements.txt (line 44)) Downloading pyOpenSSL-0.14.tar.gz (128kB): 128kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2Fp%2FpyOpenSSL%2FpyOpenSSL-0.14.tar.gz
Running setup.py (path:/home/vern/src/fontbakery/venv/build/pyOpenSSL/setup.py) egg_info for package pyOpenSSL
warning: no previously-included files matching '*.pyc' found anywhere in distribution no previously-included directories found matching 'doc/_build' Downloading/unpacking cssselect>=0.9 (from scrapy->-r requirements.txt (line 44)) Downloading cssselect-0.9.1.tar.gz Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2Fc%2Fcssselect%2Fcssselect-0.9.1.tar.gz
Running setup.py (path:/home/vern/src/fontbakery/venv/build/cssselect/setup.py) egg_info for package cssselect
no previously-included directories found matching 'docs/_build' Downloading/unpacking docopt==0.4.0 (from mandrill->-r requirements.txt (line 49)) Downloading docopt-0.4.0.tar.gz Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2Fd%2Fdocopt%2Fdocopt-0.4.0.tar.gz Running setup.py (path:/home/vern/src/fontbakery/venv/build/docopt/setup.py) egg_info for package docopt
Downloading/unpacking zope.interface>=3.6.0 from https://pypi.python.org/packages/source/z/zope.interface/zope.interface-4.1.1.tar.gz#md5=edcd5f719c5eb2e18894c4d06e29b6c6(from Twisted>=10.0.0->scrapy->-r requirements.txt (line 44)) Downloading zope.interface-4.1.1.tar.gz (864kB): 864kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2Fz%2Fzope.interface%2Fzope.interface-4.1.1.tar.gz
Running setup.py (path:/home/vern/src/fontbakery/venv/build/zope.interface/setup.py) egg_info for package zope.interface
warning: no previously-included files matching '.dll' found anywhere in distribution warning: no previously-included files matching '.pyc' found anywhere in distribution warning: no previously-included files matching '.pyo' found anywhere in distribution warning: no previously-included files matching '.so' found anywhere in distribution Downloading/unpacking cryptography>=0.2.1 (from pyOpenSSL->scrapy->-r requirements.txt (line 44)) Downloading cryptography-0.3.tar.gz (208kB): 208kB downloaded Storing download in cache at /home/vern/.pip_download_cache/https%3A%2F% 2Fpypi.python.org%2Fpackages%2Fsource%2Fc%2Fcryptography%2Fcryptography-0.3.tar.gz
Running setup.py (path:/home/vern/src/fontbakery/venv/build/cryptography/setup.py) egg_info for package cryptography
Installed /home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg
Searching for pycparser Reading https://pypi.python.org/simple/pycparser/ Best match: pycparser 2.10 Downloading https://pypi.python.org/packages/source/p/pycparser/pycparser-2.10.tar.gz#md5=d87aed98c8a9f386aa56d365fe4d515f Processing pycparser-2.10.tar.gz Writing /tmp/easy_install-5BwJID/pycparser-2.10/setup.cfg Running pycparser-2.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-5BwJID/pycparser-2.10/egg-dist-tmp-xbJkHK zip_safe flag not set; analyzing archive contents...
Installed /home/vern/src/fontbakery/venv/build/cryptography/pycparser-2.10-py2.7.egg
building '_Cryptography_cffi_684bb40axf342507b' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cryptography/hazmat/primitives/pycache/_Cryptography_cffi_684bb40axf342507b.c -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_684bb40axf342507b.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_684bb40axf342507b.o -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_684bb40axf342507b.so
building '_Cryptography_cffi_8f86901cxc1767c5a' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cryptography/hazmat/primitives/pycache/_Cryptography_cffi_8f86901cxc1767c5a.c -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_8f86901cxc1767c5a.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_8f86901cxc1767c5a.o -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_8f86901cxc1767c5a.so
building '_Cryptography_cffi_48bbf0ebx93c91939' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cryptography/hazmat/bindings/pycache/_Cryptography_cffi_48bbf0ebx93c91939.c -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/bindings/pycache/cryptography/hazmat/bindings/pycache/_Cryptography_cffi_48bbf0ebx93c91939.o
cryptography/hazmat/bindings/pycache/_Cryptography_cffi_48bbf0ebx93c91939.c:165:25: fatal error: openssl/aes.h: No such file or directory
include <openssl/aes.h>
^ compilation terminated. Traceback (most recent call last): File "
", line 17, in File "/home/vern/src/fontbakery/venv/build/cryptography/setup.py", line 156, in "test": PyTest, File "/usr/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File " ", line 15, in replacement_run File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 186, in find_sources mm.run() File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 246, in run self.add_defaults() File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 282, in add_defaults sdist.add_defaults(self) File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/sdist.py", line 167, in add_defaults build_py = self.get_finalized_command('build_py') File "/usr/lib/python2.7/distutils/cmd.py", line 312, in get_finalized_command cmd_obj.ensure_finalized() File "/usr/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized self.finalize_options() File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/build_py.py", line 26, in finalize_options _build_py.finalize_options(self) File "/usr/lib/python2.7/distutils/command/build_py.py", line 46, in finalize_options ('force', 'force')) File "/usr/lib/python2.7/distutils/cmd.py", line 298, in set_undefined_options src_cmd_obj.ensure_finalized() File "/usr/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized self.finalize_options() File "/home/vern/src/fontbakery/venv/build/cryptography/setup.py", line 75, in finalize_options OpenSSLBinding().ffi.verifier.get_extension(), File "cryptography/hazmat/bindings/openssl/binding.py", line 83, in init self._ensure_ffi_initialized() File "cryptography/hazmat/bindings/openssl/binding.py", line 99, in _ensure_ffi_initialized libraries) File "cryptography/hazmat/bindings/utils.py", line 77, in build_ffi ext_package="cryptography", File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/api.py", line 341, in verify lib = self.verifier.load_library() File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/verifier.py", line 74, in load_library self._compile_module() File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/verifier.py", line 139, in _compile_module outputfilename = ffiplatform.compile(tmpdir, self.get_extension()) File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/ffiplatform.py", line 25, in compile outputfilename = _build(tmpdir, ext) File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/ffiplatform.py", line 50, in _build raise VerificationError('%s: %s' % (e.class.name, e)) cffi.ffiplatform.VerificationError: CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Complete output from command python setup.py egg_info: Installed /home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg
Searching for pycparser
Reading https://pypi.python.org/simple/pycparser/
Best match: pycparser 2.10
Processing pycparser-2.10.tar.gz
Writing /tmp/easy_install-5BwJID/pycparser-2.10/setup.cfg
Running pycparser-2.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-5BwJID/pycparser-2.10/egg-dist-tmp-xbJkHK
zip_safe flag not set; analyzing archive contents...
Installed /home/vern/src/fontbakery/venv/build/cryptography/pycparser-2.10-py2.7.egg
running egg_info
creating pip-egg-info/cryptography.egg-info
writing dependency_links to pip-egg-info/cryptography.egg-info/dependency_links.txt
writing requirements to pip-egg-info/cryptography.egg-info/requires.txt
writing pip-egg-info/cryptography.egg-info/PKG-INFO
writing top-level names to pip-egg-info/cryptography.egg-info/top_level.txt
writing manifest file 'pip-egg-info/cryptography.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
running build_ext
building '_Cryptography_cffi_684bb40axf342507b' extension
creating /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography
creating /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat
creating /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat/primitives
creating /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat/primitives/pycache
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cryptography/hazmat/primitives/pycache/_Cryptography_cffi_684bb40axf342507b.c -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_684bb40axf342507b.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_684bb40axf342507b.o -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_684bb40axf342507b.so
running build_ext
building '_Cryptography_cffi_8f86901cxc1767c5a' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cryptography/hazmat/primitives/pycache/_Cryptography_cffi_8f86901cxc1767c5a.c -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_8f86901cxc1767c5a.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_8f86901cxc1767c5a.o -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/primitives/pycache/_Cryptography_cffi_8f86901cxc1767c5a.so
running build_ext
building '_Cryptography_cffi_48bbf0ebx93c91939' extension
creating /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/bindings/pycache/cryptography
creating /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/bindings/pycache/cryptography/hazmat
creating /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/bindings/pycache/cryptography/hazmat/bindings
creating /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/bindings/pycache/cryptography/hazmat/bindings/pycache
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cryptography/hazmat/bindings/pycache/_Cryptography_cffi_48bbf0ebx93c91939.c -o /home/vern/src/fontbakery/venv/build/cryptography/cryptography/hazmat/bindings/pycache/cryptography/hazmat/bindings/pycache/_Cryptography_cffi_48bbf0ebx93c91939.o
cryptography/hazmat/bindings/pycache/_Cryptography_cffi_48bbf0ebx93c91939.c:165:25: fatal error: openssl/aes.h: No such file or directory
include <openssl/aes.h>
^
compilation terminated.
Traceback (most recent call last):
File "
", line 17, in File "/home/vern/src/fontbakery/venv/build/cryptography/setup.py", line 156, in
"test": PyTest,
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "
", line 15, in replacement_run File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 186, in find_sources
mm.run()
File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 246, in run
self.add_defaults()
File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/egg_info.py", line 282, in add_defaults
sdist.add_defaults(self)
File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/sdist.py", line 167, in add_defaults
build_py = self.get_finalized_command('build_py')
File "/usr/lib/python2.7/distutils/cmd.py", line 312, in get_finalized_command
cmd_obj.ensure_finalized()
File "/usr/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
self.finalize_options()
File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/setuptools/command/build_py.py", line 26, in finalize_options
_build_py.finalize_options(self)
File "/usr/lib/python2.7/distutils/command/build_py.py", line 46, in finalize_options
('force', 'force'))
File "/usr/lib/python2.7/distutils/cmd.py", line 298, in set_undefined_options
src_cmd_obj.ensure_finalized()
File "/usr/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
self.finalize_options()
File "/home/vern/src/fontbakery/venv/build/cryptography/setup.py", line 75, in finalize_options
OpenSSLBinding().ffi.verifier.get_extension(),
File "cryptography/hazmat/bindings/openssl/binding.py", line 83, in init
self._ensure_ffi_initialized()
File "cryptography/hazmat/bindings/openssl/binding.py", line 99, in _ensure_ffi_initialized
libraries)
File "cryptography/hazmat/bindings/utils.py", line 77, in build_ffi
ext_package="cryptography",
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/api.py", line 341, in verify
lib = self.verifier.load_library()
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/verifier.py", line 74, in load_library
self._compile_module()
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/verifier.py", line 139, in _compile_module
outputfilename = ffiplatform.compile(tmpdir, self.get_extension())
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/ffiplatform.py", line 25, in compile
outputfilename = _build(tmpdir, ext)
File "/home/vern/src/fontbakery/venv/build/cryptography/cffi-0.8.2-py2.7-linux-x86_64.egg/cffi/ffiplatform.py", line 50, in _build
raise VerificationError('%s: %s' % (e.class.name, e))
cffi.ffiplatform.VerificationError: CompileError: 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/vern/src/fontbakery/venv/build/cryptography Storing debug log for failure in /home/vern/.pip/pip.log make: *\ [setup] Error 1 vern@vern-X300:~/src/fontbakery$
ā Reply to this email directly or view it on GitHub< https://github.com/googlefonts/fontbakery/issues/301> .
Best Regards,
Vitaly Volkov Python Developer
ā Reply to this email directly or view it on GitHubhttps://github.com/googlefonts/fontbakery/issues/301#issuecomment-41180805 .
now runs :) thanks
actually it doesn't run - new error
make init gives me;
vern@vern-ThinkCentre-M90:~/src/fontbakery$ make init;
. venv/bin/activate; python init.py
<SQLAlchemy engine='postgresql://postgres:postgres@localhost/bakery'>
Traceback (most recent call last):
File "init.py", line 29, in <module>
db.drop_all()
File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 864, in drop_all
self._execute_for_all_tables(app, bind, 'drop_all')
File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 848, in _execute_for_all_tables
op(bind=self.get_engine(app, bind), tables=tables)
File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 797, in get_engine
return connector.get_engine()
File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py", line 473, in get_engine
self._engine = rv = sqlalchemy.create_engine(info, **options)
File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/sqlalchemy/engine/__init__.py", line 344, in create_engine
return strategy.create(*args, **kwargs)
File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/sqlalchemy/engine/strategies.py", line 73, in create
dbapi = dialect_cls.dbapi(**dbapi_args)
File "/home/vern/src/fontbakery/venv/local/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/psycopg2.py", line 401, in dbapi
import psycopg2
ImportError: No module named psycopg2
make: *** [init] Error 1
vern@vern-ThinkCentre-M90:~/src/fontbakery$
i also noted that the doc need updating to reflect fact that local.cfg etc files are now in the bakery directory.
also; VENVRUN=virtualenv make setup is dependent on python-dev installed on Ubuntu
Thank you @vernnobile I have updated INSTALL.md with that requirements for Ubuntu.
Fresh + clean Ubuntu 14.04 distro. 'VENVRUN=virtualenv make setup;' is failing with;
pip.log says;
full terminal output below;