zmlabe / IceVarFigs

🌀 Weather and climate graphics for science communication 🌀
https://zacklabe.com/
MIT License
82 stars 21 forks source link

PackagesNotFoundError / UnsatisfiableError #3

Closed rhodrid closed 5 years ago

rhodrid commented 5 years ago

Thanks for the amazing graphics you make. They're terrifyingly beautiful. I'm trying to generate an SVG of Arctic Sea Ice Volume to print on a large banner. However, I'm not getting very far and am having no luck installing the dependencies.

OS: Ubuntu 18.04 Anaconda: 3 2019.03 Linux x86_64

conda create --name ice python=3.6
conda activate ice
conda config --add channels conda-forge
conda config --set channel_priority strict
conda install --file requirements.txt

conda install gives the following error

PackagesNotFoundError: The following packages are not available from current channels:

  - basemap==1.1.0=py36_2
  - geos==3.5.1=1

If I install basemap-1.1.0-py36_2.tar.bz2 & geos-3.5.1-1.tar.bz2 from the repo I get a UnsatisfiableError and if I remove them from requirements.txt I get the same.

MarvinKweyu commented 5 years ago

Tried using pip instead?

rhodrid commented 5 years ago

@MarvinKweyu I did try it before I tried it with Anaconda.

pip3 install -r requirements.txt
Invalid requirement: '_license=1.1=py36_1'
= is not a valid operator. Did you mean == ?
rhodrid commented 5 years ago

I've also tried conda create --name ice3 --file requirements.txt as per the first line of requirements.txt.

conda create --name ice3 --file requirements.txt
WARNING: The conda.compat module is deprecated and will be removed in a future release.
Collecting package metadata: done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - geos==3.5.1=1
  - basemap==1.1.0=py36_2

Current channels:

  - https://conda.anaconda.org/conda-forge/linux-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/linux-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/free/linux-64
  - https://repo.anaconda.com/pkgs/free/noarch
  - https://repo.anaconda.com/pkgs/r/linux-64
  - https://repo.anaconda.com/pkgs/r/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.
zmlabe commented 5 years ago

Hello! I am very sorry for the environment errors. I have now updated requirements.txt to Python 3.7. There may be issues on your distribution with Basemap, and I recommend following the tips from https://github.com/matplotlib/basemap/issues/419.

rhodrid commented 5 years ago

Thanks! I've managed to get it to work on ubuntu bionic64 🎉

I had to update two package versions

-palettable=3.2.0=pypi_0
+palettable=3.2.0=py_0
-windspharm=1.7.0=py37_1000
+windspharm=1.7.0=py37_1001

Installation Steps

sudo apt install dvipng imagemagick texlive-latex-extra
wget https://repo.anaconda.com/archive/Anaconda3-2019.07-Linux-x86_64.sh
bash Anaconda3-2019.07-Linux-x86_64.sh
export PROJ_LIB=$CONDA_PREFIX/share/proj
git clone https://github.com/zmlabe/IceVarFigs.git
cd IceVarFigs
conda config --add channels conda-forge
conda config --set channel_priority true
conda create --name ice --file requirements.txt
conda activate ice