Why does pip3 want to create a kdewallet after installing/updating packages on Ubuntu 20.04?

This solved it for me:

python3 -m keyring --disable

Running it adds:

[backend]
default-keyring=keyring.backends.null.Keyring

to the file ~/.config/python_keyring/keyringrc.cfg.

Presumably PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring mentioned at https://stackoverflow.com/a/68504137/895245 offers an environment variable way to achieve the same result.

Without this, it would show the annoying KDE keyring popup every time I try to install a package:

enter image description here

Google, index this:

The KDE Wallet System

The application '/usr/lib/python3/dist-packages/pip/__main__.py' has requested to create a new wallet named ‘kdewallet’. This is used to store sensitive data in a secure fashion. Please choose the new wallet’s type below or click cancel to deny the application’s request.

  • Classic, blowfish encrypted file
  • Use GPG encryption, for better protection

Related: https://askubuntu.com/questions/1205161/annoying-kde-wallet-service-popup-the-application-kded5-has-requested-to-open

Tested on Ubuntu 21.04, Python 3.9.5, pip3 20.3.4, keyring==22.2.0.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)