Skip to content

Bug: Missing dependency jsonpath_ng for Data Masking in package version 3.3.0 #5715

@tzahari

Description

@tzahari

Expected Behaviour

Usage of the DataMasking tool is working without import error.

Current Behaviour

The following error occurred:
ModuleNotFoundError: No module named 'jsonpath_ng'

Code snippet

from aws_lambda_powertools.utilities.data_masking import DataMasking

data_masker = DataMasking()
data = {'password': 'secret!', 'login': 'login1'}
erased = data_masker.erase(data, fields=["password"])
print(erased)

Possible Solution

Add jsonpath_ng to the package dependencies

Steps to Reproduce

  1. install powertools version 3.3.0
  2. run the example script

Powertools for AWS Lambda (Python) version

3.3.0

AWS Lambda function runtime

3.12

Packaging format used

PyPi

Debugging logs

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriagePending triage from maintainers

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions