Closed GeigerJ2 closed 6 months ago
verdi quicksetup
is specific to core.psql_dos
. Historically, that was the only backend available so the code didn't bother to check and assumed all profiles would be the same. So I would opt for explicitly checking that the storage backend is core.psql_dos
Thanks for weighing in, @sphuber! I created PR #6326 that should solve it. (it ain't much, but it's honest work :D)
As the title suggests, when having a profile with the
core.sqlite_zip
backend in the main config,verdi quicksetup
:breaks, leading to:
As evident from the error, the problem occurs in the
get_quicksetup_password
function incmdline/params/options/commands/setup.py
due to the missingdatabase_username
key for acore.sqlite_zip
(orcore.sqlite_dos
, for that matter) profile in the for loop:https://github.com/aiidateam/aiida-core/blob/aa4d2a890699a8a41ba893eb0626dc25b3bc4930/src/aiida/cmdline/params/options/commands/setup.py#L147-L153
Wrapping it in a simple
try...except
or checking thestorage_backend
before, e.g.:solves the issue. Any additional thoughts, or should I go ahead and create a PR?