Bug with scheduler type "localCluster"
Hello the team
When we launch Iota2.py with scheduler type to "localCluster" and provide a ressources configuration file, execution stops with :
Traceback (most recent call last):
File "/home/sorlaty/anaconda3/envs/iota2env/bin/Iota2.py", line 11, in <module>
sys.exit(main())
File "/home/sorlaty/Laos/iota2/iota2-develop/iota2/Iota2.py", line 274, in main
run(
File "/home/sorlaty/Laos/iota2/iota2-develop/iota2/Iota2.py", line 149, in run
delayed_graph = graph.build_graph()
File "/home/sorlaty/Laos/iota2/iota2-develop/iota2/sequence_builders/i2_sequence_builder.py", line 104, in build_graph
_ = [
File "/home/sorlaty/Laos/iota2/iota2-develop/iota2/sequence_builders/i2_sequence_builder.py", line 105, in <listcomp>
step() for step in self.container[self.starting_step : self.ending_step + 1]
File "/home/sorlaty/Laos/iota2/iota2-develop/iota2/steps/check_inputs_step.py", line 33, in __init__
super().__init__(cfg, cfg_resources_file, self.resources_block_name)
File "/home/sorlaty/Laos/iota2/iota2-develop/iota2/steps/iota2_step.py", line 275, in __init__
self.job_helper = JobHelper(
File "/home/sorlaty/Laos/iota2/iota2-develop/iota2/steps/i2_job_helpers.py", line 425, in __init__
self.resources = self.parse_resource_file(
File "/home/sorlaty/Laos/iota2/iota2-develop/iota2/steps/i2_job_helpers.py", line 565, in parse_resource_file
if cfg_resources_file and cfg_resources_file.exists():
AttributeError: 'str' object has no attribute 'exists'
If I well understand, the following change should be done at https://framagit.org/iota2-project/iota2/-/blob/develop/iota2/steps/i2_job_helpers.py?ref_type=heads#L425 :
cfg_resources_name, cfg_resources_file` to `cfg_resources_name, self.cfg_resources_file
Vincent