-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
datetime.utcnow is deprecated in Python 3.12 #1021
Comments
that comes from botocore: https://github.com/boto/botocore/blob/1.29.161/botocore/signers.py#L593 please log there |
btw, didn't follow the instructions in logging an issue :) |
Sorry, I right clicked on the code line in GitHub UI and selected reference in new issue which seems to not show any template. I will check on the other repo. Thanks. |
interesting, sounds like a github bug, here's the template btw: https://github.com/aio-libs/aiobotocore/issues/new?assignees=&labels=&projects=&template=bug_report.md&title= |
To make this slightly easier to find via Google, this is the Deprecation warning raised on Python 3.12:
Tracked in botocore at boto/botocore#3088 which references a still-open issue at boto/boto3#3889. In my case with pytest, fix is: [tool.pytest.ini_options]
filterwarnings = [
"error", # treat all warnings as errors
"ignore:datetime.datetime.utcnow\\(\\) is deprecated and scheduled for removal in a future version.*:DeprecationWarning",
] |
aiobotocore/aiobotocore/signers.py
Line 262 in 5ce00b8
Ref : python/cpython#103857
The text was updated successfully, but these errors were encountered: