Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task done
SuperP4rks opened this issue Aug 2, 2023 · 3 comments
Closed
1 task done
Assignees
Labels
bug V2 Bug related to Pydantic V2 pending Is unconfirmed

Comments

@SuperP4rks
Copy link

SuperP4rks commented Aug 2, 2023

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

@SuperP4rks SuperP4rks added bug V2 Bug related to Pydantic V2 unconfirmed labels Aug 2, 2023
@Kludex
Copy link
Member

Kludex commented Aug 2, 2023

@adriangb
Copy link
Member

adriangb commented Aug 8, 2023

We can't offer support for cloud provider-specific issues, CI misconfiguration, etc. I'm guessing the dependency is missing because the python version or architecture you used to build your lambda image / zip file doesn't match your runtime environment but beyond that you'll have to ask AWS or some other avenue for support.

@adriangb adriangb closed this as completed Aug 8, 2023
@samuelcolvin
Copy link
Member

Duplicate of #6557.

@Viicos Viicos added pending Is unconfirmed and removed unconfirmed labels Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug V2 Bug related to Pydantic V2 pending Is unconfirmed
Projects
None yet
Development

No branches or pull requests

5 participants