Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Poetry: Failed to unlock the collection

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?

like image 840
becko Avatar asked Sep 12 '25 14:09

becko


1 Answers

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
like image 101
Fabian Ritzmann Avatar answered Sep 15 '25 04:09

Fabian Ritzmann