payu-org / payu

A workflow management tool for numerical models on the NCI computing systems
Apache License 2.0
18 stars 25 forks source link

Installing payu v1.0.30 via conda is failing #413

Closed SeanBryan51 closed 5 months ago

SeanBryan51 commented 5 months ago

Installing payu=1.0.30 in a bare custom conda environment on Gadi seems to fail:

$ conda install -c accessnri payu=1.0.30
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: |
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.28=0
  - python=3.11 -> libgcc-ng[version='>=11.2.0'] -> __glibc[version='>=2.17']

Your installed version is: 2.28

To reproduce:

module use /g/data/hh5/public/modules
module load conda
conda create -y -n payu-install-test python=3.11
conda activate payu-install-test
conda install -c accessnri payu=1.0.30

Note: these instructions assume you have done the necessary steps for creating personal conda environments found at http://climate-cms.wikis.unsw.edu.au/Conda#Creating_personal_environments

aidanheerdegen commented 5 months ago

I reproduced your error.

This worked for me

mamba create -c conda-forge -c accessnri -c coecms -y -n payu-install-test-310 python=3.10 payu=1.0.30
$ conda activate payu-install-test-310
$ which payu
/scratch/tm70/aph502/conda/envs/payu-install-test-310/bin/payu
(payu-install-test-310) (base) [aph502@gadi-login-02 scratch]$ payu -h
usage: payu [-h] [--version] {archive,build,collate,ghsetup,init,list,profile,push,run,setup,sweep,sync} ...

positional arguments:
  {archive,build,collate,ghsetup,init,list,profile,push,run,setup,sweep,sync}

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit

I used mamba for the build because it is so much faster.

The equivalent python-3.11 build also worked:

mamba create -c conda-forge -c accessnri -c coecms -y -n payu-install-test-311 python=3.11 payu=1.0.30

Is that an acceptable work-around?

I note we've not got yamanifest deploying to accessnri, so currently you will also need to use the coecms channel when installing payu.

SeanBryan51 commented 5 months ago

Thanks Aidan, your work-around works for me. I'll close this issue.