You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: Only install typing-extensions dependency when necessary missing in some files #3091
This is the same issue as noted in #280. Looks like the following files are missing the conditionals put in which is causing issues, for me at least, with some Lambda scripts:
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link
Hey @heitorlessa, it did, yeah. Got this out of it "[ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'typing_extensions' Traceback (most recent call last):"
All good and tested. Because we can't reproduce at runtime when installing the latest powertools for AWS version, we'll make a release tomorrow instead of now.
Activity
boring-cyborg commentedon Sep 14, 2023
Thanks for opening your first issue here! We'll come back to you as soon as we can.
In the meantime, check out the #python channel on our Powertools for AWS Lambda Discord: Invite link
heitorlessa commentedon Sep 14, 2023
hey @HarbingersRequiem, thank you for reporting it -- did it cause you a runtime error in Lambda? if so, we'll switch it to
bugand get on it now.Apologies for letting this slip during PRs, we'll think of a linter or a shared types to make this sustainable.
HarbingersRequiem commentedon Sep 14, 2023
Hey @heitorlessa, it did, yeah. Got this out of it "[ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'typing_extensions' Traceback (most recent call last):"
Thanks for the quick response on it!
heitorlessa commentedon Sep 14, 2023
okay, working on that now. Switching to bug.
heitorlessa commentedon Sep 14, 2023
One quick note only...
typing_extensionsis a required dependency in Powertools. Back then we made it optional for 3.7 only.powertools-lambda-python/pyproject.toml
Line 36 in 86619e5
That shouldn't cause the
No module named 'typing_extensions'.heitorlessa commentedon Sep 14, 2023
PR in, classified as
typinginstead ofbugas couldn't reproduce at runtime using the latest version given it's a runtime dependency.heitorlessa commentedon Sep 14, 2023
All good and tested. Because we can't reproduce at runtime when installing the latest powertools for AWS version, we'll make a release tomorrow instead of now.
Still, we care about it :)
github-actions commentedon Sep 14, 2023
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.
github-actions commentedon Sep 15, 2023
This is now released under 2.25.0 version!