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]

질문됨 5달 전50회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠