treverhines / RBF

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

Cannot Install on MacOS? #39

Open p-smith22 opened 2 months ago

p-smith22 commented 2 months ago

When attempting to install on macOS (m1 processor), there is an error building the wheels. I am using pip install treverhines-rbf, and the error I am getting is "ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (treverhines-rbf)". I have tried both pip install and trying to download it from the git clone directory in my project folder, and I get the same error for both. Anybody know a way to download on macOS? Thanks.

treverhines commented 2 months ago

I do not have a mac, so it is hard for me to say. Were there any other errors in the logs? My guess is that there was an error compiling the cython files. Maybe you need to install gcc or some other c compiler?

p-smith22 commented 2 months ago

Thank you for the quick reply. I really appreciate it. Here is the entire log from PIP. : `Collecting treverhines-rbf Using cached treverhines-rbf-2024.3.21.tar.gz (791 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: numpy>=1.10 in /opt/miniconda3/lib/python3.12/site-packages (from treverhines-rbf) (2.0.0) Requirement already satisfied: scipy in /opt/miniconda3/lib/python3.12/site-packages (from treverhines-rbf) (1.13.1) Requirement already satisfied: sympy in /opt/miniconda3/lib/python3.12/site-packages (from treverhines-rbf) (1.12.1) Requirement already satisfied: cython in /opt/miniconda3/lib/python3.12/site-packages (from treverhines-rbf) (3.0.10) Requirement already satisfied: rtree in /opt/miniconda3/lib/python3.12/site-packages (from treverhines-rbf) (1.2.0) Requirement already satisfied: mpmath<1.4.0,>=1.1.0 in /opt/miniconda3/lib/python3.12/site-packages (from sympy->treverhines-rbf) (1.3.0) Building wheels for collected packages: treverhines-rbf Building wheel for treverhines-rbf (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for treverhines-rbf (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [276 lines of output]

:23: SyntaxWarning: invalid escape sequence '\s' /private/var/folders/ch/6yv7bxg527q59cv8tjk_7y5h0000gn/T/pip-build-env-uxwwrosa/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py:251: UserWarning: 'licence' distribution option is deprecated; use 'license' warnings.warn(msg) running bdist_wheel running build running build_py creating build creating build/lib.macosx-11.0-arm64-cpython-312 creating build/lib.macosx-11.0-arm64-cpython-312/rbf copying rbf/basis.py -> build/lib.macosx-11.0-arm64-cpython-312/rbf copying rbf/_version.py -> build/lib.macosx-11.0-arm64-cpython-312/rbf copying rbf/gauss.py -> build/lib.macosx-11.0-arm64-cpython-312/rbf copying rbf/__init__.py -> build/lib.macosx-11.0-arm64-cpython-312/rbf copying rbf/linalg.py -> build/lib.macosx-11.0-arm64-cpython-312/rbf copying rbf/utils.py -> build/lib.macosx-11.0-arm64-cpython-312/rbf copying rbf/gproc.py -> build/lib.macosx-11.0-arm64-cpython-312/rbf copying rbf/interpolate.py -> build/lib.macosx-11.0-arm64-cpython-312/rbf creating build/lib.macosx-11.0-arm64-cpython-312/rbf/pde copying rbf/pde/domain.py -> build/lib.macosx-11.0-arm64-cpython-312/rbf/pde copying rbf/pde/__init__.py -> build/lib.macosx-11.0-arm64-cpython-312/rbf/pde copying rbf/pde/elastic.py -> build/lib.macosx-11.0-arm64-cpython-312/rbf/pde copying rbf/pde/fd.py -> build/lib.macosx-11.0-arm64-cpython-312/rbf/pde copying rbf/pde/nodes.py -> build/lib.macosx-11.0-arm64-cpython-312/rbf/pde creating build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/make_rbf_ufuncs.py -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs running egg_info writing treverhines_rbf.egg-info/PKG-INFO writing dependency_links to treverhines_rbf.egg-info/dependency_links.txt writing requirements to treverhines_rbf.egg-info/requires.txt writing top-level names to treverhines_rbf.egg-info/top_level.txt reading manifest file 'treverhines_rbf.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE.txt' writing manifest file 'treverhines_rbf.egg-info/SOURCES.txt' copying rbf/poly.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf copying rbf/sputils.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf copying rbf/pde/geometry.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/pde copying rbf/pde/halton.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/pde copying rbf/pde/sampling.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/pde copying rbf/_rbf_ufuncs/metadata.json -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_0.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_0.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_1.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_1.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_10.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_10.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_11.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_11.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_12.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_12.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_13.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_13.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_14.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_14.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_15.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_15.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_16.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_16.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_17.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_17.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_18.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_18.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_19.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_19.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_2.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_2.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_20.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_20.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_21.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_21.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_22.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_22.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_23.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_23.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_24.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_24.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_25.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_25.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_26.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_26.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_27.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_27.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_28.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_28.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_29.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_29.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_3.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_3.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_30.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_30.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_31.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_31.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_32.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_32.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_33.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_33.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_34.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_34.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_35.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_35.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_36.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_36.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_37.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_37.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_38.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_38.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_39.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_39.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_4.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_4.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_40.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_40.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_41.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_41.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_42.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_42.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_43.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_43.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_44.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_44.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_45.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_45.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_46.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_46.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_47.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_47.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_48.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_48.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_49.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_49.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_5.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_5.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_50.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_50.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_51.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_51.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_52.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_52.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_53.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_53.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_54.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_54.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_55.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_55.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_56.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_56.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_57.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_57.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_58.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_58.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_59.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_59.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_6.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_6.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_60.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_60.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_61.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_61.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_62.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_62.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_63.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_63.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_64.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_64.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_65.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_65.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_7.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_7.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_8.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_8.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_9.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapped_code_9.h -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_0.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_1.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_10.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_11.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_12.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_13.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_14.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_15.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_16.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_17.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_18.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_19.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_2.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_20.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_21.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_22.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_23.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_24.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_25.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_26.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_27.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_28.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_29.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_3.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_30.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_31.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_32.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_33.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_34.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_35.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_36.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_37.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_38.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_39.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_4.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_40.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_41.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_42.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_43.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_44.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_45.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_46.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_47.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_48.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_49.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_5.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_50.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_51.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_52.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_53.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_54.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_55.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_56.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_57.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_58.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_59.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_6.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_60.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_61.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_62.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_63.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_64.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_65.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_7.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_8.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs copying rbf/_rbf_ufuncs/wrapper_module_9.c -> build/lib.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs running build_ext building 'rbf.poly' extension creating build/temp.macosx-11.0-arm64-cpython-312 creating build/temp.macosx-11.0-arm64-cpython-312/rbf clang -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -I/opt/miniconda3/include/python3.12 -c rbf/poly.c -o build/temp.macosx-11.0-arm64-cpython-312/rbf/poly.o clang -bundle -undefined dynamic_lookup -Wl,-rpath,/opt/miniconda3/lib -L/opt/miniconda3/lib -Wl,-rpath,/opt/miniconda3/lib -L/opt/miniconda3/lib build/temp.macosx-11.0-arm64-cpython-312/rbf/poly.o -o build/lib.macosx-11.0-arm64-cpython-312/rbf/poly.cpython-312-darwin.so ld: warning: duplicate -rpath '/opt/miniconda3/lib' ignored building 'rbf.sputils' extension clang -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -I/opt/miniconda3/include/python3.12 -c rbf/sputils.c -o build/temp.macosx-11.0-arm64-cpython-312/rbf/sputils.o clang -bundle -undefined dynamic_lookup -Wl,-rpath,/opt/miniconda3/lib -L/opt/miniconda3/lib -Wl,-rpath,/opt/miniconda3/lib -L/opt/miniconda3/lib build/temp.macosx-11.0-arm64-cpython-312/rbf/sputils.o -o build/lib.macosx-11.0-arm64-cpython-312/rbf/sputils.cpython-312-darwin.so ld: warning: duplicate -rpath '/opt/miniconda3/lib' ignored building 'rbf.pde.halton' extension creating build/temp.macosx-11.0-arm64-cpython-312/rbf/pde clang -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -I/opt/miniconda3/include/python3.12 -c rbf/pde/halton.c -o build/temp.macosx-11.0-arm64-cpython-312/rbf/pde/halton.o clang -bundle -undefined dynamic_lookup -Wl,-rpath,/opt/miniconda3/lib -L/opt/miniconda3/lib -Wl,-rpath,/opt/miniconda3/lib -L/opt/miniconda3/lib build/temp.macosx-11.0-arm64-cpython-312/rbf/pde/halton.o -o build/lib.macosx-11.0-arm64-cpython-312/rbf/pde/halton.cpython-312-darwin.so ld: warning: duplicate -rpath '/opt/miniconda3/lib' ignored building 'rbf.pde.geometry' extension clang -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -I/opt/miniconda3/include/python3.12 -c rbf/pde/geometry.c -o build/temp.macosx-11.0-arm64-cpython-312/rbf/pde/geometry.o clang -bundle -undefined dynamic_lookup -Wl,-rpath,/opt/miniconda3/lib -L/opt/miniconda3/lib -Wl,-rpath,/opt/miniconda3/lib -L/opt/miniconda3/lib build/temp.macosx-11.0-arm64-cpython-312/rbf/pde/geometry.o -o build/lib.macosx-11.0-arm64-cpython-312/rbf/pde/geometry.cpython-312-darwin.so ld: warning: duplicate -rpath '/opt/miniconda3/lib' ignored building 'rbf.pde.sampling' extension clang -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -I/opt/miniconda3/include/python3.12 -c rbf/pde/sampling.c -o build/temp.macosx-11.0-arm64-cpython-312/rbf/pde/sampling.o clang -bundle -undefined dynamic_lookup -Wl,-rpath,/opt/miniconda3/lib -L/opt/miniconda3/lib -Wl,-rpath,/opt/miniconda3/lib -L/opt/miniconda3/lib build/temp.macosx-11.0-arm64-cpython-312/rbf/pde/sampling.o -o build/lib.macosx-11.0-arm64-cpython-312/rbf/pde/sampling.cpython-312-darwin.so ld: warning: duplicate -rpath '/opt/miniconda3/lib' ignored building 'rbf._rbf_ufuncs.wrapper_module_0' extension creating build/temp.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs clang -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -I/private/var/folders/ch/6yv7bxg527q59cv8tjk_7y5h0000gn/T/pip-build-env-uxwwrosa/overlay/lib/python3.12/site-packages/numpy/_core/include -I/opt/miniconda3/include/python3.12 -c rbf/_rbf_ufuncs/wrapped_code_0.c -o build/temp.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs/wrapped_code_0.o clang -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -I/private/var/folders/ch/6yv7bxg527q59cv8tjk_7y5h0000gn/T/pip-build-env-uxwwrosa/overlay/lib/python3.12/site-packages/numpy/_core/include -I/opt/miniconda3/include/python3.12 -c rbf/_rbf_ufuncs/wrapper_module_0.c -o build/temp.macosx-11.0-arm64-cpython-312/rbf/_rbf_ufuncs/wrapper_module_0.o In file included from rbf/_rbf_ufuncs/wrapper_module_0.c:3: In file included from /private/var/folders/ch/6yv7bxg527q59cv8tjk_7y5h0000gn/T/pip-build-env-uxwwrosa/overlay/lib/python3.12/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1909: /private/var/folders/ch/6yv7bxg527q59cv8tjk_7y5h0000gn/T/pip-build-env-uxwwrosa/overlay/lib/python3.12/site-packages/numpy/_core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings] #warning "Using deprecated NumPy API, disable it with " \ ^ rbf/_rbf_ufuncs/wrapper_module_0.c:32:60: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types] PyUFuncGenericFunction wrapped_281431381711168_funcs[1] = {&wrapped_281431381711168_ufunc}; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning and 1 error generated. error: command '/usr/bin/clang' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for treverhines-rbf Failed to build treverhines-rbf ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (treverhines-rbf) ` It's a rather long log, so I apologize in advance. Thank you again.
treverhines commented 2 months ago

Thanks!

Looks like it could be related to this issue: https://github.com/sympy/sympy/pull/25968

Can you try pulling from master again and rebuilding?

This package uses sympy to autogenerate code for the RBFs and their derivatives. Some of the RBFs are generated at build time (the ones in _rbf_ufuncs), and others are generated at runtime. I remade the code in _rbf_ufuncs using the latest version of sympy that includes a patch for the above issue. Hopefully that would fix your build issue. But RBFs built at runtime may still cause an error unless you have the latest version of sympy.

p-smith22 commented 2 months ago

Okay, it seems we are making progress. The package downloaded, but when I tried to run one of your examples in the README as a test, I got the following error message:

Traceback (most recent call last):
  File "/opt/miniconda3/lib/python3.12/site-packages/numpy/_core/arrayprint.py", line 34, in <module>
    from . import numerictypes as _nt
  File "/opt/miniconda3/lib/python3.12/site-packages/numpy/_core/numerictypes.py", line 102, in <module>
    from ._type_aliases import (
  File "/opt/miniconda3/lib/python3.12/site-packages/numpy/_core/_type_aliases.py", line 38, in <module>
    allTypes[_abstract_type_name] = getattr(ma, _abstract_type_name)
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'numpy.core.multiarray' has no attribute 'flexible'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/parker/Desktop/Python/Research4/RBFTest.py", line 26, in <module>
    interp = RBFInterpolant(x_obs, u_obs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda3/lib/python3.12/site-packages/treverhines_rbf-2024.3.21+1.g37f9f4f-py3.12-macosx-11.0-arm64.egg/rbf/interpolate.py", line 542, in __init__
    phi_coeff, poly_coeff, shift, scale = _build_and_solve_systems(
                                          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda3/lib/python3.12/site-packages/treverhines_rbf-2024.3.21+1.g37f9f4f-py3.12-macosx-11.0-arm64.egg/rbf/interpolate.py", line 424, in _build_and_solve_systems
    poly_coeff *= range_scale[..., None, None]
  File "/opt/miniconda3/lib/python3.12/site-packages/numpy/core/_internal.py", line 855, in array_ufunc_errmsg_formatter
    args_string = ', '.join(['{!r}'.format(arg) for arg in inputs] +
                             ^^^^^^^^^^^^^^^^^^
RuntimeError: Unable to configure default ndarray.__repr__

It appears to maybe be some compatibility error with numpy?

treverhines commented 2 months ago

Those errors look like something is wrong with your numpy installation. Is it otherwise working normally?

What version of numpy are you using? I just realized that numpy 2.0 introduced some breaking changes that I will need to fix eventually. In the meantime, i updated the dependencies to numpy < 2.0.

p-smith22 commented 2 months ago

I believe I got it. I must have had a corrupt download of NumPy, so uninstalling and redownloading it worked. Also, NumPy 2.0 did not work (as you predicted), but reverting to an older version, in this case v1.26.4, worked just fine.

After running some of your example codes, the first one (just RBFInterpolant) compiles just fine and produces the expected graph. The other two examples (PDEs) get the following error (sympy v1.14 and numpy v1.26.4). However, I only expect to use the RBFInterpolant function (which was the example that compiled fine), so I think these fixes should be perfect for me. Thank you so much for the quick replies and an awesome package. I really appreciate it.

Traceback (most recent call last):
  File "/opt/miniconda3/lib/python3.12/site-packages/sympy/utilities/autowrap.py", line 182, in _process_files
    retoutput = check_output(command, stderr=STDOUT)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda3/lib/python3.12/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda3/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/opt/miniconda3/bin/python', 'setup.py', 'build_ext', '--inplace']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/parker/Desktop/Python/Research4/RBFTest.py", line 27, in <module>
    A[groups['interior']] = mq(nodes[groups['interior']], nodes, eps=eps, diff=[2, 0])
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda3/lib/python3.12/site-packages/treverhines_rbf-2024.3.21+2.g396b1ac-py3.12-macosx-11.0-arm64.egg/rbf/basis.py", line 318, in __call__
    self._add_diff_to_cache(diff)
  File "/opt/miniconda3/lib/python3.12/site-packages/treverhines_rbf-2024.3.21+2.g396b1ac-py3.12-macosx-11.0-arm64.egg/rbf/basis.py", line 423, in _add_diff_to_cache
    func = ufuncify(
           ^^^^^^^^^
  File "/opt/miniconda3/lib/python3.12/site-packages/sympy/core/cache.py", line 72, in wrapper
    retval = cfunc(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda3/lib/python3.12/site-packages/sympy/utilities/autowrap.py", line 1114, in ufuncify
    return code_wrapper.wrap_code(routines, helpers=helps)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/miniconda3/lib/python3.12/site-packages/sympy/utilities/autowrap.py", line 837, in wrap_code
    self._process_files(routines)
  File "/opt/miniconda3/lib/python3.12/site-packages/sympy/utilities/autowrap.py", line 184, in _process_files
    raise CodeWrapError(
sympy.utilities.autowrap.CodeWrapError: Error while executing command: /opt/miniconda3/bin/python setup.py build_ext --inplace. Command output is:
running build_ext
building 'wrapper_module_0' extension
creating build
creating build/temp.macosx-11.0-arm64-cpython-312
clang -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -I/opt/miniconda3/lib/python3.12/site-packages/numpy/core/include -I/opt/miniconda3/include/python3.12 -c wrapped_code_0.c -o build/temp.macosx-11.0-arm64-cpython-312/wrapped_code_0.o
clang -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -fPIC -O2 -isystem /opt/miniconda3/include -arch arm64 -I/opt/miniconda3/lib/python3.12/site-packages/numpy/core/include -I/opt/miniconda3/include/python3.12 -c wrapper_module_0.c -o build/temp.macosx-11.0-arm64-cpython-312/wrapper_module_0.o
In file included from wrapper_module_0.c:3:
In file included from /opt/miniconda3/lib/python3.12/site-packages/numpy/core/include/numpy/ndarraytypes.h:1929:
/opt/miniconda3/lib/python3.12/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with "          "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it with " \
 ^
wrapper_module_0.c:38:56: error: incompatible function pointer types initializing 'PyUFuncGenericFunction' (aka 'void (*)(char **, const long *, const long *, void *)') with an expression of type 'void (*)(char **, npy_intp *, npy_intp *, void *)' (aka 'void (*)(char **, long *, long *, void *)') [-Wincompatible-function-pointer-types]
PyUFuncGenericFunction wrapped_12480489600_funcs[1] = {&wrapped_12480489600_ufunc};
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
mintisan commented 1 month ago

Im Mac Studio M2 Ultra, and my numpy's version is 1.26.4. I can run example normally. FYI