-
Notifications
You must be signed in to change notification settings - Fork 421
Bug: jmespath is an undeclared dependency of Logger utility #4340
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
Comments
Thanks a lot for opening the issue as discussed on discord ;) We'll add it for the next release |
|
This is now released under 2.39.0 version! |
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.

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: