question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pipx install doesn't prompt for credentials for private vcs url

See original GitHub issue

Describe the bug Regular pipx install command doesn’t work for private vcs urls that require authentication. Running pipx install --spec git+https://<some_private_repo>.git <package_name> does not prompt the user for username and password. If the --verbose option is provided, it works fine.

How to reproduce Run above command using a private vcs url (e.g. github, gitlab, bitbucket) and do not use --verbose.

Expected behavior Should prompt user for credentials, even when --verbose is not used.

Environment

$ python3 --version
Python 3.6.8
$ pipx --version
0.14.0.0
$ head -n 2 /etc/os-release
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
$ uname -srm
Linux 4.15.0-64-generic x86_64

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:22 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
venaturumcommented, Feb 4, 2021

This is also an issue for private package feeds requiring credentials, eg an Azure artifacts feed

It neither prompts, or works with artifacts-keyring like pip does

2reactions
mithuncommented, Apr 4, 2021

I’m running into a similar issue when trying to install from a private registry or index-url (e.g., github/gitlab/artifactory/etc) that requires authentication.

In my case, I’m using keyring to store the credentials required, and pip will automatically use keyring if available. A typical pip based workflow would be python -m venv .venv && source .venv/bin/activate && pip install keyring && pip install -i https://authenticated.example.com/pypi/simple some-package-name.

In order to achieve something similar with pipx, pipx should have a mechanism to (pre?) inject packages (keyring, artifacts-keyring, etc) into an app’s venv before the app itself is installed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pipx install doesn't prompt for credentials for private vcs url #219
Describe the bug Regular pipx install command doesn't work for private vcs urls that require authentication. Running pipx install --spec git+https:// .git ...
Read more >
Unable to install brownie using pipx - python - Stack Overflow
I used the github installation method and it worked for me, these are the commands that I used on VSCode terminal.
Read more >
pipx — Install and Run Python Applications in Isolated ...
By default, pipx uses the same package index as pip, PyPI. pipx can also install from all other sources pip can, such as...
Read more >
User Guide - pip documentation v21.1.dev0
Basic Authentication Credentials¶. pip supports basic authentication credentials. Basically, in the URL there is a username and password separated by : .
Read more >
pipenv Documentation - Read the Docs
3.2.12 A Note about VCS Dependencies. You can install packages with pipenv from git and other version control systems using URLs formatted according...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found