Coder Social home page Coder Social logo

Comments (1)

jreiberkyle avatar jreiberkyle commented on June 4, 2024

I traced this to gdal being installed using the conda defaults channel, not the (specified) conda-forge channel. Evidence:

>$docker run -it planet-notebooks conda list gdal
# packages in environment at /opt/conda:
#
# Name                    Version                   Build  Channel
gdal                      3.0.2            py37hbb2a789_0    defaults
libgdal                   3.0.2                h27ab9cc_0    defaults

I have changed the conda install line in Dockerfile from

RUN conda install -y -c conda-forge --file /tmp/requirements.txt

to

RUN conda config --set channel_priority strict && \
    conda install -y -c conda-forge --file /tmp/requirements.txt

Now gdal is installed from the conda-forge channel

>4docker run -it planet-notebooks conda list gdal
# packages in environment at /opt/conda:
#
# Name                    Version                   Build  Channel
gdal                      3.0.4            py37hbb6b9fb_1    conda-forge
libgdal                   3.0.4                h022d3c0_1    conda-forge

No error is thrown when I run

docker run -it planet-notebooks:try2 python -c "import rasterio"

from notebooks.

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.