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

preguntada hace 9 meses683 visualizaciones
1 Respuesta
2

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

AWS
respondido hace 9 meses
  • Hey @Jonathan-AWS, any updates on this?

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas