aws-samples / aws-eda-slurm-cluster

AWS Slurm Cluster for EDA Workloads
MIT No Attribution
23 stars 7 forks source link

[BUG] Python 3.8 Lambda deprecated on 10/12/2024 #230

Closed cartalla closed 1 month ago

cartalla commented 1 month ago

Describe the bug Update all Lambdas to a newer version of Lambda.

Currently all are at 3.9 except CallSlurmRestApiLambda which is at 3.8.

cartalla commented 1 month ago

Python 3.10 has the following:

Require OpenSSL 1.1.1 or newer

This is an issue for some OS distributions, but shouldn't be an issue for the Lambda functions.

When I try to use 3.10 I get the following import error:

LAMBDA_WARNING: Unhandled exception. The most likely cause is an issue in the function code. However, in rare cases, a Lambda runtime update can cause unexpected function behavior. For functions using managed runtimes, runtime updates can be triggered by a function change, or can be applied automatically. To determine if the runtime has been updated, check the runtime version in the INIT_START log entry. If this error correlates with a change in the runtime version, you may be able to mitigate this error by temporarily rolling back to the previous runtime version. For more information, see https://docs.aws.amazon.com/lambda/latest/dg/runtimes-update.html

[ERROR] Runtime.ImportModuleError: Unable to import module 'CreateParallelClusterConfig': No module named 'rpds.rpds'
Traceback (most recent call last):

The only lambda that was still using 3.8 was CallSlurmRestApiLambda.