ACCESS-NRI / access-esm1.5-configs

Standard ACCESS-ESM1.5 configurations released and supported by ACCESS-NRI
Creative Commons Attribution 4.0 International
0 stars 1 forks source link

module not found in landuse change script #67

Open aidanheerdegen opened 3 weeks ago

aidanheerdegen commented 3 weeks ago

This PR https://github.com/ACCESS-NRI/access-esm1.5-configs/pull/66 used a work-around to access the python conda environment that is running payu.

This doesn't work because it's not opening a shell, and so doesn't have the module infra loaded, and throws this error:

./scripts/update_landuse_driver.sh: line 4: module: command not found
Traceback (most recent call last):
  File "/g/data/vk83/apps/payu/1.1.5/lib/python3.10/site-packages/payu/fsops.py", line 320, in _run_script
    subprocess.check_call(shlex.split(script_cmd))
  File "/g/data/vk83/apps/payu/1.1.5/lib/python3.10/subprocess.py", line 364, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/g/data/vk83/apps/payu/1.1.5/lib/python3.10/subprocess.py", line 345, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/g/data/vk83/apps/payu/1.1.5/lib/python3.10/subprocess.py", line 966, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/g/data/vk83/apps/payu/1.1.5/lib/python3.10/subprocess.py", line 1842, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: './scripts/update_landuse_driver.sh'
aidanheerdegen commented 3 weeks ago

One possible solution is to force the bash interpreter in the update landuse driver script to be a login shell.

If that doesn't work we can hard-code a path to a released python environment and flag to fix later.