haaska icon indicating copy to clipboard operation
haaska copied to clipboard

Upgrade to Python 3.9

Open SylvainSimplonGit opened this issue 2 years ago • 8 comments

I received this mail from AWS :

Hello,

We are contacting you as we have identified that your AWS Account currently has one or more
Lambda functions using Python 3.6 runtime.

We are ending support for Python 3.6 in AWS Lambda. This follows Python 3.6 End-Of-Life
(EOL) reached on December 23, 2021 [1].

As described in the Lambda runtime support policy [2], end of support for language runtimes in
Lambda happens in two stages. Starting July 18, 2022, Lambda will no longer apply security
patches and other updates to the Python 3.6 runtime used by Lambda functions, and functions
using Python 3.6 will no longer be eligible for technical support. In addition, you will no longer
be able to create new Lambda functions using the Python 3.6 runtime. Starting August 17,
2022, you will no longer be able to update existing functions using the Python 3.6 runtime.

We recommend that you upgrade your existing Python 3.6 functions to Python  3.9 before
August 17, 2022.
...

Is there a solution to upgrade to Python 3.9 ? How can I do this ?

Thanks for your reply

SylvainSimplonGit avatar Apr 18 '22 06:04 SylvainSimplonGit

See post on the HA community forum

narsaw avatar Apr 18 '22 13:04 narsaw

Not sure but I think haaska.py should be ok to run with python 3.9 Have you tried to change python version on aws lambda to see if it fails or not?

bennyboom38 avatar May 19 '22 07:05 bennyboom38

haaska runs fine with python 3.9. i already use it now over 2 month without failures

fwmarcel avatar May 19 '22 07:05 fwmarcel

#244 will bump things up a bit plus add matrix testing for Python 3.7 - 3.10

inverse avatar Jul 25 '22 20:07 inverse

Actually works with 3.12 for me as well. I had to delete the build directory so it'd install the latest requests library and then everything worked without issue.

justin8 avatar Apr 21 '24 12:04 justin8

Actually works with 3.12 for me as well. I had to delete the build directory so it'd install the latest requests library and then everything worked without issue.

Which directories should be deleted? Sorry for asking, but im quite newbie to python

xPudda avatar Apr 21 '24 16:04 xPudda

Which directories should be deleted? Sorry for asking, but im quite newbie to python

The project has a Makefile which you can run

make clean
make

to build a new artifact that can be uploaded

This repo def could do with some :heart: There are a few open PRs for a few years now which could be merged (pending review). Although everything is functional.

@mike-grant happy to help out as I understand time with OSS can be limiting.

inverse avatar Apr 21 '24 17:04 inverse

+1, I'd be happy to help. I've been using Haaska for many years now and would love to contribute back

justin8 avatar Apr 22 '24 01:04 justin8