Skip to content

Improve error message on "failed to spawn" where the Python interpreter is missing #13992

Open
@zanieb

Description

@zanieb

Summary

e.g., as reported in #13196

The error message when the Python interpreter cannot be found by an entry point is

error: Failed to spawn: `jupyter` Caused by: No such file or directory (os error 2)

We can read the entry point and provide a better error message in this case.

Related #13989

Example

error: Failed to spawn: `jupyter` Caused by: No such file or directory (os error 2)

hint: `jupyter` uses a Python interpreter at `path` which no longer exists

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to existing functionalityerror messagesMessaging when something goes wronghelp wantedContribution especially encouraged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions