404 NOT_FOUND deploying Python Flask App on Vercel, linked to github

Error 404: NOT_FOUND appears when I am traying to deploy the app on Vercel, from Github Web Hosting.

404: NOT_FOUND
Code: ‘N0T_F0UND’
ID: gru1::dnvgg-1743867660340-a28ecabac3e7

The file structure is the following:

 my-flask-app/
├── app.py                            # main Flask application file
├── requirements.txt             # Python dependencies
├── templates/                      # Directory for HTML template
│      └── index.html
├── static/                             # for style.css, images and audio files

This application is already deployed at “https://calculo-intereses.onrender.com/” and it is fuctionning as expected.
There is no .gitignore folder at Github. For running on localhost, I start running the command python app.py. The app imports the following libraries:

      from flask import Flask, request, render_template, session, jsonify, flash, g, redirect, url_for, send_file
      import pandas as pd
      from datetime import datetime
      import logging
      import os
      import sqlite3
      from io import BytesIO

Thanks to all.

There’s another community post with 404 debugging tips that might be helpful. Please give these solutions a try and let us know how it goes.

A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0.

The error is the following:
404: NOT_FOUND Code: DEPLOYMENT_NOT_FOUND ID: gru1::q5tsf-1743962385915-832af83bf34d

Hi @vnatale52, welcome to the Vercel Community!

I see that the project structure is not compatible with Vercel’s serverless function requirements.
I’d recommend you to checkout the examples/python/flask3 at main · vercel/examples · GitHub repository and compare your structure as well as code to see what can be issue.