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
Python binding installation difficulty on Mac OSX 10.15 #55
Comments
Dear Ian,
|
Hi Alex, Thank you for your quick response! I have tried a few more things but unfortunately I haven't met with success just yet. I will paste what I have tried so far here in case it is helpful. FINUFFT looks like a really nice package for some of the applications I have in mind and I hope I can get it running. clang related tests:I found a few more google results that also seem to point towards a problem with the openmp libraries being found (e.g., here and here). Though, these issues seem to suggest fixes that are already in the docs and haven’t worked for my case (i.e., As you suggested, I set the environment variable
Since this is the location that homebrew installed the I did a This was the output from
I’m not expert enough with g++ makefiles to discern whether or not this linking is being passed on correctly from the environment to the build. Perhaps there is a set of make flags I need to edit in the Separate to these tests using the macos system clang, for good measure I also tried using the conda clang. I installed gcc related tests:I installed gcc via homebrew. I didn’t quite follow the documentation’s request to change the
I haven’t yet tried installing this with the mac system python, as that is outside of my main development environment and the environments that I anticipate deploying to, which have many package dependencies best installed through conda. Thanks again for your help! |
Hi Ian, |
Hi Alex, Thanks for the reply. Unfortunately I haven't been able to get it working. I stopped using conda and switched to python 3.8 (installed from python.org) and a specific new venv for finufft. I tried first with clang and then again following the GCC instructions but I'm still getting errors (output linked here). Thanks for your help, Ian |
Hello @iancze .. could you trying doing a Edit: I've put up wheels for Python 3.6/3.7, but we'll add 3.8 to the mix if things are otherwise working correctly. |
Dear @vineetbansal , thanks for preparing a new version! I just tried with my new python 3.8 with a venv and then saw your edit. Unless something is escaping me, it doesn't seem like there is a quick way for me to create a new 3.7 environment without also installing a new python executable? If a 3.8 wheel is coming shortly I will hold out to try that. |
I've just uploaded the wheels for Python 3.8 for the mac..There's no quick way for me to test these out right now, but I'd be interested to know if it worked. |
The 3.8 install worked great! This was in a new 3.8 venv with python downloaded from python.org and installed via |
Hi Ian, |
Thanks for the update!!
…On Sun, Oct 4, 2020 at 4:58 AM Alex Barnett ***@***.***> wrote:
Hi Ian,
We have pypi wheels for finufft the new py interface for finufft 2.0.0
now. Please switch if you want. Best, Alex
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#55 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADSH3G6PNJXY73GWC3TI3DSI7XIBANCNFSM4JOLPK3Q>
.
|
I was having a similar issue finding OpenMP_C via cmake on a Mac and solved it by running:
|
It seems as though I am encountering a similar build issue as #41, but the suggested fix there hasn't helped (yet).
I am on mac osx 10.15 and am following the installation instructions here: https://finufft.readthedocs.io/en/latest/install.html#tips-for-installing-dependencies-and-compiling-on-mac-osx
I installed
libomp
andfftw
using homebrew. I copied the mac clang makefilecp make.inc.macosx_clang make.inc
. I created a new python 3.7 conda environment, activated it and installedpybind11
andnumpy
to it.I set the environment variable
export MACOSX_DEPLOYMENT_TARGET=10.15
.Then I ran
make lib
andmake test
and as far as I can tell, all tests passed successfully (pasted at bottom).Then I ran
make python
which successfully calls my python3 pip (labeled pip, not pip3, since that's the system python3) from my conda environment, and successfully builds the python package. When it goes to import the package to run the demo, however, I get the error thatAny help would be greatly appreciated. Thanks! I still get the same error if I do
pip install .
Results from
make lib
andmake test
.The text was updated successfully, but these errors were encountered: