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
This issue is unlikely to cause problems in most cases. There are very few use cases where this code would be run somewhere that does not have jmespath available via boto/botocore.
It could be noted in the docs in the extra dependencies section.
Steps to Reproduce
Create a new virtual environment: python -m venv .venv
Activate environment source .venv/bin/activate
Install Powertools with no extras pip install aws-lambda-powertools
Run example code snippet.
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.11
Packaging format used
PyPi
Debugging logs
No response
The text was updated successfully, but these errors were encountered:
Expected Behaviour
Powertools includes dependencies unless the feature states that it needs extras.
Current Behaviour
The
Logger
utility will not work withoutjmespath
. Importing the logger causes the following error:ModuleNotFoundError: No module named 'jmespath'
Code snippet
Possible Solution
This issue is unlikely to cause problems in most cases. There are very few use cases where this code would be run somewhere that does not have
jmespath
available via boto/botocore.It could be noted in the docs in the extra dependencies section.
![image](https://private-user-images.githubusercontent.com/100969281/330995578-207a9875-3ca0-46c7-b643-8c6d521023a1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExNDkwOTYsIm5iZiI6MTcyMTE0ODc5NiwicGF0aCI6Ii8xMDA5NjkyODEvMzMwOTk1NTc4LTIwN2E5ODc1LTNjYTAtNDZjNy1iNjQzLThjNmQ1MjEwMjNhMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxNlQxNjUzMTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mYWExMGQyZjg0Zjc1NjRiYmEyODQxNzNmN2I5ZmE1ZDU1ZGQ5YzY0MmNiYmNiMWViNzQ2MGM1NDk3NzE0Y2QyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.tJdCWAjZXD5vR07Y_DAdmbgfJvaz0GUCmtxV81lPcgw)
Steps to Reproduce
python -m venv .venv
source .venv/bin/activate
pip install aws-lambda-powertools
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.11
Packaging format used
PyPi
Debugging logs
No response
The text was updated successfully, but these errors were encountered: