Skip to content

Question: No module named 'aws_lambda_logging' #2

Closed

Description

@opiuman

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.

Activity

  1. heitorlessa commented on Dec 11, 2019

    @heitorlessa
    Contributor
  2. nmoutschen commented on Jan 8, 2020

    @nmoutschen
    Contributor

    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.

  3. heitorlessa commented on Jan 8, 2020

    @heitorlessa
    Contributor
  4. heitorlessa commented on Jan 9, 2020

    @heitorlessa
    Contributor

    Fix has been published -- 0.3.1 is now fully working. Thanks for reporting @opiuman !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions