Skip to content

Pydantic and aws-lambda-powertools[all] #2627

Closed Answered by heitorlessa
saomartinho asked this question in Q&A
Discussion options

You must be logged in to vote

Opa @saomartinho! I highly suspect is down to two reasons:

  1. You should use an exact version in your requirements.in and not the latest
  2. Pip apparently has a new bug in the new dependency resolver and doesn't follow extra dependencies ([all] here) with hashes.

IIRC this can also happen in pip-tools when you compile deps in a particular Python version while CI is in another (dependency resolution based on python version, e.g. typing-extensions). Any inexact pinning of one dependency will cause this error message.

For now, try:

  1. Ensure your requirements.in use an exact version in Powertools: aws-lambda-powertools[all]==2.9.0
  2. If it doesn't solve, use --use-deprecated=legacy-resolver flag with…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
8 replies
@saomartinho
Comment options

@heitorlessa
Comment options

Answer selected by saomartinho
@heitorlessa
Comment options

@saomartinho
Comment options

@saomartinho
Comment options

@saomartinho
Comment options

Comment options

You must be logged in to vote
1 reply
@saomartinho
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants