Open LydiaMak opened 2 years ago
If I'm reading this error correctly I think we can solve it with either specifying a specific version of pip or using the --use-deprecated flag
. Thoughts @cmccully?
I have fixed the issue after I changed the docker file like that:
`# To make this a 32 bit version python:2.7.18-slim-stretch -> i386/python:2.7.18-slim-stretch FROM python:2.7.18-slim-stretch
ENV iraf /iraf/iraf/
ENV IRAFARCH linux64
RUN apt-get update \ && apt -y install gcc make flex git \ && apt-get install -y libffi-dev libssl-dev \ && apt -y install libcurl4-openssl-dev libexpat-dev libreadline-dev gettext \ && apt -y install libopenblas-dev liblapack-dev \ && apt-get autoclean \ && rm -rf /var/lib/apt/lists/*
RUN mkdir -p $iraf \ && cd /iraf \ && git clone https://github.com/iraf-community/iraf.git \ && cd $iraf \ && git checkout ba22d13 \ && ./install < /dev/null \ && make $IRAFARCH \ && make sysgen
RUN apt-get update \ && apt-get -y install libx11-dev libcfitsio-bin wget x11-apps libtk8.6 sextractor procps g++ \ mysql-client libmariadbclient-dev openssh-client wcstools libxml2 vim libssl1.0.2 zip pkg-config \ libpng-dev libfreetype6-dev libcfitsio-dev \ && apt-get autoclean \ && rm -rf /var/lib/apt/lists/*
RUN apt-get update \ && apt-get -y install autoconf \ && apt-get -y install automake \ && apt-get -y install libtool-bin \ && cd / \ && git clone https://github.com/astromatic/swarp.git \ && cd swarp \ && ./autogen.sh \ && ./configure \ && make \ && ln -s /swarp/src/swarp /usr/bin/
RUN ln -s /usr/bin/sextractor /usr/bin/sex
RUN python -m pip install --upgrade pip
RUN pip install numpy>=1.12 RUN pip install cryptography==2.4.1 astropy matplotlib==2.2.5 pyraf mysql-python scipy astroquery==v0.4 statsmodels==0.10 cython reproject
RUN pip install sep==1.0.3 git+https://github.com/dguevel/PyZOGY.git && rm -rf ~/.cache/pip
RUN wget http://ds9.si.edu/download/debian9/ds9.debian9.8.2.tar.gz \ && tar -xzvf ds9.debian9.8.2.tar.gz -C /usr/local/bin \ && rm -rf ds9.debian9.8.2.tar.gz
RUN wget http://cdsarc.u-strasbg.fr/ftp/pub/sw/cdsclient.tar.gz \ && tar -xzvf cdsclient.tar.gz -C /usr/src && rm cdsclient.tar.gz \ && cd /usr/src/cdsclient-* && ./configure && make && make install
RUN cd / \ && git clone https://github.com/acbecker/hotpants.git \ && cd hotpants \ && make \ && ln -s /hotpants/hotpants /usr/bin/
ENV LCOSNPIPE /lcogtsnpipe
RUN mkdir -p /home/supernova/iraf && /usr/sbin/groupadd -g 20000 "domainusers" \ && /usr/sbin/useradd -g 20000 -d /home/supernova -M -N -u 10197 supernova \ && chown -R supernova:domainusers /home/supernova \ && mkdir -p $LCOSNPIPE
RUN chown -R supernova:domainusers $LCOSNPIPE /usr/local
USER supernova
COPY --chown=supernova:domainusers . $LCOSNPIPE
WORKDIR $LCOSNPIPE/trunk
RUN python setup.py build -f && python setup.py install -f
WORKDIR /home/supernova/iraf
RUN mkiraf --term=xgterm -i
WORKDIR /home/supernova
ENTRYPOINT /bin/bash `
Thank you,
Lydia
reopening so we can remember to fix this for everyone else
To add on this, I also had to re-build the docker image like this:
docker build --platform=linux/amd64 -t lcogtsnpipe lcogtsnpipe
otherwise I was getting
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory
when I was trying to open ds9.
I am on macOS Monterey 12.4, Apple M1 chip and when I am trying the Docker-compose installation, I am getting this error.
` => ERROR [ 8/20] RUN pip install cryptography==2.4.1 astropy matplotlib==2.2.5 pyraf mysql-python scipy astroquery==v0.4 statsm 4.9s
I have installed libffi via brew.
Thank you,
Lydia