Skip to content

No module named 'aws_xray_sdk' #1872

@manifiserv

Description

@manifiserv

Expected Behaviour

I added the aws-lambda-powertools lib in my requirements.txt.

I used this same file from last one year with sam deployment.

Now I am getting error like
[ERROR] Runtime.ImportModuleError: Unable to import module 'xxxx.xxxx': No module named 'aws_xray_sdk'Traceback (most recent call last):

In previously I didn't get the same error. Now only I am getting the error.

aws_xray_sdk is under the aws-lambda-powertools right?
No need to mention this xray lib to my requirements.txt right?

@aws
Please help me to resolve this issue?

Thanks,

Current Behaviour

Now I am getting error like
[ERROR] Runtime.ImportModuleError: Unable to import module 'xxxx.xxxx': No module named 'aws_xray_sdk'Traceback (most recent call last):

In previously I didn't get the same error. Now only I am getting the error.

Code snippet

When I import this line, I am getting error

from aws_lambda_powertools import Logger, Metrics, Tracer

Possible Solution

No response

Steps to Reproduce

I am raising the issue

AWS Lambda Powertools for Python version

latest

AWS Lambda function runtime

3.9

Packaging format used

Lambda Layers

Debugging logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions