Skip to content

No module named 'pydantic_core._pydantic_core' using AWS Lambdas 3.11 #6990

@SuperP4rks

Description

@SuperP4rks

Initial Checks

  • I confirm that I'm using Pydantic V2

Description

Hi,

Upgrading to fastapi ==0.100.1,

Using Pipenv:

fastapi ==0.100.1,
pydantic ==2.1.1,
pydantic-core ==2.4.0
AWS Lambda Python 3.11 x86_64.

Error Messsage:
errorMessage": "Unable to import module 'main': No module named 'pydantic_core._pydantic_core'"

Reverting back to 0.99.1 resolves the issues, so its not an architecture type miss match.

Could it be Mac OS binary vs Linux Binary. But its strange that the 0.99.1 package does not work the same way as the 0.100.1 package with the core change being pydantic V2.

Example Code

No response

Python, Pydantic & OS Version

pydantic version: 2.1.1
pydantic-core version: 2.4.0
pydantic-core build: profile=release pgo=false mimalloc=true
platform: x86_64-i386-64bit

Selected Assignee: @adriangb

Metadata

Metadata

Assignees

Labels

bug V2Bug related to Pydantic V2pendingIs unconfirmed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions