Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error message with pip 22.2+ #613

@mauritsvanrees

Description

@mauritsvanrees

I get this traceback:

$ bin/buildout 
Traceback (most recent call last):
  File "/Users/maurits/tmp/foo/lib/python3.8/site-packages/zc/buildout/patches.py", line 52, in patch_PackageIndex
    from pip._internal.index.collector import HTMLPage
ImportError: cannot import name 'HTMLPage' from 'pip._internal.index.collector' (/Users/maurits/tmp/foo/lib/python3.8/site-packages/pip/_internal/index/collector.py)

Buildout does continue after this, so it is not fatal.

To reproduce:

$ python3.8 -m venv foo  # tried with 3.10 as well, same thing
$ cd foo
$ bin/pip install --pre -U pip setuptools zc.buildout
$ cat buildout.cfg
[buildout]
parts = test

[test]
recipe = zc.recipe.egg
eggs = build
$ bin/buildout

Note: I also get a warning: "Requires-Python support missing", but I think that is now thrown if a package that we need to install is missing the Requires-Python metadata. So not something buildout can do anything about.

When I install pip 22.1.2, all is well again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions