Skip to content

✨ improve error in python when dependency is missing  #7539

Closed

Description

@levlaz

What are you trying to do?

Right now if you don't have a dependency installed or specified in pyproject.toml you get an error that looks like this:

Error: input: module.withSource.initialize resolve: failed to initialize module: failed to call module "nostalgia" to get functions: call constructor: process "/runtime" did not complete successfully: exit code: 1

Stderr:
╭─ Error ──────────────────────────────────────────────────────────────────────╮
│ The "main" module could not be found. Did you create a "src/main.py" file in │
│ the root of your project?   

This message does not make a ton of sense and it makes it seem like there is something wrong with my module code or structure, rather than having a dependency missing. This feels like an opportunity to make the DX a bit more crisp.

Why is this important to you?

No response

How are you currently working around this?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions