-
Notifications
You must be signed in to change notification settings - Fork 24
[Installation issue]: python fails to build in a virtualenv due to pybind #93
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
Comments
@LElgueddari Did you install pybind11 before building PySAP? |
Yes , pybind 11 was installed but it seems more like |
OK, it looks like this is a known issue with pybind11 and virtualenv. I will try to reproduce this error and see if I can find a solution. |
Except that when I run Could we export this path and include it in the |
I believe we can. Can you tell me exactly what you did that solved the issue for you? |
Sure in: pysap/sparse2d/python/CMakeLists.txt Line 43 in 732a014
I change it to: |
It appears that this issue comes from two sources. Firstly that virtualenv creates a separate pysap/sparse2d/python/CMakeLists.txt Line 13 in 732a014
where I have opened PR #94 with a potential fix. For this fix you will need to set the environment variable |
Still getting the same issue |
Resolved in #94 |
So what exactly should the |
I see that in this line: the |
@zaccharieramzi The The Python executable should be in Please let me know if your virtualenv was configured differently. |
There's two different things, the first one is that |
I am sorry I got confused between headers and executable. The executable is indeed in |
@LElgueddari I had indeed installed I didn't understand your second note on the |
@LElgueddari I did not know about this variable. I agree it would be easier to use this as it is automatically set when the environment is activated. I will update this soon. @zaccharieramzi Can you tell me what the contents of your |
Output of |
OK, @LElgueddari and @zaccharieramzi can you both let me know the setup you used so that I can investigate why the headers are not in the same place. |
I used |
@zaccharieramzi What OS are you using? and what version of virtualenv? |
OS: ubuntu 16.04 |
@zaccharieramzi I have not been able to reproduce your issue. Even using virtualenv v16.0.0 on Linux it still puts all the python headers in the include directory. |
I indeed reinstalled my virtual environment and the python headers are at the right place. Checking right now to see if t works. |
It works ! |
I tried to install
pysap
in avirtualenv
and it could not findpybind.h
. Here is the error that I get:The text was updated successfully, but these errors were encountered: