Has anyone run into an issue where installing cylc-flow via conda-forge hangs? I’ve run into this issue on a couple of machines now, where I get the following:
(cylc810) [bcash@cola1 ~]$ conda install -c conda-forge cylc-flow
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: /
… and then it just stays in Solving environment until the conda process runs out of memory and/or is killed. Another member of our group tried installing as well, all into new clean environments, without success.
Jan 27 12:05:37 cylc8dr kernel: Out of memory: Kill process 8340 (conda) score 827 or sacrifice child
Jan 27 12:05:37 cylc8dr kernel: Killed process 8340 (conda), UID 0, total-vm:10735864kB, anon-rss:7044044kB, file-rss:0kB, shmem-rss:0kB
Installing and using Mamba does the trick but installing Mamba required conda-forge repo.to be specified as below:
This is the problem. Off the top of my head, Cylc currently requires Python 3.7 to 3.9 (or possibly 3.10?).
I hit this myself the other day. I think it was to do with installing mamba first, without specifying the Python version. A “pinned” package means conda (and mamba) can’t change the version when solving the environment.
But you can force it, something like this:
$ mamba install python==3.9 # downgrade Python
$ mamba install cylc-flow cylc-uiserver # should now work