Dear AiiDA users and developers,
I am in trouble running "2020 AiiDA tutorial week “Virtual Edition”"
Sec. 6 "A real world workchain example: electronic band structure". I
am not very sure if this is my problem or not. If this is an issue
that should be fixed, I would like to know the appropriate place that
I can raise an issue. The issue is summarized as below.
I use QuantumMobile v21.05.1 (thanks Chris for the update!). The
PwBandStructureWorkChain calculation crashes. I attach the log at the
end of this e-mail.
The versions of the aiida plugins are:
aiida-core 1.6.1 /home/max/codes/aiida-core
aiida-pseudo 0.6.0
aiida-quantumespresso 3.4.1
It seems the change in PwBandStructureWorkChain
if not isinstance(upf, UpfData)
->
if not isinstance(upf, UpfData) and not isinstance(upf, LegacyUpfData):
passes this issue. But after this tentative change, I have another issue.
------------
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/plumpy/process_states.py",
line 230, in execute
result = self.run_fn(*self.args, **self.kwargs)
File "/home/max/codes/aiida-core/aiida/engine/processes/workchains/workchain.py",
line 214, in _do_step
finished, stepper_result = self._stepper.step()
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/plumpy/workchains.py",
line 299, in step
finished, result = self._child_stepper.step()
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/plumpy/workchains.py",
line 250, in step
return True, self._fn(self._workchain)
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/aiida_quantumespresso/workflows/pw/relax.py",
line 362, in results
if self.inputs.base.pw.parameters['CONTROL']['calculation'] != 'scf':
KeyError: 'calculation'
------------
There seems to be no key 'calculation' in this dictionary. I could
not inspect how the
self.inputs.base.pw is set quickly, but I doubt if
this check is necessary or not.
I would appreciate it if you could give me any advice to understand this issue.
Best regards,
Togo
-------
The log is given below:
$ verdi run run_band.py
05/07/2021 04:47:08 AM <6750>
aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT]
[2135|PwBandStructureWorkChain|setup_protocol]: running the workchain
with the "theos-ht-1.0" protocol
/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/aiida_quantumespresso/utils/pseudopotential.py:102:
AiidaDeprecationWarning: this function is deprecated and will be
removed in `v4.0.0`.
warnings.warn('this function is deprecated and will be removed in
`v4.0.0`.', AiidaDeprecationWarning)
05/07/2021 04:47:09 AM <6750>
aiida.orm.nodes.process.workflow.workchain.WorkChainNode: [REPORT]
[2135|PwBandStructureWorkChain|on_except]: Traceback (most recent call
last):
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/plumpy/process_states.py",
line 230, in execute
result = self.run_fn(*self.args, **self.kwargs)
File "/home/max/codes/aiida-core/aiida/engine/processes/workchains/workchain.py",
line 214, in _do_step
finished, stepper_result = self._stepper.step()
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/plumpy/workchains.py",
line 299, in step
finished, result = self._child_stepper.step()
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/plumpy/workchains.py",
line 250, in step
return True, self._fn(self._workchain)
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/aiida_quantumespresso/workflows/pw/band_structure.py",
line 147, in run_bands
'base': get_common_inputs(),
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/aiida_quantumespresso/workflows/pw/band_structure.py",
line 131, in get_common_inputs
'pseudos': get_pseudos_from_dict(self.inputs.structure, known_pseudos),
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/aiida_quantumespresso/utils/pseudopotential.py",
line 121, in get_pseudos_from_dict
raise ValueError(f'Node with UUID {uuid} is not a UpfData')
ValueError: Node with UUID daed0023-e341-4b10-8df1-d8dda12c3ad8 is not a UpfData
Traceback (most recent call last):
File "/home/max/.virtualenvs/aiida/bin/verdi", line 12, in <module>
sys.exit(verdi())
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/click/core.py",
line 829, in __call__
return self.main(*args, **kwargs)
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/click/core.py",
line 782, in main
rv = self.invoke(ctx)
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/click/core.py",
line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/click/core.py",
line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/click/core.py",
line 610, in invoke
return callback(*args, **kwargs)
File "/home/max/codes/aiida-core/aiida/cmdline/utils/decorators.py",
line 65, in wrapper
return wrapped(*args, **kwargs)
File "/home/max/codes/aiida-core/aiida/cmdline/commands/cmd_run.py",
line 147, in run
exec(compile(handle.read(), scriptname, 'exec',
dont_inherit=True), globals_dict) # yapf: disable # pylint:
disable=exec-used
File "run_band.py", line 11, in <module>
structure=structure_Al
File "/home/max/codes/aiida-core/aiida/engine/launch.py", line 41, in run
return runner.run(process, *args, **inputs)
File "/home/max/codes/aiida-core/aiida/engine/runners.py", line 266, in run
result, _ = self._run(process, *args, **inputs)
File "/home/max/codes/aiida-core/aiida/engine/runners.py", line 250, in _run
process_inited.execute()
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/plumpy/processes.py",
line 81, in func_wrapper
return func(self, *args, **kwargs)
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/plumpy/processes.py",
line 1166, in execute
return self.future().result()
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/plumpy/process_states.py",
line 230, in execute
result = self.run_fn(*self.args, **self.kwargs)
File "/home/max/codes/aiida-core/aiida/engine/processes/workchains/workchain.py",
line 214, in _do_step
finished, stepper_result = self._stepper.step()
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/plumpy/workchains.py",
line 299, in step
finished, result = self._child_stepper.step()
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/plumpy/workchains.py",
line 250, in step
return True, self._fn(self._workchain)
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/aiida_quantumespresso/workflows/pw/band_structure.py",
line 147, in run_bands
'base': get_common_inputs(),
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/aiida_quantumespresso/workflows/pw/band_structure.py",
line 131, in get_common_inputs
'pseudos': get_pseudos_from_dict(self.inputs.structure, known_pseudos),
File "/home/max/.virtualenvs/aiida/lib/python3.7/site-packages/aiida_quantumespresso/utils/pseudopotential.py",
line 120, in get_pseudos_from_dict
raise ValueError(f'Node with UUID {uuid} is not a UpfData')
ValueError: Node with UUID daed0023-e341-4b10-8df1-d8dda12c3ad8 is not a UpfData
--
Atsushi Togo