get_worker_get_queue() crashing with worker without queues
Traceback (most recent call last):
File "vre-language/src/virtmat/language/utilities/errors.py", line 305, in wrapper
return func(*args, **kwargs)
File "vre-language/src/virtmat/language/cli/run_model.py", line 97, in run_workflow
session = Session(lp_obj, uuid=clargs.uuid, grammar_path=grammar_path,
File "vre-language/src/virtmat/language/interpreter/session.py", line 136, in __init__
self.process_models(model_str, model_path)
File "vre-language/src/virtmat/language/interpreter/session.py", line 226, in process_models
strns, paths, varies = self._process_strings_paths(model_str, model_path)
File "vre-language/src/virtmat/language/interpreter/session.py", line 247, in _process_strings_paths
vary_objs, model_str__ = self._parse_vary(model_str_)
File "vre-language/src/virtmat/language/interpreter/session.py", line 534, in _parse_vary
model = meta.model_from_str(full_model_str)
File "python-3.10.12/lib/python3.10/site-packages/textx/metamodel.py", line 694, in model_from_str
model = self._parser_blueprint.clone().get_model_from_str(
File "python-3.10.12/lib/python3.10/site-packages/textx/model.py", line 406, in get_model_from_str
model = parse_tree_to_objgraph(
File "python-3.10.12/lib/python3.10/site-packages/textx/model.py", line 964, in parse_tree_to_objgraph
call_obj_processors(m._tx_metamodel, m)
File "python-3.10.12/lib/python3.10/site-packages/textx/model.py", line 808, in call_obj_processors
result = call_obj_processors(
File "python-3.10.12/lib/python3.10/site-packages/textx/model.py", line 814, in call_obj_processors
result = call_obj_processors(metamodel, attr, metaattr.cls)
File "python-3.10.12/lib/python3.10/site-packages/textx/model.py", line 833, in call_obj_processors
return_value_grammar = metamodel.process(
File "python-3.10.12/lib/python3.10/site-packages/textx/metamodel.py", line 577, in process
raise e
File "python-3.10.12/lib/python3.10/site-packages/textx/metamodel.py", line 566, in process
return self._obj_processors.get(_type, lambda x: x)(value)
File "vre-language/src/virtmat/language/metamodel/workflow.py", line 69, in resources_processor
set_compute_resources(obj)
File "vre-language/src/virtmat/language/utilities/errors.py", line 212, in wrapper
raise TextXError(str(err), **get_location_context(obj)) from err
textx.exceptions.TextXError: None:2:11: 'NoneType' object has no attribute 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "python-3.10.12/bin/texts", line 8, in <module>
sys.exit(texts())
File "vre-language/src/virtmat/language/cli/__init__.py", line 28, in texts
clargs.func(clargs)
File "vre-language/src/virtmat/language/cli/run_model.py", line 154, in main
prog = run_workflow(clargs)
File "vre-language/src/virtmat/language/utilities/errors.py", line 307, in wrapper
process_error(err)
File "vre-language/src/virtmat/language/utilities/errors.py", line 295, in process_error
raise err.__cause__
File "vre-language/src/virtmat/language/utilities/errors.py", line 208, in wrapper
return func(*args, **kwargs)
File "vre-language/src/virtmat/language/metamodel/workflow.py", line 42, in set_compute_resources
obj.wcfg, obj.qcfg, nodes = get_config_nodes(obj.ncores, **res)
File "vre-language/src/virtmat/language/metamodel/workflow.py", line 26, in get_config_nodes
wcfg, qcfg = get_worker_get_queue(**res)
File "vre-middleware/src/virtmat/middleware/resconfig/qadapter.py", line 168, in get_worker_get_queue
validate_resources(wcfg, queue, g_name, **kwargs)
File "vre-middleware/src/virtmat/middleware/resconfig/qadapter.py", line 128, in validate_resources
if qcfg.name not in (q.name for q in wcfg.queues):
AttributeError: 'NoneType' object has no attribute 'name'
Edited by Ivan Kondov