Skip to content

Instantly share code, notes, and snippets.

@BlackstoneEngineering
Created October 20, 2015 03:49
Show Gist options
  • Save BlackstoneEngineering/9e1f4613c2401ad1a562 to your computer and use it in GitHub Desktop.
Save BlackstoneEngineering/9e1f4613c2401ad1a562 to your computer and use it in GitHub Desktop.
pip install -U yotta on Msys2 - libssl error
ImaUsr@TheMachine MSYS ~
$ pip2 --version
pip 7.1.2 from /usr/lib/python2.7/site-packages (python 2.7)
ImaUsr@TheMachine MSYS ~
$ python2 --version
Python 2.7.10
ImaUsr@TheMachine MSYS ~
$ pip2 install -U yotta
Collecting yotta
Requirement already up-to-date: semantic-version<3,>=2.3.1 in /usr/lib/python2.7/site-packages (from yotta)
Requirement already up-to-date: Jinja2<3,>=2.7.0 in /usr/lib/python2.7/site-packages (from yotta)
Requirement already up-to-date: argcomplete<1.0,>=0.8.0 in /usr/lib/python2.7/site-packages (from yotta)
Requirement already up-to-date: jsonschema<3.0,>=2.4.0 in /usr/lib/python2.7/site-packages (from yotta)
Collecting cryptography>=0.8 (from yotta)
Using cached cryptography-1.0.2.tar.gz
Collecting colorama<0.4,>=0.3 (from yotta)
Collecting requests[security]<3,>=2.4.3 (from yotta)
Using cached requests-2.8.1-py2.py3-none-any.whl
Collecting PyGithub<2,>=1.25 (from yotta)
Collecting PyJWT<2.0,>=1.0 (from yotta)
Using cached PyJWT-1.4.0-py2.py3-none-any.whl
Collecting mbed-test-wrapper<0.1.0,>=0.0.2 (from yotta)
Collecting valinor<1.0,>=0.0.0 (from yotta)
Collecting jsonpointer<=2.0,>=1.9 (from yotta)
Using cached jsonpointer-1.9-py2-none-any.whl
Collecting hgapi<2,>=1.7 (from yotta)
Collecting intelhex<3.0,>=2.0 (from yotta)
Using cached intelhex-2.0-py2.py3-none-any.whl
Collecting pathlib<1.1,>=1.0.1 (from yotta)
Requirement already up-to-date: MarkupSafe in /usr/lib/python2.7/site-packages (from Jinja2<3,>=2.7.0->yotta)
Requirement already up-to-date: functools32 in /usr/lib/python2.7/site-packages (from jsonschema<3.0,>=2.4.0->yotta)
Requirement already up-to-date: idna>=2.0 in /usr/lib/python2.7/site-packages (from cryptography>=0.8->yotta)
Requirement already up-to-date: pyasn1>=0.1.8 in /usr/lib/python2.7/site-packages (from cryptography>=0.8->yotta)
Requirement already up-to-date: six>=1.4.1 in /usr/lib/python2.7/site-packages (from cryptography>=0.8->yotta)
Requirement already up-to-date: setuptools in /usr/lib/python2.7/site-packages (from cryptography>=0.8->yotta)
Requirement already up-to-date: enum34 in /usr/lib/python2.7/site-packages (from cryptography>=0.8->yotta)
Requirement already up-to-date: ipaddress in /usr/lib/python2.7/site-packages (from cryptography>=0.8->yotta)
Collecting cffi>=1.1.0 (from cryptography>=0.8->yotta)
Using cached cffi-1.2.1.tar.gz
Collecting pyOpenSSL (from requests[security]<3,>=2.4.3->yotta)
Using cached pyOpenSSL-0.15.1-py2.py3-none-any.whl
Collecting ndg-httpsclient (from requests[security]<3,>=2.4.3->yotta)
Collecting project-generator<0.8.0,>=0.7.0 (from valinor<1.0,>=0.0.0->yotta)
Collecting pyOCD<1.0,>=0.3 (from valinor<1.0,>=0.0.0->yotta)
Collecting pyyaml<4,>=3 (from valinor<1.0,>=0.0.0->yotta)
Requirement already up-to-date: pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.1.0->cryptography>=0.8->yotta)
Collecting argparse (from project-generator<0.8.0,>=0.7.0->valinor<1.0,>=0.0.0->yotta)
Using cached argparse-1.4.0-py2.py3-none-any.whl
Collecting xmltodict (from project-generator<0.8.0,>=0.7.0->valinor<1.0,>=0.0.0->yotta)
Collecting project-generator-definitions<0.2.0,>=0.1.0 (from project-generator<0.8.0,>=0.7.0->valinor<1.0,>=0.0.0->yotta)
Building wheels for collected packages: cryptography, cffi
Running setup.py bdist_wheel for cryptography
Complete output from command /usr/bin/python2 -c "import setuptools;__file__='/tmp/pip-build-UhZDDV/cryptography/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmprZuRt2pip-wheel-:
c/_cffi_backend.c:13: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-UhZDDV/cryptography/setup.py", line 313, 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 "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 268, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 313, in fetch_build_eggs
replace_conflicting=True,
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 836, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1081, in best_match
return self.obtain(req, installer)
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1093, in obtain
return installer(requirement)
File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 380, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 638, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 668, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 851, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1079, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1067, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for cryptography
Running setup.py bdist_wheel for cffi
Complete output from command /usr/bin/python2 -c "import setuptools;__file__='/tmp/pip-build-UhZDDV/cffi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp5yq_n4pip-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.msys-2.3.0-x86_64-2.7
creating build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/api.py -> build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/commontypes.py -> build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/cparser.py -> build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/gc_weakref.py -> build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/lock.py -> build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/model.py -> build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/recompiler.py -> build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/verifier.py -> build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/__init__.py -> build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.msys-2.3.0-x86_64-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.msys-2.3.0-x86_64-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.msys-2.3.0-x86_64-2.7
creating build/temp.msys-2.3.0-x86_64-2.7/c
gcc -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -DNDEBUG -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -DNDEBUG -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.msys-2.3.0-x86_64-2.7/c/_cffi_backend.o
c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for cffi
Failed to build cryptography cffi
Installing collected packages: cffi, cryptography, colorama, pyOpenSSL, ndg-httpsclient, requests, PyGithub, PyJWT, mbed-test-wrapper, argparse, xmltodict, pyyaml, project-generator-definitions, project-generator, intelhex, pyOCD, valinor, jsonpointer, hgapi, pathlib, yotta
Running setup.py install for cffi
Complete output from command /usr/bin/python2 -c "import setuptools, tokenize;__file__='/tmp/pip-build-UhZDDV/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8Omwwz-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
running build_ext
building '_cffi_backend' extension
gcc -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -DNDEBUG -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -DNDEBUG -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.msys-2.3.0-x86_64-2.7/c/_cffi_backend.o
c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python2 -c "import setuptools, tokenize;__file__='/tmp/pip-build-UhZDDV/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-8Omwwz-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-UhZDDV/cffi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment