I have a little knowledge of Amazon S3, but i saw the issue of the boto official on the github. boto doesn't support for the python version 12 because boto3 only support for the python 3.11, 3.12, 3.13 and boto is no longer supported this year. my suggestion is to upgrade boto to boto3 if you want. I hope this answer can help you :)
Thanks