error: command 'cc' failed with exit status 1
Today I wanted to play around hashing passwords
and installing bcrypt
and got the below errors and the solution to this is as simple as running
xcode-select --install
and then pip install using elevated privilages
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c c/_cffi_backend.c -o build/temp.macosx-10.9-intel-2.7/c/_cffi_backend.o
c/_cffi_backend.c:13:10: fatal error: 'ffi.h' file not found
#include <ffi.h>
^
1 error generated.
error: command 'cc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip_build_venum/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip-ShT5xS-record/install-record.txt --single-version-externally-managed --compile:
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-intel-2.7
creating build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/__init__.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/api.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/commontypes.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/cparser.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/gc_weakref.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/lock.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/model.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.macosx-10.9-intel-2.7/cffi
copying cffi/verifier.py -> build/lib.macosx-10.9-intel-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.macosx-10.9-intel-2.7
creating build/temp.macosx-10.9-intel-2.7/c
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -DUSE__THREAD -I/usr/include/ffi -I/usr/include/libffi -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c c/_cffi_backend.c -o build/temp.macosx-10.9-intel-2.7/c/_cffi_backend.o
c/_cffi_backend.c:13:10: fatal error: 'ffi.h' file not found
#include <ffi.h>
^
1 error generated.
error: command 'cc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip_build_venum/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip-ShT5xS-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip_build_venum/cffi
Storing debug log for failure in /var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/tmpThyfxE
✘ ⮀ ⭠ venu ⮀ ~/devops/devops-101/part-one ⮀
» xcode-select --install
xcode-select: note: install requested for command line developer tools
» pip install bcrypt
Downloading/unpacking bcrypt
Downloading bcrypt-1.1.0.tar.gz
Running setup.py (path:/private/var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip_build_venum/bcrypt/setup.py) egg_info for package bcrypt
Downloading/unpacking cffi>=0.8 (from bcrypt)
Downloading cffi-0.8.6.tar.gz (196kB): 196kB downloaded
Running setup.py (path:/private/var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip_build_venum/cffi/setup.py) egg_info for package cffi
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Requirement already satisfied (use --upgrade to upgrade): six>=1.4.1 in /Library/Python/2.7/site-packages (from bcrypt)
Downloading/unpacking pycparser (from cffi>=0.8->bcrypt)
Downloading pycparser-2.10.tar.gz (206kB): 206kB downloaded
Running setup.py (path:/private/var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip_build_venum/pycparser/setup.py) egg_info for package pycparser
Installing collected packages: bcrypt, cffi, pycparser
Running setup.py install for bcrypt
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:270:25: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
int base_name_len = strlen(ct_base->ct_name);
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:271:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
int extra_name_len = strlen(extra_text);
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:880:48: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = read_raw_signed_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:889:50: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = read_raw_unsigned_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:899:58: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
double value = read_raw_float_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:935:71: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = (unsigned PY_LONG_LONG)read_raw_signed_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:949:50: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = read_raw_unsigned_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1298:48: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(buf, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1299:52: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if (value != read_raw_signed_data(buf, ct->ct_size))
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1301:49: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1311:48: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(buf, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1312:54: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if (value != read_raw_unsigned_data(buf, ct->ct_size))
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1314:49: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1333:51: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_float_data(data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1428:53: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
rawfielddata = read_raw_unsigned_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1430:52: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(data, rawfielddata, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1450:21: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
align = ct->ct_length;
~ ~~~~^~~~~~~~~
c/_cffi_backend.c:1703:68: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = (long)read_raw_signed_data(cd->c_data, cd->c_type->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:1752:65: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = read_raw_float_data(cd->c_data, cd->c_type->ct_size);
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:2398:16: warning: implicit conversion loses integer precision: 'long' to 'ffi_abi' (aka 'enum ffi_abi') [-Wshorten-64-to-32]
fabi = PyInt_AS_LONG(PyTuple_GET_ITEM(signature, 0));
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/intobject.h:52:51: note: expanded from macro 'PyInt_AS_LONG'
#define PyInt_AS_LONG(op) (((PyIntObject *)(op))->ob_ival)
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:2886:56: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
cd->c_type->ct_size) != 0.0;
~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:2980:55: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(cd->c_data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:3083:61: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_float_data(cd->c_data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:3404:38: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
name_size = strlen(ptypes->name) + 1;
~ ~~~~~~~~~~~~~~~~~~~~~^~~
c/_cffi_backend.c:3422:28: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
td->ct_name_position = strlen(td->ct_name);
~ ^~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:3541:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
int namelen = strlen(name);
~~~~~~~ ^~~~~~~~~~~~
c/_cffi_backend.c:3858:53: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
bits_already_occupied = boffset - (field_offset_bytes * 8);
~ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:3899:53: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
prev_bitfield_size = ftype->ct_size;
~ ~~~~~~~^~~~~~~
c/_cffi_backend.c:3907:62: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
bitshift = 8 * ftype->ct_size - fbitsize - bitshift;
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
c/_cffi_backend.c:4186:37: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
fb->fct->ct_name_position = i;
~ ^
c/_cffi_backend.c:4201:40: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
fb_cat_name(fb, farg->ct_name, strlen(farg->ct_name));
~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:4214:70: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
strlen(fresult->ct_name) - fresult->ct_name_position + 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
c/_cffi_backend.c:4234:30: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
fct = ctypedescr_new(fb->nb_bytes);
~~~~~~~~~~~~~~ ~~~~^~~~~~~~
c/_cffi_backend.c:4284:56: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'unsigned int' [-Wshorten-64-to-32]
if (ffi_prep_cif(&cif_descr->cif, fabi, funcbuffer.nargs,
~~~~~~~~~~~~ ~~~~~~~~~~~^~~~~
c/_cffi_backend.c:4680:31: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
name_size = strlen(ename) + 1;
~ ~~~~~~~~~~~~~~^~~
35 warnings generated.
Installed /private/var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip_build_venum/bcrypt/cffi-0.8.6-py2.7-macosx-10.9-intel.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 /var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/easy_install-krihEq/pycparser-2.10/setup.cfg
Running pycparser-2.10/setup.py -q bdist_egg --dist-dir /var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/easy_install-krihEq/pycparser-2.10/egg-dist-tmp-zQGwPt
zip_safe flag not set; analyzing archive contents...
Installed /private/var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip_build_venum/bcrypt/pycparser-2.10-py2.7.egg
building '_bcrypt_cffi_6b390667x92a686ca' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -Ibcrypt/crypt_blowfish-1.3 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c bcrypt/__pycache__/_bcrypt_cffi_6b390667x92a686ca.c -o build/temp.macosx-10.9-intel-2.7/bcrypt/__pycache__/_bcrypt_cffi_6b390667x92a686ca.o
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -Ibcrypt/crypt_blowfish-1.3 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c bcrypt/crypt_blowfish-1.3/crypt_blowfish.c -o build/temp.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3/crypt_blowfish.o
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -Ibcrypt/crypt_blowfish-1.3 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c bcrypt/crypt_blowfish-1.3/crypt_gensalt.c -o build/temp.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3/crypt_gensalt.o
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -Ibcrypt/crypt_blowfish-1.3 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c bcrypt/crypt_blowfish-1.3/wrapper.c -o build/temp.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3/wrapper.o
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.9-intel-2.7/bcrypt/__pycache__/_bcrypt_cffi_6b390667x92a686ca.o build/temp.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3/crypt_blowfish.o build/temp.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3/crypt_gensalt.o build/temp.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3/wrapper.o -o build/lib.macosx-10.9-intel-2.7/_bcrypt_cffi_6b390667x92a686ca.so
error: /Library/Python/2.7/site-packages/_bcrypt_cffi_6b390667x92a686ca.so: Permission denied
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip_build_venum/bcrypt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip-albluB-record/install-record.txt --single-version-externally-managed --compile:
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
c/_cffi_backend.c:270:25: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
int base_name_len = strlen(ct_base->ct_name);
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:271:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
int extra_name_len = strlen(extra_text);
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:880:48: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = read_raw_signed_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:889:50: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = read_raw_unsigned_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:899:58: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
double value = read_raw_float_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:935:71: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = (unsigned PY_LONG_LONG)read_raw_signed_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:949:50: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = read_raw_unsigned_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1298:48: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(buf, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1299:52: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if (value != read_raw_signed_data(buf, ct->ct_size))
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1301:49: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1311:48: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(buf, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1312:54: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
if (value != read_raw_unsigned_data(buf, ct->ct_size))
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1314:49: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1333:51: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_float_data(data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1428:53: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
rawfielddata = read_raw_unsigned_data(data, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1430:52: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(data, rawfielddata, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:1450:21: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
align = ct->ct_length;
~ ~~~~^~~~~~~~~
c/_cffi_backend.c:1703:68: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = (long)read_raw_signed_data(cd->c_data, cd->c_type->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:1752:65: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
value = read_raw_float_data(cd->c_data, cd->c_type->ct_size);
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:2398:16: warning: implicit conversion loses integer precision: 'long' to 'ffi_abi' (aka 'enum ffi_abi') [-Wshorten-64-to-32]
fabi = PyInt_AS_LONG(PyTuple_GET_ITEM(signature, 0));
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/intobject.h:52:51: note: expanded from macro 'PyInt_AS_LONG'
#define PyInt_AS_LONG(op) (((PyIntObject *)(op))->ob_ival)
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:2886:56: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
cd->c_type->ct_size) != 0.0;
~~~~~~~~~~~~^~~~~~~
c/_cffi_backend.c:2980:55: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_integer_data(cd->c_data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:3083:61: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
write_raw_float_data(cd->c_data, value, ct->ct_size);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~~~
c/_cffi_backend.c:3404:38: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
name_size = strlen(ptypes->name) + 1;
~ ~~~~~~~~~~~~~~~~~~~~~^~~
c/_cffi_backend.c:3422:28: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
td->ct_name_position = strlen(td->ct_name);
~ ^~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:3541:19: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
int namelen = strlen(name);
~~~~~~~ ^~~~~~~~~~~~
c/_cffi_backend.c:3858:53: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
bits_already_occupied = boffset - (field_offset_bytes * 8);
~ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:3899:53: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
prev_bitfield_size = ftype->ct_size;
~ ~~~~~~~^~~~~~~
c/_cffi_backend.c:3907:62: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
bitshift = 8 * ftype->ct_size - fbitsize - bitshift;
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
c/_cffi_backend.c:4186:37: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
fb->fct->ct_name_position = i;
~ ^
c/_cffi_backend.c:4201:40: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
fb_cat_name(fb, farg->ct_name, strlen(farg->ct_name));
~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
c/_cffi_backend.c:4214:70: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
strlen(fresult->ct_name) - fresult->ct_name_position + 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
c/_cffi_backend.c:4234:30: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
fct = ctypedescr_new(fb->nb_bytes);
~~~~~~~~~~~~~~ ~~~~^~~~~~~~
c/_cffi_backend.c:4284:56: warning: implicit conversion loses integer precision: 'Py_ssize_t' (aka 'long') to 'unsigned int' [-Wshorten-64-to-32]
if (ffi_prep_cif(&cif_descr->cif, fabi, funcbuffer.nargs,
~~~~~~~~~~~~ ~~~~~~~~~~~^~~~~
c/_cffi_backend.c:4680:31: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
name_size = strlen(ename) + 1;
~ ~~~~~~~~~~~~~~^~~
35 warnings generated.
Installed /private/var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip_build_venum/bcrypt/cffi-0.8.6-py2.7-macosx-10.9-intel.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 /var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/easy_install-krihEq/pycparser-2.10/setup.cfg
Running pycparser-2.10/setup.py -q bdist_egg --dist-dir /var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/easy_install-krihEq/pycparser-2.10/egg-dist-tmp-zQGwPt
zip_safe flag not set; analyzing archive contents...
Installed /private/var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip_build_venum/bcrypt/pycparser-2.10-py2.7.egg
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-intel-2.7
creating build/lib.macosx-10.9-intel-2.7/bcrypt
copying bcrypt/__about__.py -> build/lib.macosx-10.9-intel-2.7/bcrypt
copying bcrypt/__init__.py -> build/lib.macosx-10.9-intel-2.7/bcrypt
creating build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
copying bcrypt/crypt_blowfish-1.3/crypt.3 -> build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
copying bcrypt/crypt_blowfish-1.3/crypt.h -> build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
copying bcrypt/crypt_blowfish-1.3/crypt_blowfish.c -> build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
copying bcrypt/crypt_blowfish-1.3/crypt_blowfish.h -> build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
copying bcrypt/crypt_blowfish-1.3/crypt_gensalt.c -> build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
copying bcrypt/crypt_blowfish-1.3/crypt_gensalt.h -> build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
copying bcrypt/crypt_blowfish-1.3/glibc-2.1.3-crypt.diff -> build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
copying bcrypt/crypt_blowfish-1.3/glibc-2.14-crypt.diff -> build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
copying bcrypt/crypt_blowfish-1.3/glibc-2.3.6-crypt.diff -> build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
copying bcrypt/crypt_blowfish-1.3/LINKS -> build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
copying bcrypt/crypt_blowfish-1.3/Makefile -> build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
copying bcrypt/crypt_blowfish-1.3/ow-crypt.h -> build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
copying bcrypt/crypt_blowfish-1.3/PERFORMANCE -> build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
copying bcrypt/crypt_blowfish-1.3/README -> build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
copying bcrypt/crypt_blowfish-1.3/wrapper.c -> build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
copying bcrypt/crypt_blowfish-1.3/x86.S -> build/lib.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
running build_ext
building '_bcrypt_cffi_6b390667x92a686ca' extension
creating build/temp.macosx-10.9-intel-2.7
creating build/temp.macosx-10.9-intel-2.7/bcrypt
creating build/temp.macosx-10.9-intel-2.7/bcrypt/__pycache__
creating build/temp.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -Ibcrypt/crypt_blowfish-1.3 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c bcrypt/__pycache__/_bcrypt_cffi_6b390667x92a686ca.c -o build/temp.macosx-10.9-intel-2.7/bcrypt/__pycache__/_bcrypt_cffi_6b390667x92a686ca.o
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -Ibcrypt/crypt_blowfish-1.3 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c bcrypt/crypt_blowfish-1.3/crypt_blowfish.c -o build/temp.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3/crypt_blowfish.o
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -Ibcrypt/crypt_blowfish-1.3 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c bcrypt/crypt_blowfish-1.3/crypt_gensalt.c -o build/temp.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3/crypt_gensalt.o
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -Ibcrypt/crypt_blowfish-1.3 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c bcrypt/crypt_blowfish-1.3/wrapper.c -o build/temp.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3/wrapper.o
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.9-intel-2.7/bcrypt/__pycache__/_bcrypt_cffi_6b390667x92a686ca.o build/temp.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3/crypt_blowfish.o build/temp.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3/crypt_gensalt.o build/temp.macosx-10.9-intel-2.7/bcrypt/crypt_blowfish-1.3/wrapper.o -o build/lib.macosx-10.9-intel-2.7/_bcrypt_cffi_6b390667x92a686ca.so
running install_lib
copying build/lib.macosx-10.9-intel-2.7/_bcrypt_cffi_6b390667x92a686ca.so -> /Library/Python/2.7/site-packages
error: /Library/Python/2.7/site-packages/_bcrypt_cffi_6b390667x92a686ca.so: Permission denied
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip_build_venum/bcrypt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip-albluB-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/pip_build_venum/bcrypt
Storing debug log for failure in /var/folders/fh/vx707jm53kbcq3b_c3gw_m6w0000gp/T/tmpzq4GXz