Skip to content

pip 22.0.1 broke pip_shims.unpack_url #874

Closed
@KerberosMorphy

Description

@KerberosMorphy

Steps to reproduce

Hard to give a way to reproduce since I make lots of experimentation in Docker at the same time.
I've tried do recreate a small example but I couldn't.

In all case, the code speak for itself.

Current situation

Error raised since pip expect verbosity as fourth positional argument.

[TypeError]: unpack_url() missing 1 required positional argument: 'verbosity'

downloaded = pip_shims.unpack_url(
self.link,
ireq.source_dir,
downloader,
hashes=ireq.hashes(False),
)

Change in pip code

They change the behavior of unpack_url from 21.3.1 to 22.0.1:

def unpack_url(
    link: Link,
    location: str,
    download: Downloader,
+   verbosity: int,
    download_dir: Optional[str] = None,
    hashes: Optional[Hashes] = None,
) -> Optional[File]:

https://github.com/pypa/pip/blob/c73ac8d6bcf4f64041cafeccd2125cca052abed9/src/pip/_internal/operations/prepare.py#L174-L181

Environment Information

PDM version:        1.12.6
Python Interpreter: /usr/local/bin/python (3.9)
Project Root:       /app
Project Packages:   /app/__pypackages__/3.9
{
  "implementation_name": "cpython",
  "implementation_version": "3.9.10",
  "os_name": "posix",
  "platform_machine": "x86_64",
  "platform_release": "5.10.60.1-microsoft-standard-WSL2",
  "platform_system": "Linux",
  "platform_version": "#1 SMP Wed Aug 25 23:20:18 UTC 2021",
  "python_full_version": "3.9.10",
  "platform_python_implementation": "CPython",
  "python_version": "3.9",
  "sys_platform": "linux"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions