Skip to content

Bug: ModuleNotFoundError: No module named 'jmespath' #1986

@Tishka17

Description

@Tishka17

Expected Behaviour

Import will not fail

Current Behaviour

Import is not possible.

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "venv/lib/python3.10/site-packages/aws_lambda_powertools/__init__.py", line 7, in <module>
    from .logging import Logger
  File "venv/lib/python3.10/site-packages/aws_lambda_powertools/logging/__init__.py", line 3, in <module>
    from .logger import Logger
  File "venv/lib/python3.10/site-packages/aws_lambda_powertools/logging/logger.py", line 26, in <module>
    import jmespath
ModuleNotFoundError: No module named 'jmespath'

Code snippet

import aws_lambda_powertools

Possible Solution

No response

Steps to Reproduce

  1. Create new venv (I use python 3.8 and python 3.10):
python3 -m venv venv
  1. Activate venv
source venv/bin/activate
  1. Install powertools (tested with 2.9.1)
pip install aws-lambda-powertools==2.9.1
  1. Try to import it in python code:
python -c "import aws_lambda_powertools"    

AWS Lambda Powertools for Python version

latest

AWS Lambda function runtime

3.8

Packaging format used

PyPi

Debugging logs

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions