treverhines / RBF

Python package containing the tools necessary for radial basis function (RBF) applications
MIT License
215 stars 50 forks source link

Install trouble with gcc #4

Closed logan-nc closed 6 years ago

logan-nc commented 6 years ago

Hi @treverhines. I'm excited to try out your RBF package, but am having trouble with the install step.

The error:

nlogan-lt1:RBF nlogan$ python setup.py install
Compiling rbf/halton.pyx because it changed.
Compiling rbf/misc/bspline.pyx because it changed.
Compiling rbf/geometry.pyx because it changed.
Compiling rbf/poly.pyx because it changed.
[1/4] Cythonizing rbf/geometry.pyx
[2/4] Cythonizing rbf/halton.pyx
[3/4] Cythonizing rbf/misc/bspline.pyx
[4/4] Cythonizing rbf/poly.pyx
running install
running bdist_egg
running egg_info
creating RBF.egg-info
writing RBF.egg-info/PKG-INFO
writing top-level names to RBF.egg-info/top_level.txt
writing dependency_links to RBF.egg-info/dependency_links.txt
writing manifest file 'RBF.egg-info/SOURCES.txt'
reading manifest file 'RBF.egg-info/SOURCES.txt'
writing manifest file 'RBF.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.9-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-2.7
creating build/lib.macosx-10.9-x86_64-2.7/rbf
copying rbf/__init__.py -> build/lib.macosx-10.9-x86_64-2.7/rbf
copying rbf/basis.py -> build/lib.macosx-10.9-x86_64-2.7/rbf
copying rbf/domain.py -> build/lib.macosx-10.9-x86_64-2.7/rbf
copying rbf/fd.py -> build/lib.macosx-10.9-x86_64-2.7/rbf
copying rbf/fdbuild.py -> build/lib.macosx-10.9-x86_64-2.7/rbf
copying rbf/gauss.py -> build/lib.macosx-10.9-x86_64-2.7/rbf
copying rbf/interpolate.py -> build/lib.macosx-10.9-x86_64-2.7/rbf
copying rbf/linalg.py -> build/lib.macosx-10.9-x86_64-2.7/rbf
copying rbf/mp.py -> build/lib.macosx-10.9-x86_64-2.7/rbf
copying rbf/nodes.py -> build/lib.macosx-10.9-x86_64-2.7/rbf
copying rbf/stencil.py -> build/lib.macosx-10.9-x86_64-2.7/rbf
copying rbf/utils.py -> build/lib.macosx-10.9-x86_64-2.7/rbf
creating build/lib.macosx-10.9-x86_64-2.7/rbf/misc
copying rbf/misc/__init__.py -> build/lib.macosx-10.9-x86_64-2.7/rbf/misc
copying rbf/misc/filter.py -> build/lib.macosx-10.9-x86_64-2.7/rbf/misc
copying rbf/misc/formulation.py -> build/lib.macosx-10.9-x86_64-2.7/rbf/misc
copying rbf/misc/integrate.py -> build/lib.macosx-10.9-x86_64-2.7/rbf/misc
running build_ext
building 'rbf.halton' extension
creating build/temp.macosx-10.9-x86_64-2.7
creating build/temp.macosx-10.9-x86_64-2.7/rbf
gcc -fno-strict-aliasing -I/Users/nlogan/Code/miniconda2/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include -I/Users/nlogan/Code/miniconda2/include/python2.7 -c rbf/halton.c -o build/temp.macosx-10.9-x86_64-2.7/rbf/halton.o
In file included from /Users/nlogan/Code/miniconda2/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/syslimits.h:7:0,
                 from /Users/nlogan/Code/miniconda2/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:34,
                 from /Users/nlogan/Code/miniconda2/include/python2.7/Python.h:19,
                 from rbf/halton.c:23:
/Users/nlogan/Code/miniconda2/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
 #include_next <limits.h>  /* recurse down to the real one */
                                                             ^
compilation terminated.
error: command 'gcc' failed with exit status 1

Background: I use conda, and got gcc through conda after an initial fail using whatever other gcc I had before (same error). My conda list is:

nlogan-lt1:RBF nlogan$ conda list
# packages in environment at /Users/nlogan/Code/miniconda2:
#
# Name                    Version                   Build  Channel
absl-py                   0.2.2                      py_0    conda-forge
alabaster                 0.7.11                   py27_2    conda-forge
anaconda-client           1.6.14                     py_0    conda-forge
appnope                   0.1.0                    py27_0    conda-forge
apptools                  4.4.0                    py27_0    conda-forge
asn1crypto                0.24.0                   py27_0    conda-forge
asteval                   0.9.12                   py27_0    conda-forge
astor                     0.6.2                      py_0    conda-forge
astropy                   2.0.7                    py27_1    conda-forge
atomicwrites              1.1.5                    py27_0    conda-forge
attrs                     18.1.0                     py_1    conda-forge
babel                     2.5.3                    py27_0    conda-forge
backports                 1.0                      py27_1    conda-forge
backports.functools_lru_cache 1.5                      py27_0    conda-forge
backports.shutil_get_terminal_size 1.0.0                      py_3    conda-forge
backports.weakref         1.0rc1                   py27_1    conda-forge
backports_abc             0.5                      py27_0    conda-forge
beautifulsoup4            4.6.0                    py27_0    conda-forge
bibtexparser              1.0.1                    py27_0    conda-forge
blas                      1.1                    openblas    conda-forge
bleach                    1.5.0                    py27_0    conda-forge
blosc                     1.14.0                        1    conda-forge
bokeh                     0.12.16                  py27_0    conda-forge
boto3                     1.7.48                     py_0    conda-forge
botocore                  1.10.48                    py_0    conda-forge
bottleneck                1.2.1            py27h7eb728f_1    conda-forge
bzip2                     1.0.6                         1    conda-forge
ca-certificates           2018.4.16                     0    conda-forge
certifi                   2018.4.16                py27_0    conda-forge
cffi                      1.11.5                   py27_0    conda-forge
cftime                    1.0.0                    py27_0    conda-forge
chaospy                   2.3.2                      py_0    conda-forge
chardet                   3.0.4                    py27_0    conda-forge
clangdev                  6.0.0                 default_0    conda-forge
click                     6.7                        py_1    conda-forge
cloog                     0.18.0                        0
cloudpickle               0.5.3                      py_0    conda-forge
clyent                    1.2.2                    py27_0    conda-forge
conda                     4.5.8                    py27_1    conda-forge
conda-build               3.10.9                   py27_0    conda-forge
conda-env                 2.6.0                         0    conda-forge
conda-verify              2.0.0                    py27_0    conda-forge
configobj                 5.0.6                    py27_0
contextlib2               0.5.5                    py27_1    conda-forge
corner                    2.0.1                    py27_0    conda-forge
cryptography              2.2.1                    py27_0    conda-forge
curl                      7.60.0               h93b3f91_0    conda-forge
cycler                    0.10.0                   py27_0    conda-forge
cyordereddict             1.0.0                    py27_1    conda-forge
Cython                    0.28.3                    <pip>
cytoolz                   0.9.0.1                  py27_0    conda-forge
dask                      0.17.5                     py_0    conda-forge
dask-core                 0.17.5                     py_0    conda-forge
decorator                 4.3.0                      py_0    conda-forge
dicttoxml                 1.7.4                    py27_0    conda-forge
dill                      0.2.8.2                  py27_0    conda-forge
distributed               1.21.8                   py27_0    conda-forge
docutils                  0.14                     py27_0    conda-forge
emcee                     2.2.1                    py27_3    conda-forge
enum34                    1.1.6                    py27_1    conda-forge
envisage                  4.5.1                    py27_0    conda-forge
expat                     2.2.5                         0    conda-forge
fann2                     2.2.0                         0    conda-forge
filelock                  3.0.4                    py27_0    conda-forge
fortranformat             0.2.5                     <pip>
fortranformat             0.2.5                      py_0    conda-forge
freetds                   1.00.44                       2    conda-forge
freetype                  2.8.1                         0    conda-forge
funcsigs                  1.0.2                      py_2    conda-forge
functools32               3.2.3.2                  py27_2    conda-forge
future                    0.16.0                   py27_0    conda-forge
futures                   3.2.0                    py27_0    conda-forge
gast                      0.2.0                      py_0    conda-forge
gcc                       4.8.5                         8
geos                      3.6.2                hfc679d8_2    conda-forge
git                       2.18.0                        0    conda-forge
glob2                     0.6                        py_0    conda-forge
gmp                       6.1.2                hfc679d8_0    conda-forge
gpr1d                     1.0.1                    py27_0    omfit
gpr1dfusion               1.0.1                      py_0    aaronkho
gptools                   0.2.3            py27h7eb728f_0    conda-forge
grpcio                    1.12.1           py27hd9629dc_0
h5netcdf                  0.6.1                      py_0    conda-forge
h5py                      2.8.0            py27h470a237_0    conda-forge
hdf4                      4.2.13                        0    conda-forge
hdf5                      1.10.1                        2    conda-forge
heapdict                  1.0.0                    py27_0    conda-forge
html5lib                  0.9999999                py27_0    conda-forge
icu                       58.2                 hfc679d8_0    conda-forge
idna                      2.7                      py27_0    conda-forge
imagesize                 1.0.0                    py27_0    conda-forge
imbalanced-learn          0.3.3                      py_0    conda-forge
intel-openmp              2018.0.3                      0
ipaddress                 1.0.22                     py_1    conda-forge
ipython                   5.7.0                    py27_0    conda-forge
ipython_genutils          0.2.0                    py27_0    conda-forge
isl                       0.12.2                        1
jedi                      0.12.0                   py27_0    conda-forge
jinja2                    2.10                     py27_0    conda-forge
jmespath                  0.9.3                    py27_0    conda-forge
jpeg                      9b                            2    conda-forge
jsoncpp                   1.8.1                h2d50403_1    conda-forge
jsonschema                2.6.0                    py27_1    conda-forge
jupyter_core              4.4.0                      py_0    conda-forge
kiwisolver                1.0.1                    py27_1    conda-forge
krb5                      1.14.6                        0    conda-forge
libcxx                    6.0.0                         0    conda-forge
libcxxabi                 4.0.1                hebd6815_0
libedit                   3.1.20170329                  0    conda-forge
libffi                    3.2.1                         3    conda-forge
libgfortran               3.0.1                h93005f0_2
libgfortran-ng            3.0.1                h93005f0_2
libiconv                  1.15                 h470a237_1    conda-forge
libnetcdf                 4.6.1                         2    conda-forge
libopenblas               0.2.20               hdc02c5d_7
libpng                    1.6.34                        0    conda-forge
libpq                     9.6.3                         0    conda-forge
libprotobuf               3.5.2                         0    conda-forge
libssh2                   1.8.0                h5b517e9_2    conda-forge
libtiff                   4.0.9                he6b73bb_0    conda-forge
libuuid                   1.0.3                         1    conda-forge
libxml2                   2.9.8                         0    conda-forge
libxslt                   1.1.32                        0    conda-forge
linecache2                1.0.0                    py27_0    conda-forge
llvm-meta                 6.0.0                         0    conda-forge
llvmdev                   6.0.0                 default_3    conda-forge
lmfit                     0.9.10           py27h24bf2e0_0    conda-forge
locket                    0.2.0                    py27_1    conda-forge
markdown                  2.6.11                     py_0    conda-forge
markupsafe                1.0                      py27_0    conda-forge
matplotlib                2.1.2                    py27_0    conda-forge
mayavi                    4.5.0                    py27_0
mdsplus                   7.7.9                    py27_1    omfit
mkl                       2018.0.3                      1
mkl_fft                   1.0.2                    py27_0    conda-forge
mkl_random                1.0.1                    py27_0    conda-forge
mock                      2.0.0                    py27_0    conda-forge
more-itertools            4.2.0                      py_0    conda-forge
mpc                       1.1.0                         4    conda-forge
mpfr                      3.1.5                         0    conda-forge
mpi                       1.0                     openmpi    conda-forge
mpi4py                    3.0.0            py27_openmpi_2    conda-forge
mpmath                    1.0.0                      py_0    conda-forge
msgpack-python            0.5.6            py27h2d50403_2    conda-forge
nbformat                  4.4.0                    py27_0    conda-forge
ncurses                   5.9                          10    conda-forge
netcdf4                   1.4.0                    py27_0    conda-forge
networkx                  2.1                      py27_0    conda-forge
nlopt                     2.4.2                    py27_2    conda-forge
numexpr                   2.6.5                    py27_0    conda-forge
numpy                     1.14.5          py27_blas_openblashd3ea46f_201  [blas_openblas]  conda-forge
numpy-base                1.14.3           py27h7ef55bc_1
omas                      0.14.0                     py_0    conda-forge
omfit                     0.25.8.3                 py27_1    omfit
omfit                     0.0.0                     <pip>
openblas                  0.2.20                        8    conda-forge
openmotif                 2.3.7                         0    conda-forge
openmpi                   3.1.0                         1    conda-forge
openssl                   1.0.2o                        0    conda-forge
packaging                 17.1                       py_0    conda-forge
pandas                    0.23.1                   py27_0    conda-forge
parso                     0.3.0                      py_0    conda-forge
partd                     0.3.8                    py27_0    conda-forge
pathlib2                  2.3.2                    py27_0    conda-forge
patsy                     0.5.0                    py27_0    conda-forge
pbr                       4.0.4                      py_0    conda-forge
pexpect                   4.6.0                    py27_0    conda-forge
pickleshare               0.7.4                    py27_0    conda-forge
pidly                     0.2.7                    py27_0    conda-forge
pip                       10.0.1                    <pip>
pip                       9.0.3                    py27_0    conda-forge
pkginfo                   1.4.2                    py27_0    conda-forge
pluggy                    0.6.0                      py_0    conda-forge
postgresql                10.4             py27ha98c86b_0    conda-forge
prompt_toolkit            1.0.15                   py27_0    conda-forge
protobuf                  3.5.2                    py27_0    conda-forge
psutil                    5.4.6                    py27_0    conda-forge
psycopg2                  2.7.5                    py27_0    conda-forge
ptyprocess                0.6.0                    py27_0    conda-forge
py                        1.5.4                      py_0    conda-forge
py-fann2                  1.1.2                    py27_0    conda-forge
pycosat                   0.6.3                    py27_0    conda-forge
pycparser                 2.18                     py27_0    conda-forge
pyface                    6.0.0                      py_1    conda-forge
pygments                  2.2.0                    py27_0    conda-forge
pyodbc                    4.0.23           py27hfc679d8_0    conda-forge
pyopenssl                 18.0.0                   py27_0    conda-forge
pyparsing                 2.2.0                    py27_0    conda-forge
pyqt                      4.11.4                   py27_2    conda-forge
pysocks                   1.6.8                    py27_1    conda-forge
pytables                  3.4.4                    py27_8    conda-forge
pytest                    3.6.2                    py27_0    conda-forge
python                    2.7.15                        0    conda-forge
python-dateutil           2.7.3                      py_0    conda-forge
python.app                1.2                      py27_0    conda-forge
pyttk                     0.3.2                     <pip>
pyttk                     0.3.2                      py_0    conda-forge
pytz                      2018.4                     py_0    conda-forge
pyyaml                    3.12                     py27_1    conda-forge
qt                        4.8.7                         4
readline                  7.0                           0    conda-forge
reindent                  0.1.1                    py27_0    conda-forge
requests                  2.19.1                   py27_0    conda-forge
ruamel_yaml               0.15.44          py27h470a237_0    conda-forge
s3transfer                0.1.13                   py27_0    conda-forge
scandir                   1.7                      py27_0    conda-forge
scikit-learn              0.19.2          py27_blas_openblas_200  [blas_openblas]  conda-forge
scipy                     1.1.0           py27_blas_openblashd3ea46f_201  [blas_openblas]  conda-forge
seaborn                   0.8.1                    py27_0    conda-forge
setuptools                39.2.0                   py27_0    conda-forge
shapely                   1.6.4            py27h164cb2d_1    conda-forge
simplegeneric             0.8.1                    py27_0    conda-forge
singledispatch            3.4.0.3                  py27_0    conda-forge
sip                       4.18                     py27_1    conda-forge
six                       1.11.0                   py27_1    conda-forge
snowballstemmer           1.2.1                    py27_0    conda-forge
sortedcontainers          2.0.4                    py27_0    conda-forge
sphinx                    1.6.7                    py27_0    conda-forge
sphinx_bootstrap_theme    0.6.4                      py_0    conda-forge
sphinxcontrib-websupport  1.1.0                    py27_0    conda-forge
sqlite                    3.20.1                        2    conda-forge
statsmodels               0.9.0                    py27_0    conda-forge
subprocess32              3.5.2                    py27_0    conda-forge
tbb                       2018_20171205                 0    conda-forge
tblib                     1.3.2                    py27_0    conda-forge
tensorboard               1.8.0                    py27_1    conda-forge
tensorflow                1.8.0                    py27_1    conda-forge
termcolor                 1.1.0                    py27_1    conda-forge
tk                        8.6.7                         0    conda-forge
toolz                     0.9.0                      py_0    conda-forge
tornado                   5.0.2                    py27_0    conda-forge
traceback2                1.4.0                    py27_0    conda-forge
traitlets                 4.3.2                    py27_0    conda-forge
traits                    4.6.0                    py27_1    conda-forge
traitsui                  6.0.0                      py_1    conda-forge
typing                    3.6.4                    py27_0    conda-forge
uncertainties             3.0.2                    py27_1    conda-forge
unittest2                 1.1.0                      py_0    conda-forge
unixodbc                  2.3.4                         1    conda-forge
urllib3                   1.23                     py27_0    conda-forge
vtk                       8.1.0           py27h3f2a929_203    conda-forge
wcwidth                   0.1.7                    py27_0    conda-forge
webencodings              0.5.1                    py27_0    conda-forge
werkzeug                  0.14.1                     py_0    conda-forge
wget                      1.19.5               hf30b1f0_0
wheel                     0.31.0                   py27_0    conda-forge
xarray                    0.10.7                   py27_0    conda-forge
xmltodict                 0.11.0                   py27_0    conda-forge
xz                        5.2.3                         0    conda-forge
yaml                      0.1.7                         0    conda-forge
zict                      0.1.3                      py_0    conda-forge
zlib                      1.2.11               h470a237_3    conda-forge

Let me know if there is some dependency I am not satisfying.

treverhines commented 6 years ago

did you try running xcode-select --install as described here https://stackoverflow.com/questions/30877659/fatal-error-limits-h-no-such-file-or-directory ?

logan-nc commented 6 years ago

Thanks. That got it to run through, but with the following warnings

nlogan-lt1:RBF nlogan$ python setup.py install
running install
running bdist_egg
running egg_info
writing RBF.egg-info/PKG-INFO
writing top-level names to RBF.egg-info/top_level.txt
writing dependency_links to RBF.egg-info/dependency_links.txt
reading manifest file 'RBF.egg-info/SOURCES.txt'
writing manifest file 'RBF.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.9-x86_64/egg
running install_lib
running build_py
running build_ext
building 'rbf.halton' extension
gcc -fno-strict-aliasing -I/Users/nlogan/Code/miniconda2/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include -I/Users/nlogan/Code/miniconda2/include/python2.7 -c rbf/halton.c -o build/temp.macosx-10.9-x86_64-2.7/rbf/halton.o
In file included from /Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:0,
                 from /Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                 from /Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from rbf/halton.c:586:
/Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^
gcc -bundle -undefined dynamic_lookup -Wl,-rpath,/Users/nlogan/Code/miniconda2/lib -L/Users/nlogan/Code/miniconda2/lib -headerpad_max_install_names -arch x86_64 build/temp.macosx-10.9-x86_64-2.7/rbf/halton.o -L/Users/nlogan/Code/miniconda2/lib -o build/lib.macosx-10.9-x86_64-2.7/rbf/halton.so
building 'rbf.misc.bspline' extension
creating build/temp.macosx-10.9-x86_64-2.7/rbf/misc
gcc -fno-strict-aliasing -I/Users/nlogan/Code/miniconda2/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include -I/Users/nlogan/Code/miniconda2/include/python2.7 -c rbf/misc/bspline.c -o build/temp.macosx-10.9-x86_64-2.7/rbf/misc/bspline.o
In file included from /Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:0,
                 from /Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                 from /Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from rbf/misc/bspline.c:586:
/Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^
gcc -bundle -undefined dynamic_lookup -Wl,-rpath,/Users/nlogan/Code/miniconda2/lib -L/Users/nlogan/Code/miniconda2/lib -headerpad_max_install_names -arch x86_64 build/temp.macosx-10.9-x86_64-2.7/rbf/misc/bspline.o -L/Users/nlogan/Code/miniconda2/lib -o build/lib.macosx-10.9-x86_64-2.7/rbf/misc/bspline.so
building 'rbf.geometry' extension
gcc -fno-strict-aliasing -I/Users/nlogan/Code/miniconda2/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include -I/Users/nlogan/Code/miniconda2/include/python2.7 -c rbf/geometry.c -o build/temp.macosx-10.9-x86_64-2.7/rbf/geometry.o
In file included from /Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:0,
                 from /Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                 from /Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from rbf/geometry.c:586:
/Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^
rbf/geometry.c:2832:49: warning: ‘__pyx_f_3rbf_8geometry_allocate_segment2d_array’ defined but not used [-Wunused-function]
 static struct __pyx_t_3rbf_8geometry_segment2d *__pyx_f_3rbf_8geometry_allocate_segment2d_array(long __pyx_v_n) {
                                                 ^
rbf/geometry.c:2911:49: warning: ‘__pyx_f_3rbf_8geometry_allocate_segment3d_array’ defined but not used [-Wunused-function]
 static struct __pyx_t_3rbf_8geometry_segment3d *__pyx_f_3rbf_8geometry_allocate_segment3d_array(long __pyx_v_n) {
                                                 ^
gcc -bundle -undefined dynamic_lookup -Wl,-rpath,/Users/nlogan/Code/miniconda2/lib -L/Users/nlogan/Code/miniconda2/lib -headerpad_max_install_names -arch x86_64 build/temp.macosx-10.9-x86_64-2.7/rbf/geometry.o -L/Users/nlogan/Code/miniconda2/lib -o build/lib.macosx-10.9-x86_64-2.7/rbf/geometry.so
building 'rbf.poly' extension
gcc -fno-strict-aliasing -I/Users/nlogan/Code/miniconda2/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include -I/Users/nlogan/Code/miniconda2/include/python2.7 -c rbf/poly.c -o build/temp.macosx-10.9-x86_64-2.7/rbf/poly.o
In file included from /Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:0,
                 from /Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
                 from /Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from rbf/poly.c:586:
/Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^
gcc -bundle -undefined dynamic_lookup -Wl,-rpath,/Users/nlogan/Code/miniconda2/lib -L/Users/nlogan/Code/miniconda2/lib -headerpad_max_install_names -arch x86_64 build/temp.macosx-10.9-x86_64-2.7/rbf/poly.o -L/Users/nlogan/Code/miniconda2/lib -o build/lib.macosx-10.9-x86_64-2.7/rbf/poly.so
creating build/bdist.macosx-10.9-x86_64
creating build/bdist.macosx-10.9-x86_64/egg
creating build/bdist.macosx-10.9-x86_64/egg/rbf
copying build/lib.macosx-10.9-x86_64-2.7/rbf/__init__.py -> build/bdist.macosx-10.9-x86_64/egg/rbf
copying build/lib.macosx-10.9-x86_64-2.7/rbf/basis.py -> build/bdist.macosx-10.9-x86_64/egg/rbf
copying build/lib.macosx-10.9-x86_64-2.7/rbf/domain.py -> build/bdist.macosx-10.9-x86_64/egg/rbf
copying build/lib.macosx-10.9-x86_64-2.7/rbf/fd.py -> build/bdist.macosx-10.9-x86_64/egg/rbf
copying build/lib.macosx-10.9-x86_64-2.7/rbf/fdbuild.py -> build/bdist.macosx-10.9-x86_64/egg/rbf
copying build/lib.macosx-10.9-x86_64-2.7/rbf/gauss.py -> build/bdist.macosx-10.9-x86_64/egg/rbf
copying build/lib.macosx-10.9-x86_64-2.7/rbf/geometry.so -> build/bdist.macosx-10.9-x86_64/egg/rbf
copying build/lib.macosx-10.9-x86_64-2.7/rbf/halton.so -> build/bdist.macosx-10.9-x86_64/egg/rbf
copying build/lib.macosx-10.9-x86_64-2.7/rbf/interpolate.py -> build/bdist.macosx-10.9-x86_64/egg/rbf
copying build/lib.macosx-10.9-x86_64-2.7/rbf/linalg.py -> build/bdist.macosx-10.9-x86_64/egg/rbf
creating build/bdist.macosx-10.9-x86_64/egg/rbf/misc
copying build/lib.macosx-10.9-x86_64-2.7/rbf/misc/__init__.py -> build/bdist.macosx-10.9-x86_64/egg/rbf/misc
copying build/lib.macosx-10.9-x86_64-2.7/rbf/misc/bspline.so -> build/bdist.macosx-10.9-x86_64/egg/rbf/misc
copying build/lib.macosx-10.9-x86_64-2.7/rbf/misc/filter.py -> build/bdist.macosx-10.9-x86_64/egg/rbf/misc
copying build/lib.macosx-10.9-x86_64-2.7/rbf/misc/formulation.py -> build/bdist.macosx-10.9-x86_64/egg/rbf/misc
copying build/lib.macosx-10.9-x86_64-2.7/rbf/misc/integrate.py -> build/bdist.macosx-10.9-x86_64/egg/rbf/misc
copying build/lib.macosx-10.9-x86_64-2.7/rbf/mp.py -> build/bdist.macosx-10.9-x86_64/egg/rbf
copying build/lib.macosx-10.9-x86_64-2.7/rbf/nodes.py -> build/bdist.macosx-10.9-x86_64/egg/rbf
copying build/lib.macosx-10.9-x86_64-2.7/rbf/poly.so -> build/bdist.macosx-10.9-x86_64/egg/rbf
copying build/lib.macosx-10.9-x86_64-2.7/rbf/stencil.py -> build/bdist.macosx-10.9-x86_64/egg/rbf
copying build/lib.macosx-10.9-x86_64-2.7/rbf/utils.py -> build/bdist.macosx-10.9-x86_64/egg/rbf
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/basis.py to basis.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/domain.py to domain.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/fd.py to fd.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/fdbuild.py to fdbuild.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/gauss.py to gauss.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/interpolate.py to interpolate.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/linalg.py to linalg.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/misc/__init__.py to __init__.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/misc/filter.py to filter.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/misc/formulation.py to formulation.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/misc/integrate.py to integrate.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/mp.py to mp.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/nodes.py to nodes.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/stencil.py to stencil.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/utils.py to utils.pyc
creating stub loader for rbf/halton.so
creating stub loader for rbf/misc/bspline.so
creating stub loader for rbf/geometry.so
creating stub loader for rbf/poly.so
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/halton.py to halton.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/misc/bspline.py to bspline.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/geometry.py to geometry.pyc
byte-compiling build/bdist.macosx-10.9-x86_64/egg/rbf/poly.py to poly.pyc
creating build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying RBF.egg-info/PKG-INFO -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying RBF.egg-info/SOURCES.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying RBF.egg-info/dependency_links.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
copying RBF.egg-info/top_level.txt -> build/bdist.macosx-10.9-x86_64/egg/EGG-INFO
writing build/bdist.macosx-10.9-x86_64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/RBF-2018.7.15-py2.7-macosx-10.9-x86_64.egg' and adding 'build/bdist.macosx-10.9-x86_64/egg' to it
removing 'build/bdist.macosx-10.9-x86_64/egg' (and everything under it)
Processing RBF-2018.7.15-py2.7-macosx-10.9-x86_64.egg
Copying RBF-2018.7.15-py2.7-macosx-10.9-x86_64.egg to /Users/nlogan/Code/miniconda2/lib/python2.7/site-packages
Adding RBF 2018.7.15 to easy-install.pth file

Installed /Users/nlogan/Code/miniconda2/lib/python2.7/site-packages/RBF-2018.7.15-py2.7-macosx-10.9-x86_64.egg
Processing dependencies for RBF==2018.7.15
Finished processing dependencies for RBF==2018.7.15

This seems close, but I was not able to import

In [1]: import rbf
?[0;31m---------------------------------------------------------------------------?[0m
?[0;31mImportError?[0m                               Traceback (most recent call last)
?[0;32m<ipython-input-1-e3dd23f063ee>?[0m in ?[0;36m<module>?[0;34m()?[0m
?[0;32m----> 1?[0;31m ?[0;32mimport?[0m ?[0mrbf?[0m?[0;34m?[0m?[0m
?[0m
?[0;32mbuild/bdist.macosx-10.9-x86_64/egg/rbf/__init__.py?[0m in ?[0;36m<module>?[0;34m()?[0m

?[0;32mbuild/bdist.macosx-10.9-x86_64/egg/rbf/basis.py?[0m in ?[0;36m<module>?[0;34m()?[0m

?[0;31mImportError?[0m: No module named sympy

or put another way,

In [2]: %run ~/Downloads/gauss.j.py
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
/Users/nlogan/Downloads/gauss.j.py in <module>()
      5 import matplotlib.pyplot as plt
      6 import numpy as np
----> 7 import rbf
      8 from rbf.gauss import gpiso,gppoly
      9

build/bdist.macosx-10.9-x86_64/egg/rbf/__init__.py in <module>()

build/bdist.macosx-10.9-x86_64/egg/rbf/basis.py in <module>()

ImportError: No module named sympy
treverhines commented 6 years ago

Great! The remaining dependencies can be satisfied with conda. So run 'conda install sympy' and 'conda install networkx'. You will also get a notification about not having CHOLMOD. You do want this package because it is for interpolating with sparse kernels. Install it with 'conda install -c conda-forge scikit-sparse'

logan-nc commented 6 years ago

Done! Everything works beautifully.