high-night-61226
11/28/2018, 7:25 PMc/_cffi_backend.c:15:10: fatal error: 'ffi.h' file not found
#include <ffi.h>
^
1 error generated.
It has occurred on a coworkers machine after upgrading to Mac Mojave (which we are not currently on). We have attempted to install libffi
through homebrew on the machinealoof-angle-91616
11/28/2018, 7:26 PMcffi
package?high-night-61226
11/28/2018, 7:27 PMwitty-crayon-22786
11/28/2018, 7:27 PMecho "$GCC"
set to anythingaloof-angle-91616
11/28/2018, 7:27 PMwitty-crayon-22786
11/28/2018, 7:28 PMaloof-angle-91616
11/28/2018, 7:28 PMcffi
will affect the one you have there (noting stu's comment)witty-crayon-22786
11/28/2018, 7:28 PMcffi
is a python package, right?aloof-angle-91616
11/28/2018, 7:28 PMpip install cffi
should workwitty-crayon-22786
11/28/2018, 7:28 PMaloof-angle-91616
11/28/2018, 7:28 PMhigh-night-61226
11/28/2018, 7:29 PMaloof-angle-91616
11/28/2018, 7:29 PMwitty-crayon-22786
11/28/2018, 7:30 PMaloof-angle-91616
11/28/2018, 7:30 PMcffi
definitely needs to be installed so if that's not installed it needs to be done anywayhigh-night-61226
11/28/2018, 7:30 PMcffi
on my machine and do not have this problem: $ pip freeze | ag cffi
cffi==1.10.0
aloof-angle-91616
11/28/2018, 7:30 PMhigh-night-61226
11/28/2018, 7:31 PMaloof-angle-91616
11/28/2018, 7:31 PMhigh-night-61226
11/28/2018, 7:31 PMaloof-angle-91616
11/28/2018, 7:31 PM/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi/ffi.h
on my machinealoof-angle-91616
11/28/2018, 7:32 PMxcode-select --install
yet?aloof-angle-91616
11/28/2018, 7:32 PMwitty-crayon-22786
11/28/2018, 7:32 PMwitty-crayon-22786
11/28/2018, 7:32 PM$ pip list
Package Version
---------- -------
coverage 3.7.1
pip 18.0
psutil 2.1.1
setuptools 40.0.0
virtualenv 16.0.0
wheel 0.31.1
high-night-61226
11/28/2018, 7:33 PM$ ls /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ffi/
ffi.h ffi_common.h fficonfig.h ffitarget.h ppc-darwin.h ppc-ffitarget.h x86-ffitarget.h
We tried xcode-select --install
, but it instructed us to update/upgrade from XCode. I will try that before installing cffi
through pipaloof-angle-91616
11/28/2018, 7:33 PMaloof-angle-91616
11/28/2018, 7:33 PMaloof-angle-91616
11/28/2018, 7:33 PMaloof-angle-91616
11/28/2018, 7:34 PMcffi
is in the 3rdparty/python/requirements.txt
but i have had to install it several times on several machines in order for it to work (this may be a linux only issue -- therefore it wouldn't be relevant here)witty-crayon-22786
11/28/2018, 7:34 PMffi-devel
or somethingaloof-angle-91616
11/28/2018, 7:35 PMhigh-night-61226
11/28/2018, 7:38 PMaloof-angle-91616
11/28/2018, 7:39 PM