module cfnresponse doesn't exist for Python 3.11

0

Hi,

When I use "import cfnresponse" in a Python 3.11 Lambda function, this gives the error: [ERROR] Runtime.ImportModuleError: Unable to import module 'index': No module named 'cfnresponse'

It looks like the same issue that was present in Python 3.9 (see here: https://repost.aws/questions/QUtqrQ6_3zSxmKo3QtFW_4Aw/cfnresponse-package-is-missing-in-new-python-3-9-runtime ). AWS fixed this issue for Python 3.9, is it possible to fix it for Python 3.11 as well? Or should we rewrite the code to use aws package to add the cfnresponse package to the Lambda function?

Thx for your answer,

Frederique

  • Did it ever end up working for you? @Frederique

demandé il y a 9 mois683 vues
1 réponse
2

Thank you Frederique for flagging. We are investigating and will get back to you.

AWS
répondu il y a 9 mois
  • Hey @Jonathan-AWS, any updates on this?

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions