Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] Runtime.ImportModuleError when using python-lambda sample app lambda layer #17

Closed
zsaplan opened this issue Apr 7, 2021 · 0 comments

Comments

@zsaplan
Copy link

zsaplan commented Apr 7, 2021

After I followed the instructions provided in the sample-apps/python-lambda (I targeted us-east-1) I encountered an error in executing my Lambda function. The error log in Cloudwatch shows

[ERROR] Runtime.ImportModuleError: Unable to import module 'aws_observability': cannot import name 'AwsXRayIdsGenerator' from 'opentelemetry.sdk.extension.aws.trace' (/opt/python/opentelemetry/sdk/extension/aws/trace/__init__.py)
Traceback (most recent call last)

I checked the contents of the LambdaLayer by downloading them and verified that all of the files exist in the paths specified, but for some reason this isn't working for me.

@zsaplan zsaplan changed the title [ERROR] Runtime.ImportModuleError [ERROR] Runtime.ImportModuleError when using python-lambda sample app lambda layer Apr 7, 2021
@zsaplan zsaplan closed this as completed Apr 10, 2021
NathanielRN pushed a commit to NathanielRN/aws-otel-lambda that referenced this issue Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant