-
Notifications
You must be signed in to change notification settings - Fork 46
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 fails: "xsFortran.h: no such file or directory" #136
Comments
It will detected if the HEADAS environment variable is set and then tries to load the library with ctypes. I think we need to print out more debug info when this fails and escape the failure. Temporary solutions:
you can also clone and try to print out some info from he setup file looking here: https://github.com/threeML/astromodels/blob/master/setup.py#L56 and here: https://github.com/threeML/astromodels/blob/master/setup.py#L228 @ndilalla We (?) need to write some more info for the XSPEC install.. it may be outdated, but I think we do not cover all the corner cases. |
build_ext does not sound like ctypes, more like it is trying to compile astromodels/xspec/src/_xspec.cc against xspec headers. |
I think the issue is that it finds the libs, but we currently assume the headers are in a normal place. I'm cooking up a solution now. |
@JohannesBuchner Ok, I believe the issues is fixed in #137 @ndilalla can we speed release this one as it can easily break pip install? |
I have run into this issue again and the suggestion in the error message did not work for me for setting XSPEC_INC_PATH (see grburgess/ronswanson#11). what I had to do was |
I tried to install threeML, but astromodels failed. I think it tried to use the xspec installation from my home directory -- is it looking for the source files?
This is on Ubuntu Linux 20.04, Python 3.8.5, no python environments.
The text was updated successfully, but these errors were encountered: