Amplify Lambda Runtime.ImportModuleError:

0

I'm facing the same issue trying to write a lambda function within AWS Amplify.

I coded my lambda using python 3.10, it uses a package that has inner dependencies with:

pydantic==2.5.2
pydantic-core==2.14.5

as per AWS Amplify doc I used pipenv to create Pipfile and Pipfile.lock. I built and deployed the function running amplify push but when I tried to test it I got:

[ERROR] Runtime.ImportModuleError: Unable to import module 'index': No module named 'pydantic_core._pydantic_core' Traceback (most recent call last):

I got the same error running amplify push on macOS and Windows, even if, as expected, Pipfile and Pipfile.lock did not changed.

[Also here]

asked 5 months ago45 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions