pydantic-core icon indicating copy to clipboard operation
pydantic-core copied to clipboard

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

Open davidhewitt opened this issue 1 year ago • 0 comments

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.

davidhewitt avatar Aug 28 '24 08:08 davidhewitt