Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip asking to unlock Gnome/KDE Wallet #9104

Closed
liar666 opened this issue Nov 5, 2020 · 2 comments
Closed

pip asking to unlock Gnome/KDE Wallet #9104

liar666 opened this issue Nov 5, 2020 · 2 comments
Labels
C: keyring Related to pip's keyring integration

Comments

@liar666
Copy link

liar666 commented Nov 5, 2020

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
@pfmoore
Copy link
Member

pfmoore commented Nov 5, 2020

See https://pip.pypa.io/en/latest/user_guide/#keyring-support, which links to https://pypi.org/project/keyring/, which has a section on "Disabling Keyring"

@uranusjr uranusjr changed the title pip asking to unlock Gnome/KDE Wallet ?!?!? pip asking to unlock Gnome/KDE Wallet Nov 5, 2020
@pradyunsg pradyunsg added the C: keyring Related to pip's keyring integration label Nov 5, 2020
@pradyunsg
Copy link
Member

Closing since #8090 covers this in detail and #8719 outlines a plan for improving things.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: keyring Related to pip's keyring integration
Projects
None yet
Development

No branches or pull requests

3 participants