Skip to content

Intercept "no module named _pydantic_core" import errors and emit useful error #1422

@davidhewitt

Description

@davidhewitt

We have notes at https://docs.pydantic.dev/latest/integrations/aws_lambda/#troubleshooting for debugging incorrect architecture installs.

I wonder if we should automate this step a little, by catching ImportError, and if it matches the problem condition for incorrect arch, emit a more helpful error message and maybe even link to the troubleshooting docs above.

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