Closed tmwong2003 closed 1 year ago
Re: resolving this unnecessarily strict pin, it seems like updating typing_extensions==3.10.0.0
to typing_extensions>=3.10.0.0
in the base requirements ought to be sufficient.
Thanks for taking your issues to us! Software versions are pinned down to specific versions for many reasons, I will try to raise it to the team to see if we will be able to satisfy your ask!
I'm having the same issue. I understand the need to pin versions however in this case it seems to be very restricted.
I believe I'm having a similar issue; blocked on completing a deployment until this is loosened up a little
Edit: Found a way around this issue, had to update the version of tensor flow my application was using to 2.8.0 so that it also relies on typing_extensions==3.10.0.0.
To follow up on this issue, It is recommended to use the native brew installation method instead so that aws-sam-cli
is treated as its own binary instead.
We try to pin as much as possible, this is to keep a tight closure on the application and ensure what is installed is what we ran tests with. Otherwise we risk changes to dependencies breaking the CLI (which has happened). You will only run into this if you are using pip
which our recommendation is not to. If you really desire to use pip
as an installation method, you will need to put SAM CLI into it's own venv
to isolate the dependencies.
Comments on closed issues 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.
Description:
On Python 3.9, attempting to install
mypy_boto3_dynamodb==1.21.23
alongsideaws-sam-cli==1.45.0
results in import errors when usingBatchStatementRequestTypeDef
becauseaws-sam-cli
forces a version oftyping_extensions<4.0.0
. Is there a good reason for the CLI to locktyping_extensions
?Steps to reproduce:
Observed result:
Expected result:
Installing
aws-sam-cli
should not cause type annotations imports to fail; in theory, the annotations should have no effect on running code.Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 1.45.0Add --debug flag to command you are running