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
pip install error on OS X 10.11 #58
Comments
Hi, thanks for your feedback! I haven't tested the Python 3 version myself, maybe @ilyaraz has more insights. Both of us have a paper deadline this week, so it might take us a few days until we can look into this issue in more detail. Sorry about that! |
I actually tried to download it and compile it myself, but I'm experiencing compilation problems too. If you think it can be useful I can post those errors too. |
Yes, that would probably be useful. Thanks! |
Ok, first of all I had to change the include dir inside the make file to
|
These are different errors than in your initial gist, correct? To me it looks like the swig wrapper is not working correctly. Does FALCONN work with Python 2 on your machine? |
Yes, these are errors while trying to compile from sources, the ones in the gist were errors when trying to install with pip. I just tried to install FALCONN on python 2 with pip and it installed just fine. |
I'm now running into this issue using pip with Python 3.5 on Debian, (this docker image actually). I'm curious if a workaround was found already? I tried adding a symlink to the numpy include library but that didn't help. |
@w4nderlust @rjchacko can you try to clone the repo and run |
Now I'm on OSX 10.12. Installed swig using homebrew, so swig 3.0.0 is installed as The problem is that i get a clang error when i try to compile even if there's no clang in the makefil. It could be that somewhere else gcc is called (and not the path that I pasted) and that is defaulted to clang. The command failing is: Attached is the full output. |
@w4nderlust Perhaps, this is called during |
@ludwigschmidt Since I don't have a machine with OSX, can you try to reproduce it? I suspect the problem is with mixing |
Just to confirm: the issue of @w4nderlust occurs with Python 2.7, right? I can run I'm also not 100% sure why clang is compiling the code in the end. I guess the What is your compiler, @w4nderlust ? I get the following output for
|
Regarding the questions about Python 3.5 (@w4nderlust's original gist and maybe also the issue of @rjchacko): I ran into the same problem locally. It looks like this is a bug in swig and fixed in version 3.0.8: https://sourceforge.net/p/swig/mailman/message/34688087/ After I upgraded to swig version 3.0.8 I could compile FALCONN again. Let us know if that also solves the problem for you. |
@ludwigschmidt yes, python 2.7. My clang version is 8:
Anyway, i created a new venv with python 2.7, installed numpy and then run I created a new virtual environment with python3, installed numpy and tried to install falconn and got the error attached. I also tried to compile in that venv, and got this: falcon_pr_error_from_source.txt My swig, installed from homebrew, is version 3.0.8 and was compiled with clang (maybe that's the problem?) |
OK, glad to hear that Regarding Python 3, the second log does not contain any errors, correct? So it looks like you can compile the code from the repo but not from PyPi. Probably the reason is that the PyPi package contains a swig wrapper generated with a version of swig that contained the bug (pre 3.0.8). @ilyaraz , can you create a new PyPi package generated with a current swig (3.0.8)? Then we should have addressed all points in this issue :-) Thanks! |
@ludwigschmidt last time i was trying to compile from source, while this time I downloaded the package from pip. In the meantime I also updated swig, so it is likely that it was the problem for python 2.7 too. Sorry if I can't be more precise, but I continuously have to keep up with latest versions for work and I don't always keep track of all the changes that I make to my configuration. |
Cool, glad that FALCONN works for you with both Python 2 and 3 now! We'll update the PyPi package soon. |
So, the only problem with the PyPi package is that it was built with a wrong version of |
Yes, that is my understanding. |
It's somewhat unfortunate that swig caused this bug. I guess in an ideal world, we'd have our own Python wrapping code independent of swig. But for now swig is what we have. |
@ludwigschmidt can you try this version of the package? |
|
I've made a new release and uploaded the new package to PyPi. |
Hello,
I'm experiencing the following error while trying to instal falconn with pip install.
Gist
My Setup: OS X 10.11, virtual environment with python 3.5 and numpy 1.11.1 . Shouldn't make a difference, but I have Eigen installed with homebrew.
The text was updated successfully, but these errors were encountered: