You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've added my private index which requires a user/password and %HOME%\_netrc file. However, despite found credentials pip ignores it and asks for the user name.
Expected behavior
pip gonna use found credentials
pip version
22.1.2
Python version
3.10.5
OS
Windows 11
How to Reproduce
add extra index with basic auth
add _netrc file to %HOME%
try to install smth from the added index
Output
Using pip 22.1.2 from c:\Python310\lib\site-packages\pip (python 3.10)Non-user install because site-packages writeableCreated temporary directory: C:\Users\builder\AppData\Local\Temp\pip-ephem-wheel-cache-2urhk924Created temporary directory: C:\Users\builder\AppData\Local\Temp\pip-build-tracker-q2ao2p26Initialized build tracking at C:\Users\builder\AppData\Local\Temp\pip-build-tracker-q2ao2p26Created build tracker: C:\Users\builder\AppData\Local\Temp\pip-build-tracker-q2ao2p26Entered build tracker: C:\Users\builder\AppData\Local\Temp\pip-build-tracker-q2ao2p26Created temporary directory: C:\Users\builder\AppData\Local\Temp\pip-install-_kvhoednLooking in indexes: https://pypi.org/simple, https://private.artifactory.host/vendor/api/pypi/pypi-release/simple2 location(s) to search for versions of my-package:* https://pypi.org/simple/my-package/* https://private.artifactory.host/vendor/api/pypi/pypi-release/simple/my-package/Fetching project page and analyzing links: https://pypi.org/simple/my-package/Getting page https://pypi.org/simple/my-package/Found index url https://pypi.org/simpleLooking up "https://pypi.org/simple/my-package/" in the cacheRequest header has "max_age" as 0, cache bypassedStarting new HTTPS connection (1): pypi.org:443https://pypi.org:443 "GET /simple/my-package/ HTTP/1.1" 404 13Status code 404 not in (200, 203, 300, 301, 308)Could not fetch URL https://pypi.org/simple/my-package/: 404 Client Error: Not Found for url: https://pypi.org/simple/my-package/ - skippingFetching project page and analyzing links: https://private.artifactory.host/vendor/api/pypi/pypi-release/simple/my-package/Getting page https://private.artifactory.host/vendor/api/pypi/pypi-release/simple/my-package/Found index url https://private.artifactory.host/vendor/api/pypi/pypi-release/simpleFound credentials in netrc for private.artifactory.hostLooking up "https://private.artifactory.host/vendor/api/pypi/pypi-release/simple/my-package/" in the cacheRequest header has "max_age" as 0, cache bypassedStarting new HTTPS connection (1): private.artifactory.host:443https://private.artifactory.host:443 "GET /vendor/api/pypi/pypi-release/simple/my-package/ HTTP/1.1" 401 80Found index url https://private.artifactory.host/vendor/api/pypi/pypi-release/simpleUser for private.artifactory.host: ERROR: Operation cancelled by user
Description
I've added my private index which requires a user/password and
%HOME%\_netrc
file. However, despite found credentialspip
ignores it and asks for the user name.Expected behavior
pip
gonna use found credentialspip version
22.1.2
Python version
3.10.5
OS
Windows 11
How to Reproduce
_netrc
file to%HOME%
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: