Quantcast
Viewing latest article 6
Browse Latest Browse All 51

Comment by Louis Maddox on No module named 'pydantic_core._pydantic_core' in AWS Lambda though library is installed for fast api based code

No you don't need to explicitly include pydantic or pydantic_core if using it via FastAPI. pip install fastapi lets import pydantic and import pydantic_core._pydantic_core run just fine. In fact the error might be caused by explicitly including pydantic (with a v1 version?) in the dependencies, but can't really say without further info. @krish___na please can you make a new question with more info, this one gives no details on how the packages are installed, so it's hard to reproduce your problem, and comments aren't appropriate for describing separate cases.

Viewing latest article 6
Browse Latest Browse All 51

Trending Articles