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

build killed as a result of https://github.com/pypa/pip/issues/9284 #7752

Closed
cjw296 opened this issue Dec 15, 2020 · 4 comments
Closed

Comments

@cjw296
Copy link

cjw296 commented Dec 15, 2020

Details

Expected Result

Build as it did 4 days ago, no config changes on the project side:
https://readthedocs.org/projects/testfixtures/builds/12537398/

Actual Result

Looks like the build is now trying to download every version of every library in my project's dependencies.

I think i've found the reason:

/home/docs/checkouts/readthedocs.org/user_builds/testfixtures/envs/latest/bin/python -m pip install --upgrade --no-cache-dir pip
Requirement already satisfied: pip in /home/docs/checkouts/readthedocs.org/user_builds/testfixtures/envs/latest/lib/python3.7/site-packages (20.3.1)
Collecting pip
  Downloading pip-20.3.2-py2.py3-none-any.whl (1.5 MB)
WARNING: The candidate selected for download or install is a yanked version: 'pip' candidate (version 20.3.2 at https://files.pythonhosted.org/packages/3d/0c/01014c0442830eb38d6baef0932fdcb389279ce74295350ecb9fe09e048a/pip-20.3.2-py2.py3-none-any.whl#sha256=8d779b6a85770bc5f624b5c8d4d922ea2e3cd9ce6ee92aa260f12a9f072477bc (from https://pypi.org/simple/pip/) (requires-python:>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*))
Reason for being yanked: <none given>
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.3.1
    Uninstalling pip-20.3.1:
      Successfully uninstalled pip-20.3.1
Successfully installed pip-20.3.2

Not sure why pip is upgrading itself to a version it knows is bad, is there anything that can fix this on the RTD side?

@cjw296
Copy link
Author

cjw296 commented Dec 15, 2020

This looks like the problem with 20.3.2: pypa/pip#9284

@cjw296
Copy link
Author

cjw296 commented Dec 15, 2020

I've logged pypa/pip#9287 to report this on the pip side: pypa/pip#9287

@cjw296 cjw296 changed the title build killed, looks like it's trying to download every version of every package in my install_requires build killed as a result of https://github.com/pypa/pip/issues/9284 Dec 15, 2020
@stsewd
Copy link
Member

stsewd commented Dec 15, 2020

Hi, we install the latest version of pip by default, you can set the version of pip to be installed using a config file https://docs.readthedocs.io/en/stable/config-file/v2.html#python

version: 2

python:
  version: 3.7
  install:
    - requirements: docs/pip.txt
    - requirements: docs/requirements.txt

Where pip.txt has pip==20.3.1 or whatever version you need.

@stsewd
Copy link
Member

stsewd commented Dec 15, 2020

Looks like a new release will be out soon pypa/pip#8936 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants