generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 119
Description
I was using an clean EC2 instance running Amazon Linux 2023 and following the instruction to deploy a Strands Agent on Lambda function: https://github.com/strands-agents/docs/blob/main/docs/examples/cdk/deploy_to_lambda/README.md
I was able to successfully deploy the stack following the instruction but I tried to invoke the Lambda using the payload:
{
"prompt": "What is the weather in New York?"
}I got the following error:
{
"errorMessage": "Unable to import module 'agent_handler': No module named 'pydantic_core._pydantic_core'",
"errorType": "Runtime.ImportModuleError",
"requestId": "",
"stackTrace": []
}It seems the layer "DependenciesLayerxxxxx" got incompatible versions.