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.

Behavior change between 8.1.2 and 9.0.1 of pip breaks --extra-index-url in requirements files

See original GitHub issue
  • Pip version: 9.0.1
  • Python version: Python 2.7.13
  • Operating system: Debian Stretch

Description:

When moving from Debian Jesse to Stretch, the newer version of pip gets picked up, and ends up breaking our docker build. Our requirements.txt file contains the following, and worked successfully when using pip version 8.1.2

grpcio

--extra-index-url <SANITIZED>
wrigley==0.0.4
junos-eznc
python-consul
retry

Moving to 9.0.1 results in the following error

Collecting wrigley==0.0.4 (from -r requirements.txt (line 4))
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 342, in run
    requirement_set.prepare_files(finder)
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 554, in _prepare_file
    require_hashes
  File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 278, in populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 465, in find_requirement
    all_candidates = self.find_all_candidates(req.name)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 423, in find_all_candidates
    for page in self._get_pages(url_locations, project_name):
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_pages
    page = self._get_page(location)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 683, in _get_page
    return HTMLPage.get_page(link, session=self.session)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 795, in get_page
    resp.raise_for_status()
  File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/models.py", line 893, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
HTTPError: 404 Client Error: Not Found for url: https://pypi.python.org/simple/wrigley/

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
xavfernandezcommented, Jan 23, 2019

@artdgn your comment is related to #6158 not this one.

1reaction
cameelcommented, Jan 22, 2019

Oh, yeah. Thanks for the correction. 18.0 and 18.1 of course. I’ve updated the comment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changelog - pip documentation v22.3.1
Fix --no-index when --index-url or --extra-index-url is specified inside a requirements file. (#11276). Ensure that the candidate pip executable exists, ...
Read more >
Release Notes — pip 10.0.0.dev0 documentation
BACKWARD INCOMPATIBLE Remove the attempted autodetection of requirement names from URLs, URLs must include a name via #egg= . DEPRECATION pip install --egg ......
Read more >
pip Documentation - Read the Docs
pip supports installing from PyPI, version control, ... Requirements files are used to force pip to install an alternate version of a ...
Read more >
python pip priority order with index-url and extra-index-url
If I pip install lib , and lib exists in both indexes. What index will get the priority? From where it is going...
Read more >
changelog - Debian Package Tracker
This avoids a test breaking deprecation warning. -- Barry Warsaw <barry@debian.org> Tue, 29 Nov 2016 13:58:24 -0500 python-pip (8.1.2-4) unstable; ...
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