Open blanton144 opened 1 year ago
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 ...
SYSTEMD_EXEC_PID=2044
MODULEPATH=/home/blanton/modulefiles:/usr/modulefiles/Linux:/usr/modulefiles/Core:/usr/share/lmod/lmod/modulefiles/Core
VENDOR=unknown
SESSION_MANAGER=local/snow:@/tmp/.ICE-unix/2000,unix/snow:/tmp/.ICE-unix/2000
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/d491ca30_07bc_4e5a_b46c_b6e8407f7112
XDG_CURRENT_DESKTOP=ubuntu:GNOME
LMOD_CMD=/usr/share/lmod/lmod/libexec/lmod
WAYLAND_DISPLAY=wayland-0
TARG_TITLE_BAR_PAREN=
LMOD_DIR=/usr/share/lmod/lmod/libexec
LMOD_SETTARG_CMD=:
SSH_AUTH_SOCK=/tmp/ssh-XXXXXXRusQuP/agent.94762
COLORTERM=truecolor
QT_IM_MODULE=ibus
USER=blanton
DESKTOP_SESSION=ubuntu
XDG_MENU_PREFIX=gnome-
HOME=/home/blanton
BASH_ENV=/usr/share/lmod/lmod/init/bash
MODULESHOME=/usr/share/lmod/lmod
LMOD_COLORIZE=yes
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
MANPATH=/usr/share/lmod/lmod/share/man::
MODULEPATH_ROOT=/usr/modulefiles
LMOD_sys=Linux
SSH_AGENT_LAUNCHER=gnome-keyring
GTK_MODULES=gail:atk-bridge
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
OSTYPE=linux
XDG_SESSION_DESKTOP=ubuntu
MACHTYPE=x86_64
QT_ACCESSIBILITY=1
LMOD_PKG=/usr/share/lmod/lmod
LMOD_PREPEND_BLOCK=normal
GNOME_SETUP_DISPLAY=:1
LANG=en_US.UTF-8
LOGNAME=blanton
GNOME_TERMINAL_SERVICE=:1.124
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
HOST=snow
GNOME_SHELL_SESSION_MODE=ubuntu
LMOD_FULL_SETTARG_SUPPORT=no
PATH=/home/blanton/venv/test-lincc-release/bin:/opt/cisco/anyconnect/bin:/home/blanton/anaconda3/bin:/usr/local/bin:/home/blanton/.local/bin:/home/blanton/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_TYPE=wayland
LMOD_arch=x86_64
HOSTTYPE=x86_64-linux
LMOD_VERSION=6.6
SHELL=/bin/tcsh
VTE_VERSION=6800
USERNAME=blanton
XMODIFIERS=@im=ibus
XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.VN8OB2
PWD=/home/blanton
GROUP=blanton
XDG_SESSION_CLASS=user
TERM=wsvt25m
GDMSESSION=ubuntu
DISPLAY=:0
SHLVL=1
PAGER=less
EDITOR=vi
RSYNC_RSH=ssh
PERLLIB=/home/blanton/Dropbox/unixenv/perl
CONDA_EXE=/home/blanton/anaconda3/bin/conda
_CONDA_ROOT=/home/blanton/anaconda3
_CONDA_EXE=/home/blanton/anaconda3/bin/conda
CONDA_PYTHON_EXE=/home/blanton/anaconda3/bin/python
CONDA_SHLVL=0
BROWSER=/snap/bin/firefox
SSH_AGENT_PID=94763
VIRTUAL_ENV=/home/blanton/venv/test-lincc-release
VIRTUAL_ENV_PROMPT=(test-lincc-release)
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:
/usr/lib/x86_64-linux-gnu/libz.so.1
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.