[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live) [Help](/c/help/9) # Python Flask hosted in Vercel 113 views · 1 like · 2 posts Mark Baumann (@mark-baumann) · 2024-08-13 I have this issued: > 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 'vc__handler__python': No module named 'distutils' Traceback (most recent call last): What should I do? Amy Egan (@amyegan) · 2024-08-13 · ♥ 1 Hi @mark-baumann. I'm not sure exactly what's going wrong in this case, but I have some resources that have helped people with similar errors in the past. - Make sure the app uses one of the supported supported [runtime versions](https://vercel.com/docs/deployments/build-image#runtime-support) - Compare your project against [Vercel's Flask example repo](https://github.com/vercel/examples/tree/main/python/flask3) - https://vercel.com/docs/functions/serverless-functions/runtimes/python#reading-relative-files-in-python