I have a lambda function and I am using aws_lambda_powertools in it. Lambda function project structure is like below-
source->Folder
- handler.py
libs
- aws-lambda-powertools
- aws-xray-sdk
- other libs which aws-lambda-powertools need
handler.py
from libs.aws_lambda_powertools import Logger, Tracer
When I run the lambda, it gives me an error "No Module found aws_xray_sdk" even though the module(used by aws-powertools) is there under the libs folder.
Source of Tracer which I am using in my lambda. https://github.com/awslabs/aws-lambda-powertools-python/blob/f5d14e3279276192c6fed0907b84b1dfa23c7b3c/aws_lambda_powertools/tracing/tracer.py
$ which python