Hi all,
I am having trouble running a “hello world”-style workflow. It’s running in a new conda environment and it runs my hello_world job. But tui shows the job eventually getting to submit-failed state with “command not found error” in job.err. I worried I have a conda problem that is mucking up the operation.
I am running cylc-8.1.4. I set up a new conda environment to run it and installed via mamba
$> conda create --name cylc-8.1 python=3.9
$> conda activate cylc-8.1
$> conda install -c conda-forge mamba
$> mamba install -c conda-forge cylc-flow cylc-uiserver
My suite is pretty small:
#!jinja2
{% set HW_DIR = "/backup/josborne/projects/cylc-training/hello_world" %}
{% set NEWPATH = '/backup/josborne/toolbox/python/anaconda3/envs/cylc-8.1/bin:' + environ['PATH'] %}
[scheduling]
initial cycle point = now
final cycle point = 20311231T00
[[graph]]
PT2M = @wall_clock => hello_world
[runtime]
[[root]]
[[[environment]]]
PATH = {{NEWPATH}}
HW_DIR = {{HW_DIR}}
[[hello_world]]
script = """
DTG=$(date +%Y%m%d%H%M%S)
echo "hello world!" >> $HW_DIR/hello_world.log.$DTG 2>&1
echo "check cylc" >> $HW_DIR/hello_world.log.$DTG 2>&1
which cylc >> $HW_DIR/hello_world.log.$DTG 2>&1
echo $PATH >> $HW_DIR/hello_world.log.$DTG 2>&1
"""
I’ve followed the “Managing Environments” directions at Installation — Cylc 8.1.4 documentation . I’ve tried CYLC_HOME_ROOT="/backup/josborne/toolbox/python/anaconda3/envs/cylc-8.1"
and CYLC_HOME_ROOT="/backup/josborne/toolbox/python/anaconda3/envs/cylc-8.1/bin"
. In that bin dir, I’ve linked cylc to cylc-8.1.4:
$> ls -l /backup/josborne/toolbox/python/anaconda3/envs/cylc-8.1/bin/cylc-8.1.4
lrwxrwxrwx 1 josborne josborne 4 May 15 16:32 /backup/josborne/toolbox/python/anaconda3/envs/cylc-8.1/bin/cylc-8.1.4 -> cylc
I validate, install, and play the workflow. tui shows the job in submitted then submit-failed status. I check my script’s log and I get what I expect:
hello world!
check cylc
/backup/josborne/toolbox/python/anaconda3/envs/cylc-8.1/bin/cylc
/backup/josborne/toolbox/python/anaconda3/envs/cylc-8.1/bin:/backup/josborne/toolbox/python/anaconda3/envs/cylc-8.1/bin:/backup/josborne/toolbox/python/anaconda3/condabin:/common/krb5:/bin:/common/pgi/15.7/linux86-64/bin:/common/openmpi/pgi15.7/1.10.4/bin:/sbin:/usr/local/bin:/common/pkg/bin:/common/utilities/bin:/home/josborne/bin:.
But, in my job.err file, I get a command not found:
ERROR: cylc-8.1.4 not found in /backup/josborne/toolbox/python/anaconda3/envs/cylc-8.1
ERROR: cylc-8.1.4 not found in /backup/josborne/toolbox/python/anaconda3/envs/cylc-8.1
Any advice would be appreciated. Thanks in advance.