Skip to content

Bug: ModuleNotFoundError: No module named 'pydantic' #4498

Closed
@tonnico

Description

@tonnico

Expected Behaviour

pydantic shouldn't be mandatory for default usage, as in <=2.38.1.

Current Behaviour

A ModuleNotFoundError is raised.

Code snippet

from aws_lambda_powertools.event_handler import Response

Possible Solution

No response

Steps to Reproduce

pip install aws-lambda-powertools
cat << EOF >> foo.py
from aws_lambda_powertools.event_handler import Response
EOF
python foo.py

Powertools for AWS Lambda (Python) version

2.39.0

AWS Lambda function runtime

3.12

Packaging format used

PyPi

Debugging logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions