Skip to content

"The Python interpreter can't be found" error when running pipenv install --system with a python3 but no python #5261

@jfly

Description

@jfly

Issue description

I get a "The Python interpreter can't be found" error when running pipenv install --system with a python3 but no python.

Demo:

$ docker run $(docker build -q -f Dockerfile.pipenv-2022.8.15 https://github.com/jfly/2022-08-16-pipenv-system-which-issue.git#main)
Installing dependencies from Pipfile.lock (63bec0)...
The Python interpreter can't be found.▉ 0/4 — 00:00:00
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/4 — 00:00:00

I'm confident this bug was introduced in f276360, which removed a usage of first(), but broke the "filter None values" behavior that first() gave us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Bug 🐛This issue is a bug.Type: RegressionThis issue is a regression of a previous behavior.
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions