Skip to content
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

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

Closed
Wurstnase opened this issue Jun 13, 2024 · 8 comments
Closed

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

Wurstnase opened this issue Jun 13, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@Wurstnase
Copy link
Contributor

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

@Wurstnase Wurstnase added bug Something isn't working triage Pending triage from maintainers labels Jun 13, 2024
@leandrodamascena
Copy link
Contributor

Looking at this now.

@heitorlessa
Copy link
Contributor

it's a regression not caught by tests - we're making a fix and a patch release now

@heitorlessa
Copy link
Contributor

2.39.0 release yanked, merged regression fix, and we're starting a patch release now.

@github-actions github-actions bot added the pending-release Fix or implementation already in dev waiting to be released label Jun 13, 2024
@heitorlessa
Copy link
Contributor

heitorlessa commented Jun 13, 2024

@Wurstnase 2.39.1 is now live in PyPi; we're testing locally with a new project to be sure too. Lambda Layers are starting now

Edit: @leandrodamascena just tested in a new project and worked. Let us know otherwise please.


Release pipeline as it's public: https://github.com/aws-powertools/powertools-lambda-python/actions/runs/9501863707

Copy link
Contributor

This is now released under 2.39.1 version!

@github-actions github-actions bot removed the pending-release Fix or implementation already in dev waiting to be released label Jun 13, 2024
@heitorlessa heitorlessa reopened this Jun 13, 2024
@heitorlessa
Copy link
Contributor

reopening to make sure we hear back from @Wurstnase

@Wurstnase
Copy link
Contributor Author

Thanks! Everything is working again.

Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Coming soon
Development

No branches or pull requests

3 participants