Skip to content

pip asking to unlock Gnome/KDE Wallet #9104

@liar666

Description

@liar666

Environment

  • pip version: pip 20.1.1 & 20.2.4
  • Python version: (python 3.8)
  • OS: LinuxMint 20

I'm "inside" a venv

Description

I was using pip version 20.1.1 and tried to update my venv packages using

python3 -m pip freeze | cut -d '=' -f1 > requirements.txt && python3 -m pip install -r requirements.txt --upgrade

And I was asked to unlock my gnome keyring. I had to refuse several times and the upgrade went fine (apart for a few packages that get listed in requirements.txt whereas they are installed system-wise and not in the venv, but this is another story).

I had a message saying that my pip version is outdated. Thus I upgraded it too.

Then I tried to install tensorflow, and a few of its tools and got asked to unlock KDE Wallet (and to create it, since I've none for the moment)

I refused several times and the install seems to go well (I've got a very slow connection and TF is very heavy, so I'm writing this issue before the end of the installation...)

Expected behavior

I'm expecting that packages are upgraded without asking to unlock any Keyring, be it Gnome or KDE....

How to Reproduce

  1. Use python3 -m pip install tensorflow (or any other package)
  2. A pop up uselessly invites you to unlock Gnome (pip version 20.1.1)/KDE (pip version 20.2.4) Keyring
  3. Install goes well even if you refuse to unlock the (KDE) keyring

Output

$ python3 -m pip install -r requirements.txt --upgrade
WARNING: Keyring is skipped due to an exception: Failed to unlock the keyring!
Requirement already up-to-date: absl-py in ./lib/python3.8/site-packages (from -r requirements.txt (line 1)) (0.11.0)
Requirement already up-to-date: aiohttp in ./lib/python3.8/site-packages (from -r requirements.txt (line 2)) (3.7.2)
...
Requirement already up-to-date: tensorboard-plugin-wit in ./lib/python3.8/site-packages (from -r requirements.txt (line 221)) (1.7.0)
Collecting tensorflow
  Downloading tensorflow-2.3.1-cp38-cp38-manylinux2010_x86_64.whl (320.5 MB)
     |█████▋                          | 56.4 MB 40 kB/s eta 1:48:50

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: keyringRelated to pip's keyring integration

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions