On a fresh poetry install, I get the following error trying to install anything:
(base) ➜ celeba poetry add numpy
Failed to unlock the collection!
How can I fix this?
On a fresh poetry install, I get the following error trying to install anything:
(base) ➜ celeba poetry add numpy
Failed to unlock the collection!
How can I fix this?
There is an extensive discussion and various workarounds suggested in poetry issue #1719. Probably the fastest way to make this work is to run the following before you run poetry:
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
If you are remotely accessing your work environment via SSH, add this function to your .bashrc
file and run it from the remote terminal:
# Linux unlock gnome keyring
function unlock-keyring ()
{
read -rsp "Password: " pass
export $(echo -n "$pass" | gnome-keyring-daemon --replace --unlock)
unset pass
}
Source: https://unix.stackexchange.com/questions/602313/unlock-gnome-keyring-daemon-from-command-line