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

Specifying multiple extra-index-url results in "No matching distribution found" for one of the packages #9557

Closed
wjdp opened this issue Feb 3, 2021 · 12 comments

Comments

@wjdp
Copy link

wjdp commented Feb 3, 2021

Environment

  • pip version: 21.0.1
  • Python version: 3.8.5
  • OS: Ubuntu 20.04.1 LTS

Description

I am unable to install packages from multiple private pypi repos. Each private repo only provides a single package. In the example requirements.txt file below I have two --extra-index-url definitions and two private packages. Dependant on the order of those lines one of the two private packages will fail to resolve.

--extra-index-url https://packageA:password@gitlab.com/api/v4/projects/24124875/packages/pypi/simple
--extra-index-url https://packageB:password@gitlab.com/api/v4/projects/24124897/packages/pypi/simple
wegift-package-a==0.0.1
wegift-package-b==0.0.1
# ... other packages including public ones

Expected behavior

pip should find the repo that contains the package requested and install it.

How to Reproduce

  1. Create two private repos, containing a single package each
  2. Create the above requirements.txt file and run pip install -r requirements.txt or the equivalent pip install command.
  3. Install fails with Could not find a version that satisfies the requirement wegift-package-b==0.0.1

If I remove lines 1 and 3 or 2 and 4 the install works as expected. If I reorder lines 1 and 2 I get the same error but for package a.

Output

pip install -vvv -r requirements.txt

Using pip 21.0.1 from /home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip (python 3.8)
Non-user install because user site-packages disabled
Created temporary directory: /tmp/pip-ephem-wheel-cache-6lnr0liq
Created temporary directory: /tmp/pip-req-tracker-knxk1xql
Initialized build tracking at /tmp/pip-req-tracker-knxk1xql
Created build tracker: /tmp/pip-req-tracker-knxk1xql
Entered build tracker: /tmp/pip-req-tracker-knxk1xql
Created temporary directory: /tmp/pip-install-vw__xz55
Looking in indexes: https://pypi.org/simple, https://packageA:****@gitlab.com/api/v4/projects/24124875/packages/pypi/simple, https://packageB:****@gitlab.com/api/v4/projects/24124897/packages/pypi/simple
3 location(s) to search for versions of wegift-package-a:
* https://pypi.org/simple/wegift-package-a/
* https://packageA:****@gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-a/
* https://packageB:****@gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-a/
Fetching project page and analyzing links: https://pypi.org/simple/wegift-package-a/
Getting page https://pypi.org/simple/wegift-package-a/
Found index url https://pypi.org/simple
Looking up "https://pypi.org/simple/wegift-package-a/" in the cache
Request header has "max_age" as 0, cache bypassed
Starting new HTTPS connection (1): pypi.org:443
https://pypi.org:443 "GET /simple/wegift-package-a/ HTTP/1.1" 404 13
Status code 404 not in (200, 203, 300, 301)
Could not fetch URL https://pypi.org/simple/wegift-package-a/: 404 Client Error: Not Found for url: https://pypi.org/simple/wegift-package-a/ - skipping
Fetching project page and analyzing links: https://packageA:****@gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-a/
Getting page https://packageA:****@gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-a/
Found credentials in url for gitlab.com
Looking up "https://gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-a/" in the cache
Request header has "max_age" as 0, cache bypassed
Starting new HTTPS connection (1): gitlab.com:443
https://gitlab.com:443 "GET /api/v4/projects/24124875/packages/pypi/simple/wegift-package-a/ HTTP/1.1" 304 0
  Found link https://gitlab.com/api/v4/projects/24124875/packages/pypi/files/cfc771e6e0c34b9468fc561948f1bb1a6c9a30195304b9140d613b7377f2571b/wegift-package-a-0.0.1.tar.gz#sha256=cfc771e6e0c34b9468fc561948f1bb1a6c9a30195304b9140d613b7377f2571b (from https://gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-a/) (requires-python:>=3.8), version: 0.0.1
  Found link https://gitlab.com/api/v4/projects/24124875/packages/pypi/files/5db6eb183b738056ff3338d34ec95981c0a827c4e97d2d6dafe4d763236a36bc/wegift_package_a-0.0.1-py3-none-any.whl#sha256=5db6eb183b738056ff3338d34ec95981c0a827c4e97d2d6dafe4d763236a36bc (from https://gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-a/) (requires-python:>=3.8), version: 0.0.1
Fetching project page and analyzing links: https://packageB:****@gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-a/
Getting page https://packageB:****@gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-a/
Looking up "https://gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-a/" in the cache
Request header has "max_age" as 0, cache bypassed
https://gitlab.com:443 "GET /api/v4/projects/24124897/packages/pypi/simple/wegift-package-a/ HTTP/1.1" 404 27
Status code 404 not in (200, 203, 300, 301)
Could not fetch URL https://packageB:****@gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-a/: 404 Client Error: Not Found for url: https://gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-a/ - skipping
Given no hashes to check 2 links for project 'wegift-package-a': discarding no candidates
Collecting wegift-package-a==0.0.1
  Created temporary directory: /tmp/pip-unpack-tlbwr01f
  Looking up "https://gitlab.com/api/v4/projects/24124875/packages/pypi/files/5db6eb183b738056ff3338d34ec95981c0a827c4e97d2d6dafe4d763236a36bc/wegift_package_a-0.0.1-py3-none-any.whl" in the cache
  Current age based on date: 5
  Freshness lifetime from max-age: 0
  https://gitlab.com:443 "GET /api/v4/projects/24124875/packages/pypi/files/5db6eb183b738056ff3338d34ec95981c0a827c4e97d2d6dafe4d763236a36bc/wegift_package_a-0.0.1-py3-none-any.whl HTTP/1.1" 304 0
  Using cached https://gitlab.com/api/v4/projects/24124875/packages/pypi/files/5db6eb183b738056ff3338d34ec95981c0a827c4e97d2d6dafe4d763236a36bc/wegift_package_a-0.0.1-py3-none-any.whl (1.4 kB)
  Added wegift-package-a==0.0.1 from https://gitlab.com/api/v4/projects/24124875/packages/pypi/files/5db6eb183b738056ff3338d34ec95981c0a827c4e97d2d6dafe4d763236a36bc/wegift_package_a-0.0.1-py3-none-any.whl#sha256=5db6eb183b738056ff3338d34ec95981c0a827c4e97d2d6dafe4d763236a36bc (from -r requirements.txt (line 3)) to build tracker '/tmp/pip-req-tracker-knxk1xql'
  Removed wegift-package-a==0.0.1 from https://gitlab.com/api/v4/projects/24124875/packages/pypi/files/5db6eb183b738056ff3338d34ec95981c0a827c4e97d2d6dafe4d763236a36bc/wegift_package_a-0.0.1-py3-none-any.whl#sha256=5db6eb183b738056ff3338d34ec95981c0a827c4e97d2d6dafe4d763236a36bc (from -r requirements.txt (line 3)) from build tracker '/tmp/pip-req-tracker-knxk1xql'
3 location(s) to search for versions of wegift-package-b:
* https://pypi.org/simple/wegift-package-b/
* https://packageA:****@gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-b/
* https://packageB:****@gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-b/
Fetching project page and analyzing links: https://pypi.org/simple/wegift-package-b/
Getting page https://pypi.org/simple/wegift-package-b/
Found index url https://pypi.org/simple
Looking up "https://pypi.org/simple/wegift-package-b/" in the cache
Request header has "max_age" as 0, cache bypassed
https://pypi.org:443 "GET /simple/wegift-package-b/ HTTP/1.1" 404 13
Status code 404 not in (200, 203, 300, 301)
Could not fetch URL https://pypi.org/simple/wegift-package-b/: 404 Client Error: Not Found for url: https://pypi.org/simple/wegift-package-b/ - skipping
Fetching project page and analyzing links: https://packageA:****@gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-b/
Getting page https://packageA:****@gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-b/
Looking up "https://gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-b/" in the cache
Request header has "max_age" as 0, cache bypassed
https://gitlab.com:443 "GET /api/v4/projects/24124875/packages/pypi/simple/wegift-package-b/ HTTP/1.1" 404 35
Status code 404 not in (200, 203, 300, 301)
Could not fetch URL https://packageA:****@gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-b/: 404 Client Error: Not Found for url: https://gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-b/ - skipping
Fetching project page and analyzing links: https://packageB:****@gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-b/
Getting page https://packageB:****@gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-b/
Looking up "https://gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-b/" in the cache
Request header has "max_age" as 0, cache bypassed
https://gitlab.com:443 "GET /api/v4/projects/24124897/packages/pypi/simple/wegift-package-b/ HTTP/1.1" 404 27
Status code 404 not in (200, 203, 300, 301)
Could not fetch URL https://packageB:****@gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-b/: 404 Client Error: Not Found for url: https://gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-b/ - skipping
Given no hashes to check 0 links for project 'wegift-package-b': discarding no candidates
ERROR: Could not find a version that satisfies the requirement wegift-package-b==0.0.1
ERROR: No matching distribution found for wegift-package-b==0.0.1
Exception information:
Traceback (most recent call last):
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 171, in _merge_into_criterion
    crit = self.state.criteria[name]
KeyError: 'wegift-package-b'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 318, in resolve
    name, crit = self._merge_into_criterion(r, parent=None)
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _merge_into_criterion
    crit = Criterion.from_requirement(self._p, requirement, parent)
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 83, in from_requirement
    raise RequirementsConflicted(criterion)
pip._vendor.resolvelib.resolvers.RequirementsConflicted: Requirements conflict: SpecifierRequirement('wegift-package-b==0.0.1')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 121, in resolve
    self._result = resolver.resolve(
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 453, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 320, in resolve
    raise ResolutionImpossible(e.criterion.information)
pip._vendor.resolvelib.resolvers.ResolutionImpossible: [RequirementInformation(requirement=SpecifierRequirement('wegift-package-b==0.0.1'), parent=None)]

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 189, in _main
    status = self.run(options, args)
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 178, in wrapper
    return func(self, options, args)
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 316, in run
    requirement_set = resolver.resolve(
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 127, in resolve
    six.raise_from(error, e)
  File "<string>", line 3, in raise_from
pip._internal.exceptions.DistributionNotFound: No matching distribution found for wegift-package-b==0.0.1
Removed build tracker: '/tmp/pip-req-tracker-knxk1xql'

If I reorder the --extra-index-url lines I get this instead. It fails to resolve wegift-package-a instead

Using pip 21.0.1 from /home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip (python 3.8)
Non-user install because user site-packages disabled
Created temporary directory: /tmp/pip-ephem-wheel-cache-lfl4zfoy
Created temporary directory: /tmp/pip-req-tracker-6csz5uov
Initialized build tracking at /tmp/pip-req-tracker-6csz5uov
Created build tracker: /tmp/pip-req-tracker-6csz5uov
Entered build tracker: /tmp/pip-req-tracker-6csz5uov
Created temporary directory: /tmp/pip-install-374ysnet
Looking in indexes: https://pypi.org/simple, https://packageB:****@gitlab.com/api/v4/projects/24124897/packages/pypi/simple, https://packageA:****@gitlab.com/api/v4/projects/24124875/packages/pypi/simple
3 location(s) to search for versions of wegift-package-a:
* https://pypi.org/simple/wegift-package-a/
* https://packageB:****@gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-a/
* https://packageA:****@gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-a/
Fetching project page and analyzing links: https://pypi.org/simple/wegift-package-a/
Getting page https://pypi.org/simple/wegift-package-a/
Found index url https://pypi.org/simple
Looking up "https://pypi.org/simple/wegift-package-a/" in the cache
Request header has "max_age" as 0, cache bypassed
Starting new HTTPS connection (1): pypi.org:443
https://pypi.org:443 "GET /simple/wegift-package-a/ HTTP/1.1" 404 13
Status code 404 not in (200, 203, 300, 301)
Could not fetch URL https://pypi.org/simple/wegift-package-a/: 404 Client Error: Not Found for url: https://pypi.org/simple/wegift-package-a/ - skipping
Fetching project page and analyzing links: https://packageB:****@gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-a/
Getting page https://packageB:****@gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-a/
Found credentials in url for gitlab.com
Looking up "https://gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-a/" in the cache
Request header has "max_age" as 0, cache bypassed
Starting new HTTPS connection (1): gitlab.com:443
https://gitlab.com:443 "GET /api/v4/projects/24124897/packages/pypi/simple/wegift-package-a/ HTTP/1.1" 404 35
Status code 404 not in (200, 203, 300, 301)
Could not fetch URL https://packageB:****@gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-a/: 404 Client Error: Not Found for url: https://gitlab.com/api/v4/projects/24124897/packages/pypi/simple/wegift-package-a/ - skipping
Fetching project page and analyzing links: https://packageA:****@gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-a/
Getting page https://packageA:****@gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-a/
Looking up "https://gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-a/" in the cache
Request header has "max_age" as 0, cache bypassed
https://gitlab.com:443 "GET /api/v4/projects/24124875/packages/pypi/simple/wegift-package-a/ HTTP/1.1" 404 27
Status code 404 not in (200, 203, 300, 301)
Could not fetch URL https://packageA:****@gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-a/: 404 Client Error: Not Found for url: https://gitlab.com/api/v4/projects/24124875/packages/pypi/simple/wegift-package-a/ - skipping
Given no hashes to check 0 links for project 'wegift-package-a': discarding no candidates
ERROR: Could not find a version that satisfies the requirement wegift-package-a==0.0.1
ERROR: No matching distribution found for wegift-package-a==0.0.1
Exception information:
Traceback (most recent call last):
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 171, in _merge_into_criterion
    crit = self.state.criteria[name]
KeyError: 'wegift-package-a'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 318, in resolve
    name, crit = self._merge_into_criterion(r, parent=None)
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _merge_into_criterion
    crit = Criterion.from_requirement(self._p, requirement, parent)
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 83, in from_requirement
    raise RequirementsConflicted(criterion)
pip._vendor.resolvelib.resolvers.RequirementsConflicted: Requirements conflict: SpecifierRequirement('wegift-package-a==0.0.1')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 121, in resolve
    self._result = resolver.resolve(
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 453, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_vendor/resolvelib/resolvers.py", line 320, in resolve
    raise ResolutionImpossible(e.criterion.information)
pip._vendor.resolvelib.resolvers.ResolutionImpossible: [RequirementInformation(requirement=SpecifierRequirement('wegift-package-a==0.0.1'), parent=None)]

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 189, in _main
    status = self.run(options, args)
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 178, in wrapper
    return func(self, options, args)
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 316, in run
    requirement_set = resolver.resolve(
  File "/home/will/.virtualenvs/flow-pip/lib/python3.8/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 127, in resolve
    six.raise_from(error, e)
  File "<string>", line 3, in raise_from
pip._internal.exceptions.DistributionNotFound: No matching distribution found for wegift-package-a==0.0.1
Removed build tracker: '/tmp/pip-req-tracker-6csz5uov'
@pradyunsg pradyunsg added the S: needs triage Issues/PRs that need to be triaged label Mar 6, 2021
@douglascook
Copy link

I'm having exactly the same problem trying to install packages from two Gitlab registries in different projecs.

If I use the same personal access token in each URL the installation completes as expected. However, using different, project-level access tokens results in the same error described above.

From the logs it appears that the credentials are only taken from whichever index URL is specified first. Found credentials in url for gitlab.com only appears once in each log, for the package that is installed successfully. I guess that the credentials are being cached per domain meaning that multiple gitlab.com URLs do not work.

@uranusjr
Copy link
Member

uranusjr commented Jul 8, 2021

It would be nice if you could provide an environment for reproduction.

@uranusjr uranusjr added the S: awaiting response Waiting for a response/more information label Jul 8, 2021
@douglascook
Copy link

Thanks for the quick response.

Sorry, I should have included my env in the first place - I'm running in a docker container using the official python:3.8 image with pip updated to latest:

  • Debian GNU/Linux 10 (buster)
  • python 3.8.11
  • pip 21.1.3

@uranusjr
Copy link
Member

uranusjr commented Jul 9, 2021

Sorry, I was referring to the GitLab registry packages you were installing when facing this issue. If the packages are private, please create some public stubs that produce the same symptom.

@douglascook
Copy link

I set up a couple of repos that I think should reproduce the issue - I would have liked to create the access tokens as well but unfortunately I do not have a paid Gitlab account so it is not available to me.

The projects are

And the requirements file that would fail when calling pip install -r requirements.txt is:

# requirements.txt

# separate index URL per project, differing by project ID
--extra-index-url https://__token__:<PROJECT_ACCESS_TOKEN_A>@gitlab.com/api/v4/projects/28014372/packages/pypi/simple
--extra-index-url https://__token__:<PROJECT_ACCESS_TOKEN_B>@gitlab.com/api/v4/projects/28014458/packages/pypi/simple

douglas_pip_test_a==0.0.1
douglas_pip_test_b==0.0.1

# third party requirements mean `--index-url` is not an option
ipython

@uranusjr
Copy link
Member

Hmm, unfortunately (?) an auth-less repo seems to work for me.

# r.txt
--extra-index-url https://gitlab.com/api/v4/projects/28014372/packages/pypi/simple
--extra-index-url https://gitlab.com/api/v4/projects/28014458/packages/pypi/simple
douglas_pip_test_a==0.0.1
douglas_pip_test_b==0.0.1
ipython
$ pip install -r r.txt
Looking in indexes: https://pypi.org/simple, https://gitlab.com/api/v4/projects/28014372/packages/pypi/simple, https://gitlab.com/api/v4/projects/28014458/packages/pypi/simple
Collecting douglas_pip_test_a==0.0.1
  Downloading https://gitlab.com/api/v4/projects/28014372/packages/pypi/files/076d14b8f0073f7a81f10097fb28504b8b10339c595590e57597cc906e57de5a/douglas_pip_test_A-0.0.1-py3-none-any.whl (1.3 kB)
Collecting douglas_pip_test_b==0.0.1
  Downloading https://gitlab.com/api/v4/projects/28014458/packages/pypi/files/632e216660a7f09d32d7c72f75dfecbdf30219fa8196e91dfc99b958e313829a/douglas_pip_test_B-0.0.1-py3-none-any.whl (1.3 kB)
Collecting ipython
  Downloading ipython-7.25.0-py3-none-any.whl (786 kB)
     |████████████████████████████████| 786 kB 1.7 MB/s
Collecting traitlets>=4.2
  Using cached traitlets-5.0.5-py3-none-any.whl (100 kB)
Collecting decorator
  Using cached decorator-5.0.9-py3-none-any.whl (8.9 kB)
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
  Downloading prompt_toolkit-3.0.19-py3-none-any.whl (368 kB)
     |████████████████████████████████| 368 kB 2.2 MB/s
Collecting pygments
  Using cached Pygments-2.9.0-py3-none-any.whl (1.0 MB)
Collecting colorama
  Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting jedi>=0.16
  Using cached jedi-0.18.0-py2.py3-none-any.whl (1.4 MB)
Collecting matplotlib-inline
  Using cached matplotlib_inline-0.1.2-py3-none-any.whl (8.2 kB)
Requirement already satisfied: setuptools>=18.5 in site-packages (from ipython->-r r.txt (line 8)) (57.0.0)
Collecting pickleshare
  Using cached pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting backcall
  Using cached backcall-0.2.0-py2.py3-none-any.whl (11 kB)
Collecting parso<0.9.0,>=0.8.0
  Using cached parso-0.8.2-py2.py3-none-any.whl (94 kB)
Collecting wcwidth
  Using cached wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting ipython-genutils
  Using cached ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
Installing collected packages: ipython-genutils, wcwidth, traitlets, parso, pygments, prompt-toolkit, pickleshare, matplotlib-inline, jedi, decorator, colorama, backcall, ipython, douglas-pip-test-b, douglas-pip-test-a
Successfully installed backcall-0.2.0 colorama-0.4.4 decorator-5.0.9 douglas-pip-test-a-0.0.1 douglas-pip-test-b-0.0.1 ipython-7.25.0 ipython-genutils-0.2.0 jedi-0.18.0 matplotlib-inline-0.1.2 parso-0.8.2 pickleshare-0.7.5 prompt-toolkit-3.0.19 pygments-2.9.0 traitlets-5.0.5 wcwidth-0.2.5

Does this work for you? If it does, the auth part is probably the problem and we’ll need some more digging…

@uranusjr uranusjr added state: needs eyes Needs a maintainer/triager to take a closer look and removed S: awaiting response Waiting for a response/more information labels Jul 10, 2021
@douglascook
Copy link

douglascook commented Jul 10, 2021

Yeah it is specifically a problem with the auth.

I ran into the issue at work where we are using project access tokens. With these you get a different token for each project.

I think the issue is likely to be related to having two different tokens for the same domain, because when using a personal access token (which gives me access to both projects with one token) everything installs correctly, similarly to what you saw above without any auth.

Project level access tokens are a paid feature on Gitlab but I do not have a paid account, so unfortunately I can't create an environment to reproduce it in.

@uranusjr
Copy link
Member

Does this work if you specify the options from the command line, or is it specific to the requirements file?

@uranusjr
Copy link
Member

Hmm, #3931 seems related (if this happens both when the --extra-index-url options come from the command line and requirements file). The fix to this is very recent and not yet available in a stable release. Can you try whether the main branch of pip still has this issue?

@douglascook
Copy link

Oh great, yes it's working as expected on main

Will wait for the next release then - thanks for your help 🙌

@xavfernandez
Copy link
Member

With latest releases out, does it mean it can be closed ?

@pradyunsg
Copy link
Member

I think so!

@pradyunsg pradyunsg removed S: needs triage Issues/PRs that need to be triaged state: needs eyes Needs a maintainer/triager to take a closer look labels Aug 15, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants