404 Error while using Flask web app in PyInstaller executable

Litchy

I have a web application based on Flask, when I run it from the script python my_script.py --web, it works well.

However after I package it using PyInstaller with pyinstaller my_script.spec and run it with .\my_script.exe --web, everything seems to work fine according to the log and the web application is opened at a port (checked with netstat)

But in browser it gives "404 Not Found"

Litchy

I solved the problem. The app requires some part of the code in my frontend/dist folder. To run Flask application, we have to copy the code needed to the same path of the executable, which is copy frontend to dist\my_script

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Error while executing pyinstaller executable file

From Java

Error 404 while deploying a java web app on WildFly

From Dev

Add image files while building kivy executable using pyinstaller

From Dev

How to solve error while using Pyomo in Flask web server?

From Java

404 error when using Google App Engine with flask and flask-restplus

From Dev

404 error on all endpoints in a basic flask app

From Dev

404 Error on local machine with Flask App

From Dev

size of executable using pyinstaller and numpy

From Java

Error while using pymysql in flask

From Dev

Heroku getting at=error code=H10 while deploying python Flask web app

From Dev

Multiple 404 error pages using Python (Flask)

From Dev

404 error on localhost using flask and html

From Dev

Error while deploying flask app on apache

From Dev

getting error in flask while running the app

From Dev

Is 404 error due to web-app version?

From Dev

Error after creating executable Pygame with Pyinstaller

From Dev

Error when creating executable file with pyinstaller

From Dev

Python SSL Import Error in PyInstaller generated executable

From Dev

Getting a Runtime Error in Executable made with pyinstaller

From Dev

Insert error in a Mysql query Flask web app

From Dev

Error in Flask while using flash(): TypeError

From Dev

Deploying Python Flask app on web using pythonanywhere

From Dev

Using Flask web app as Windows application

From Dev

favicon.ico results in 404 error in flask app

From Dev

Mounting Flask app in FastAPI raises a 404 Not Found error response

From Dev

Error in testing flask web app using Cloud SDK | Google Cloud on local system

From Dev

Flask error: Error in the code while defining functions and app route

From Dev

404 error in a web page using gcloud deployment?

From Dev

Error using PyInstaller

Related Related

  1. 1

    Error while executing pyinstaller executable file

  2. 2

    Error 404 while deploying a java web app on WildFly

  3. 3

    Add image files while building kivy executable using pyinstaller

  4. 4

    How to solve error while using Pyomo in Flask web server?

  5. 5

    404 error when using Google App Engine with flask and flask-restplus

  6. 6

    404 error on all endpoints in a basic flask app

  7. 7

    404 Error on local machine with Flask App

  8. 8

    size of executable using pyinstaller and numpy

  9. 9

    Error while using pymysql in flask

  10. 10

    Heroku getting at=error code=H10 while deploying python Flask web app

  11. 11

    Multiple 404 error pages using Python (Flask)

  12. 12

    404 error on localhost using flask and html

  13. 13

    Error while deploying flask app on apache

  14. 14

    getting error in flask while running the app

  15. 15

    Is 404 error due to web-app version?

  16. 16

    Error after creating executable Pygame with Pyinstaller

  17. 17

    Error when creating executable file with pyinstaller

  18. 18

    Python SSL Import Error in PyInstaller generated executable

  19. 19

    Getting a Runtime Error in Executable made with pyinstaller

  20. 20

    Insert error in a Mysql query Flask web app

  21. 21

    Error in Flask while using flash(): TypeError

  22. 22

    Deploying Python Flask app on web using pythonanywhere

  23. 23

    Using Flask web app as Windows application

  24. 24

    favicon.ico results in 404 error in flask app

  25. 25

    Mounting Flask app in FastAPI raises a 404 Not Found error response

  26. 26

    Error in testing flask web app using Cloud SDK | Google Cloud on local system

  27. 27

    Flask error: Error in the code while defining functions and app route

  28. 28

    404 error in a web page using gcloud deployment?

  29. 29

    Error using PyInstaller

HotTag

Archive