question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: JMESPath semantic version mismatch with boto3

See original GitHub issue

Expected Behaviour

I should be able to install an unpinned version of boto3 and aws-lambda-powertools without a dependency error

Current Behaviour

Installing boto3 and aws-lambda-powertools==1.25.7 results in the following error message during installation.

aws-lambda-powertools 1.25.7 requires jmespath<0.11.0,>=0.10.0, but you'll have jmespath 1.0.0 which is incompatible.

Code snippet

N/A

Possible Solution

boto3 added support for JMESPath 1.0 in this PR: https://github.com/boto/boto3/pull/3189. Didn’t appear to require any code changes, just opening up the allowable versions to something less than 2.0

Steps to Reproduce

cat requirements.txt wheel boto3 aws-lambda-powertools[pydantic]==1.25.7

pip install -r requirements.txt

AWS Lambda Powertools for Python version

1.25.7

AWS Lambda function runtime

3.9

Packaging format used

PyPi

Debugging logs

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
heitorlessacommented, Apr 21, 2022

1.25.9 is now out. @corey-cole @michaelbrewer could you give that a try please? Tested in Lambda runtime, locally, and Layers build sandbox

2reactions
michaelbrewercommented, Apr 21, 2022
jmespath = [
  { version ="<=0.10.0", python = "^3.6" },
  { version ="^1.0.0", python = "^3.7" }
]

@corey-cole a possible solution can be made ie: https://github.com/awslabs/aws-lambda-powertools-python/pull/1139

Read more comments on GitHub >

github_iconTop Results From Across the Web

Boto3 version mismatch seemingly causing error when using ...
I am having an issue creating a AWS Lambda function programmatically. The error I get is. botocore.exceptions ...
Read more >
Changelog - Lambda Powertools Python - Open Source at AWS
This project follows Keep a Changelog format for changes and adheres to Semantic Versioning. 1.26.2 - 2022-06-16¶. Bug Fixes¶. event-handler: ...
Read more >
boto Documentation - Read the Docs
Note: Boto3, the next version of Boto, is now stable and recommended for general ... service endpoints and fixes bugs in several services....
Read more >
Bug List - FreeBSD Bugzilla
267494, Ports & Packages, Individual Port(s), ports-bugs, Closed, FIXED ... rodrigo, Closed, FIXED, net-mgmt/smokeping: Fix mismatch version, 2022-11-18.
Read more >
[PYTHON-2870] Support building the docs in non-html formats ...
Please also report this if it was a user error, so that a better error message can ... python-gcovr python-outcome python-semantic-version python-xmlschema.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found