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

Can't run the datadog_forwader code on lambda #845

Open
GdahRATP opened this issue Sep 5, 2024 · 2 comments
Open

Can't run the datadog_forwader code on lambda #845

GdahRATP opened this issue Sep 5, 2024 · 2 comments

Comments

@GdahRATP
Copy link

GdahRATP commented Sep 5, 2024

Describe what happened:
Hello
i am trying to deploy the datadog-serverless function in my lambda to ship vpc-flow-log to datadog entreprise :
iam using python3.11 arm64 architecture AWS and iam deploying the lambda function (.zip format) myself into lambda

Describe what you expected:
but i got this error :
from ddtrace.vendor import psutil
...
...
...
ImportError: cannot import name '_psutil_linux' from partially initialized module 'ddtrace.vendor.psutil' (most likely due to a circular import) (/var/task/ddtrace/vendor/psutil/init.py)


can someone tell me what to do ?

@rknechtel
Copy link

See if the "work around" I did for my issue helps:
#847

This is what I had to do to get the lambda working. Now all my logs are flowing to DataDog now with no errors.

@PabloKeepler
Copy link

Hi, some update on this problem? I'm having the same error..

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

3 participants