- Newest
- Most votes
- Most comments
Hi,
Some folks have solved this issue by upgrading to a recent version of botocoe: see https://github.com/wazuh/wazuh-packages/issues/2668
Best,
Didier
It looks like this issue, and the advice is to reinstall boto3 & botocore which isn't much help for a Lambda function https://github.com/boto/boto3/issues/4083
If the CloudFormation stack trying to deploy both of the Lambda functions that are in the blog you link to? As there is no mention of botocore in either of them. If it's a different version of the function, or a new function entirely, check that import botocore
is at the top of the code.
In the CloudWatch Logs log group for the Lambda is there any indication of whereabouts in the function (e.g. a line number) it's failing?
It has "import boto3" at the top of the code. Should I change it to import botocore?
This is the error in cloudwatch: [ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'botocore.vendored.six.moves' Traceback (most recent call last):
Relevant content
- asked 2 years ago
- How can I use a Lambda function to automatically start an AWS Glue job when a crawler run completes?AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
How do you upgrade botocore?