Skip to content

AttributeError: 'ListWithProvenance' object has no attribute 'get' #1451

@chrisdane

Description

@chrisdane

On levante and esm_tools release, I get

which esm_tools
/work/ab1095/a270073/sw/py/pkgs/bin/esm_tools
esm_tools --version
esm_tools, version 6.61.1

cd /home/a/a270073/esm/runscripts/awicm-1.0-recom
esm_runscripts awicm_recom_levante_ssp.run.yaml -e bla -c

Initializing run_number=1 and date=2015-01-01
Traceback (most recent call last):
  File "/work/ab1095/a270073/sw/py/pkgs/bin/esm_runscripts", line 33, in <module>
    sys.exit(load_entry_point('esm-tools', 'console_scripts', 'esm_runscripts')())
  File "/home/a/a270073/esm/esm_tools/src/esm_runscripts/cli.py", line 236, in main
    setup = SimulationSetup(command_line_config=command_line_config)
  File "/home/a/a270073/esm/esm_tools/src/esm_runscripts/sim_objects.py", line 113, in __init__
    self.config = prepare.run_job(self.config)
  File "/home/a/a270073/esm/esm_tools/src/esm_runscripts/prepare.py", line 19, in run_job
    helpers.evaluate(config, "prepare", "prepare_recipe")
  File "/home/a/a270073/esm/esm_tools/src/esm_runscripts/helpers.py", line 75, in evaluate
    config = esm_plugin_manager.work_through_recipe(
  File "/home/a/a270073/esm/esm_tools/src/esm_plugin_manager/esm_plugin_manager.py", line 159, in work_through_recipe
    config = getattr(submodule, workitem)(config)
  File "/home/a/a270073/esm/esm_tools/src/esm_runscripts/batch_system.py", line 791, in find_openmp
    omp_num_threads = str(config[model].get("omp_num_threads", 1))
AttributeError: 'ListWithProvenance' object has no attribute 'get'

(same error if esm_tools are installed to default ~/.local.)

Thanks and cheers!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions