Search code examples
ubuntupython-keyring

Avoid keyring messages when running command line tools


I am getting these two messages when running a command line utility (in the case pgcli) in an headless Linux running in Docker:

No handlers could be found for logger "keyring.backend"
Please enter password for encrypted keyring:

How can I configure the logger and the password for keyring, so that I am no longer bothered when running any utility dependent on keyring?

Note that I am on an headless Ubuntu, so I need to know how to do this from the command line.

Thanks


Solution

  • v1.10.2 is now out, with keyring optional. Using pgcli on a headless system should not be a problem anymore.