Closed ltalirz closed 6 years ago
This is not necessarily a problem with the upf
command but rather with the new verdi data
command hook that was introduced in PR #993
The problem is with the following snippet
class Data(VerdiCommandRouter):
def __init__(self):
....
for ep in plugin_list('cmdline.data'):
cmd = get_plugin('cmdline.data', ep)
self.routed_subcommands[cmd.name] = verdi
The routed_subcommands
is to be dynamically updated with commands registered under the aiida.cmdline.data
entry point, however it tries to get the name through the name attribute which is not implemented. I am not sure what should be used here. I thought you tested this (manually) before the release and it worked., but now I can't see how it could ever have, unless you manually implemented a name
attribute for your data command class. I am assigning @DropD for this issue
Thanks @sphuber for checking this out. I should probably become a bit more rigorous in my pull request reviews... ;) @DropD Could you please look into this? This is currently blocking the next release of Quantum Mobile...
At first glance I think this might have to do click.group
and click.command
, one of them having a .name
attribute, the other not.
The Data command expects plugin commands to be a click.group
Hang on, what exactly is _Psf
? It seems to be advertised as a plugin command by some plugin without actually being one. I don't see this error message and it has not previously appeared when you tested it because the faulty plugin was not there.
I think one of the plugins has not caught up with recent versions and is trying to expose an old-style command instead of a click
one.
The easyest solution is to fix the plugin to simply not include old commands in the entry points until they are updated
Just tried to reproduce it on a fresh aiida install and indeed I didn't manage to. Very sorry about this! I'll look into what caused it on Quantum Mobile.
Ok, the culprit was aiida-siesta
. I'll move the issue there.
This comes from the build of the Quantum Mobile VM. The following command used to work in 0.10.1 and doesn't anymore in 0.11.0:
I suggest, there needs to be a test for this. And perhaps the upf-related stuff should move into aiida-quantumespresso, now that the one can also plug into
verdi data
...