Giter Site home page Giter Site logo

Comments (4)

yohaimagen avatar yohaimagen commented on July 29, 2024

Hi I am getting the same error
after doing
$ git clone https://github.com/isce-framework/isce2.git
$ cd isce2
$ docker build --rm --force-rm -t hysds/isce2:latest -f docker/Dockerfile .

is there any solve? or updates?

from isce2.

nickygb avatar nickygb commented on July 29, 2024

I couldn't make it work, so I have forked the repo and create a dockerfile based on ubuntu image. Here https://github.com/nickygb/isce2/blob/docker/docker/Dockerfile.ubuntu

from isce2.

yohaimagen avatar yohaimagen commented on July 29, 2024

I think the issue is incompatibility with some of the packages and python 3.8 which is the now the default of Anaconda. a work around that I found is to downgrade the python version to 3.7 by changing the following commands in the Dockerfile:

at line 22

RUN set -ex \
 && . /opt/conda/bin/activate root \
 && conda install --yes \
      cython \
      gdal \
      git \
      h5py \
      libgdal \
      pytest \
      numpy \
      fftw \
      scipy \
      scons \
      hdf4 \
      hdf5 \
      netcdf4 \
      libgcc \
      libstdcxx-ng \
      cmake \
      opencv \
 && yum install -y uuid-devel x11-devel motif-devel jq \
 && ln -sf /opt/conda/bin/cython /opt/conda/bin/cython3 \
 && mkdir -p /opt/isce2/src 

to

RUN set -ex \
 && . /opt/conda/bin/activate root \
 && conda install python=3.7 \
 &&  conda install --yes \
      cython \
      gdal \
      git \
      h5py \
      libgdal \
      pytest \
      numpy \
      fftw \
      scipy \
      scons \
      hdf4 \
      hdf5 \
      netcdf4 \
      libgcc \
      libstdcxx-ng \
      cmake \
      opencv \
 && yum install -y uuid-devel x11-devel motif-devel jq \
 && ln -sf /opt/conda/bin/cython /opt/conda/bin/cython3 \
 && mkdir -p /opt/isce2/src

and at line 93

RUN set -ex \
 && sudo /opt/conda/bin/conda install --yes \
      gdal \
      h5py \
      libgdal \
      pytest \
      numpy \
      fftw \
      scipy \
      hdf4 \
      hdf5 \
      netcdf4 \
 && sudo yum update -y \
 && sudo yum install -y uuid-devel x11-devel motif-devel gcc-gfortran \
 && cd /opt/conda/lib \
 && sudo unlink libuuid.so \
 && sudo unlink libuuid.so.1 \
 && sudo ln -s /lib64/libuuid.so.1.3.0 libuuid.so \
 && sudo ln -s /lib64/libuuid.so.1.3.0 libuuid.so.1 \
 && cd /lib64 \
 && ( test -f libgfortran.so || sudo ln -sv libgfortran.so.*.* libgfortran.so ) \
 && sudo yum install -y /tmp/isce-2.3-1.x86_64.rpm \
 && sudo yum clean all \
 && sudo rm -rf /var/cache/yum \
 && sudo rm /tmp/isce-2.3-1.x86_64.rpm

to

RUN set -ex \
 && sudo /opt/conda/bin/conda install python=3.7 \
 && sudo /opt/conda/bin/conda install --yes \
      gdal \
      h5py \
      libgdal \
      pytest \
      numpy \
      fftw \
      scipy \
      hdf4 \
      hdf5 \
      netcdf4 \
 && sudo yum update -y \
 && sudo yum install -y uuid-devel x11-devel motif-devel gcc-gfortran \
 && cd /opt/conda/lib \
 && sudo unlink libuuid.so \
 && sudo unlink libuuid.so.1 \
 && sudo ln -s /lib64/libuuid.so.1.3.0 libuuid.so \
 && sudo ln -s /lib64/libuuid.so.1.3.0 libuuid.so.1 \
 && cd /lib64 \
 && ( test -f libgfortran.so || sudo ln -sv libgfortran.so.*.* libgfortran.so ) \
 && sudo yum install -y /tmp/isce-2.3-1.x86_64.rpm \
 && sudo yum clean all \
 && sudo rm -rf /var/cache/yum \
 && sudo rm /tmp/isce-2.3-1.x86_64.rpm

from isce2.

rtburns-jpl avatar rtburns-jpl commented on July 29, 2024

Looks like you've already found a workaround, but you can also check out #185. The gist of that is to drop netcdf4, and install opencv via the system package manager, since conda's opencv doesn't support py38 yet. That's the setup we're planning to use for our testing.

from isce2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.