-
Notifications
You must be signed in to change notification settings - Fork 58
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
cfitsio build failure #384
Comments
Looks like the build cannot find zlib. What kinds of variables that effect include and linking are in your environment? |
Like LD_LIBRARY_PATH or C_INCLUDE_PATH? Nothing like that (I think!). My env is reproduced below ...
|
Ok. Do you have zlib locally somewhere? |
"apt install zlib1g" claims it is already installed, yes. Presumably wherever Ubuntu normally puts it. I am not 100% sure what it calls itself, but there is this:
A bit surprised configure can't find that, but I haven't really used configure in anger in a very long time! |
Ok. It looks like you have a conda env going? You can use conda install fitsio maybe? |
You'll need conda-forge in your channels. |
For using fitsio myself yes that does work. And in pretty much every context I work we have miniconda or conda distributions. My test was of installing the dependencies of a different product (kcorrect) in a generic Python distribution on Ubuntu (in this case a venv). That failed, and I would prefer it not fail, so I removed the fitsio dependency in favor of astropy.io.fits (the dependency on FITS I/O is really only in two lines in the code). But it might still be considered a problem if 'pip install fitsio==1.2.0' fails on non-Anaconda Python distributions ... I will leave it up to you to decide that! |
Mike, can you please post a minimal example of using the ubuntu python to create a venv and install fitsio? |
On a Linux Ubuntu system (33~22.04.1-Ubuntu) in Python 3.11, I am encountering an error with, 'pip install fitsio', which is trying to install fitsio 1.2.0. The error is below.
The text was updated successfully, but these errors were encountered: