so-wise / weddell_gyre_clusters

Unsupervised classification of Weddell Gyre profiles
MIT License
2 stars 1 forks source link

Problem installing GSW within current Docker image #22

Closed DaniJonesOcean closed 3 years ago

DaniJonesOcean commented 3 years ago

I ran into the following error attempting to install the TEOS-10 GSW python package:

jovyan@909d2de415ad:/work/weddell_gyre_clusters$ conda install -c conda-forge gsw
Collecting package metadata (current_repodata.json): done
Solving environment: - 
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - conda-forge/noarch::geocube==0.0.17=pyhd8ed1ab_0
  - conda-forge/noarch::xcube==0.7.0=pyhd8ed1ab_0
  - conda-forge/noarch::trollimage==1.15.1=pyhd8ed1ab_0
  - conda-forge/noarch::rio-cogeo==2.3.1=pyhd8ed1ab_0
  - conda-forge/noarch::datacube==1.8.3=py_1
  - conda-forge/noarch::rioxarray==0.5.0=pyhd8ed1ab_0
  - conda-forge/noarch::morecantile==2.1.2=pyhd8ed1ab_0
  - conda-forge/noarch::xarray_leaflet==0.1.13=pyhd8ed1ab_0
  - conda-forge/noarch::satpy==0.29.0=pyhd8ed1ab_0

This perhaps suggests that I should remove some of these packages, because I don't think that I need them.

DaniJonesOcean commented 3 years ago

More:

Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: | 
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - conda-forge/noarch::geocube==0.0.17=pyhd8ed1ab_0
  - conda-forge/noarch::xcube==0.7.0=pyhd8ed1ab_0
  - conda-forge/noarch::trollimage==1.15.1=pyhd8ed1ab_0
  - conda-forge/noarch::rio-cogeo==2.3.1=pyhd8ed1ab_0
  - conda-forge/noarch::datacube==1.8.3=py_1
  - conda-forge/noarch::rioxarray==0.5.0=pyhd8ed1ab_0
  - conda-forge/noarch::morecantile==2.1.2=pyhd8ed1ab_0
  - conda-forge/noarch::xarray_leaflet==0.1.13=pyhd8ed1ab_0
  - conda-forge/noarch::satpy==0.29.0=pyhd8ed1ab_0
done

## Package Plan ##

  environment location: /srv/conda/envs/notebook

  added / updated specs:
    - gsw

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    rasterio-1.1.8             |   py38h37fbd03_0         8.2 MB  conda-forge
    ------------------------------------------------------------
                                           Total:         8.2 MB

The following NEW packages will be INSTALLED:

  rasterio           conda-forge/linux-64::rasterio-1.1.8-py38h37fbd03_0

Proceed ([y]/n)? Killed

I'm not sure why it was killed.

DaniJonesOcean commented 3 years ago

And now seaborn isn't working either, which isn't as critical. I wonder if the image is now muddled and should be re-created from the container?

DaniJonesOcean commented 3 years ago

A quick "pip" install at the top of a notebook seems to work fine.

import sys
!pip install gsw

I suppose we could try to "future-proof" this by selecting a particular version for the pip download. We can also eventually get this into the Docker container we'll be using, I would think.

(Let's work on this issue a bit later.)

DaniJonesOcean commented 3 years ago

Closing this and moving the comment about future-proofing the GSW install to a different issue.