Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module not found in landuse change script #67

Open
aidanheerdegen opened this issue Aug 23, 2024 · 1 comment
Open

module not found in landuse change script #67

aidanheerdegen opened this issue Aug 23, 2024 · 1 comment

Comments

@aidanheerdegen
Copy link
Member

This PR #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
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant