NOAA-EMC / global-workflow

Global Superstructure/Workflow supporting the Global Forecast System (GFS)
https://global-workflow.readthedocs.io/en/latest
GNU Lesser General Public License v3.0
75 stars 170 forks source link

Jinja error during experiment creation on WCOSS #3087

Closed WalterKolczynski-NOAA closed 2 weeks ago

WalterKolczynski-NOAA commented 2 weeks ago

What is wrong?

Following the early November upgrade to Cactus, experiment creation now fails due to a non-existent jinja attribute:

The create_experiment command (./create_experiment.py -y ../ci/cases/pr/C48_ATM.yaml --overwrite) failed with a non-zero status.  Output:
Traceback (most recent call last):
  File "./create_experiment.py", line 33, in <module>
    from wxflow import AttrDict, parse_j2yaml, Logger, logit
  File "/lfs/h2/emc/ptmp/walter.kolczynski/PR/PR_3053/global-workflow/workflow/wxflow/__init__.py", line 13, in <module>
    from .jinja import Jinja
  File "/lfs/h2/emc/ptmp/walter.kolczynski/PR/PR_3053/global-workflow/workflow/wxflow/jinja.py", line 16, in <module>
    @jinja2.pass_eval_context
AttributeError: module 'jinja2' has no attribute 'pass_eval_context'

What should have happened?

setup_expt.py should create the experiment direction correctly.

What machines are impacted?

WCOSS2

What global-workflow hash are you using?

3FB68397

Steps to reproduce

  1. Clone on Cactus
  2. Load the gw_setup module
  3. Attempt to create an experiment

Additional information

Presumably this will temporarily go away when they switch production, the reappear after Dogwood is upgraded the week of Nov 18.

See also NOAA-EMC/global-workflow#3086

Do you have a proposed solution?

No response

DavidHuber-NOAA commented 2 weeks ago

Is there an issue open with the help desk?

aerorahul commented 2 weeks ago

The fix for this is simple. Load the python module in module_gwsetup.wcoss2.lua. For some reason, wcoss2 was using system python and not sure why that worked.

JongilHan66 commented 2 weeks ago

The fix for this is simple. Load the python module in module_gwsetup.wcoss2.lua. For some reason, wcoss2 was using system python and not sure why that worked.

@aerorahul Could you let me know how to load python module in module_gwsetup.wcoss2.lua specifically?

aerorahul commented 2 weeks ago

The fix for this is simple. Load the python module in module_gwsetup.wcoss2.lua. For some reason, wcoss2 was using system python and not sure why that worked.

@aerorahul Could you let me know how to load python module in module_gwsetup.wcoss2.lua specifically?

@JongilHan66 A fix was merged in #3053. The change can be seen here.

JongilHan66 commented 2 weeks ago

The fix for this is simple. Load the python module in module_gwsetup.wcoss2.lua. For some reason, wcoss2 was using system python and not sure why that worked.

@aerorahul Could you let me know how to load python module in module_gwsetup.wcoss2.lua specifically?

@JongilHan66 A fix was merged in #3053. The change can be seen here.

@aerorahul Thanks!!