-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot Install on MacOS? #39
Comments
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? |
Thank you for the quick reply. I really appreciate it. Here is the entire log from PIP. : × Building wheel for treverhines-rbf (pyproject.toml) did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. |
Thanks! Looks like it could be related to this issue: sympy/sympy#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. |
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:
It appears to maybe be some compatibility error with numpy? |
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. |
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.
|
Im Mac Studio M2 Ultra, and my numpy's version is 1.26.4. |
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.
The text was updated successfully, but these errors were encountered: