[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live) [Help](/c/help/9) # Python flask project deployment on vercel 166 views · 0 likes · 4 posts Rajyavardhan Ranawat (@rajyavardhan-ranawat) · 2024-08-13 <!-- Be sure to include all detail needed to let others see the same problem --> When i am deploying my flask application on vercel its showing runtime error as 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 'flask' : But i already mentioned flask in my requirements.txt file why its showing error. Pauline P. Narvas (@pawlean) · 2024-08-13 Hi, @rajyavardhan-ranawat! It would be helpful to see your repository or a **[minimal reproducible example](https://vercel.com/guides/creating-a-minimal-reproducible-example)**. You can have a look at our https://vercel.com/templates/python/flask-hello-world to give you a working example of the set-up. Rajyavardhan Ranawat (@rajyavardhan-ranawat) · 2024-08-13  Following your example i have created the project but now its showing another error as Error: A Serverless Function has exceeded the unzipped maximum size of 250 MB. : https://vercel.link/serverless-function-size 15:20:49.834 Rajyavardhan Ranawat (@rajyavardhan-ranawat) · 2024-08-13 Requirements.txt : Flask==3.0.3 Flask_Login==0.6.3 google_search_results==2.4.2 langchain==0.2.13 langchain_community langchain_core langchain_openai langchain-text-splitters tenacity==8.4.2 pydantic==2.8.2 pymongo==4.8.0 python-dotenv==1.0.1 Requests==2.32.3 serpapi==0.1.5 openai faiss-cpu