You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Wed, 11 Dec 2019 at 15:13, Wilson Wang ***@***.***> wrote:
Tried the logging code from README and got the error:
{ "errorMessage": "Unable to import module 'service': No module named
'aws_lambda_logging'", "errorType": "Runtime.ImportModuleError" }
The lambda runtime is Python 3.7.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<aws-powertools/powertools-lambda#2>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZPQBCHFQFZADEJQTHO2MLQYCHKBANCNFSM4JZKIYDA>
.
I’ve just come back from holidays and will publish a fix by end of this
week.
No need to add that library in the requirements, it’s a bad relative import
in the logger.py
On Wed, 8 Jan 2020 at 14:57, Nicolas Moutschen ***@***.***> wrote:
I just had the same issue on my side, with the following error message in
my Lambda logs:
[ERROR] Runtime.ImportModuleError: Unable to import module 'main': No module named 'aws_lambda_logging'
This was solved by explicitely adding aws-lambda-logging in my
requirements.txt.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<aws-powertools/powertools-lambda#2>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZPQBBLIIMBXGRGXC3O4ITQ4XST3ANCNFSM4JZKIYDA>
.
Activity
heitorlessa commentedon Dec 11, 2019
nmoutschen commentedon Jan 8, 2020
I just had the same issue on my side, with the following error message in my Lambda logs:
This was solved by explicitely adding
aws-lambda-loggingin my requirements.txt.heitorlessa commentedon Jan 8, 2020
fix: attempt to make GitHub Actions work #2
heitorlessa commentedon Jan 9, 2020
Fix has been published -- 0.3.1 is now fully working. Thanks for reporting @opiuman !
chore: trigger CI #2
fix: import time latency by lazily loading high level modules (#301)