I get an OS Error: [Errno 8] Exec format error when running a Flask application with a python command

Solution 1

Add #! / usr / bin / env python to the first line of the file

Solution 2

Change file permissions to 644.

Solution 3

Run the application with flask run

Reference link

https://github.com/pallets/flask/issues/3189 https://github.com/pallets/werkzeug/issues/1482

Recommended Posts

I get an OS Error: [Errno 8] Exec format error when running a Flask application with a python command
When I get an error with PyInstaller
I get a UnicodeDecodeError when running with mod_wsgi
I get a Python No module named'encodings' error with the aws command
I made a simple book application with python + Flask ~ Introduction ~
When I get an error with Pylint in Atom on Windows
I get an error when trying to install maec 4.0.1.0 with pip
I get an error with import pandas.
I get a UnicodeDecodeError when trying to connect to oracle with python sqlalchemy
I get an error when I put a Python plugin in Visual Studio Code under the pyenv environment
When I try to execute the make command of Makefile with os / exec of golang, the second and subsequent executions result in an error.
Error when installing a module with Python pip
I got an error when saving with OpenCV
When I get a chromedriver error in Selenium
I made a GUI application with Python + PyQt5
I get an error with all yum commands
I made a Mattermost bot with Python (+ Flask)
I got an error when I put opencv in python3 with Raspberry Pi [Remedy]
[ES Lab] I tried to develop a WEB application with Python and Flask ②
What to do if you get an error when installing python with pyenv
If you get a long error when tabbing an interactive shell with Anaconda
A note I was addicted to when running Python with Visual Studio Code
What to do if you get an OpenSSL error when installing Python 2 with pyenv
I get an Import Error in Python Beautiful Soup
I get an error when I put opencv in pyautoGUI
[Python] I tried running a local server using flask
A memorandum when an error occurs with pip install
When you get an error in python scraping (requests)
I got an error when using Tensorboard with Pytorch
I get an error when I try to raise Python to 3 series using pyenv on Catalina
I got a Value Error when using JUMAN ++ with PyKNP
Error when playing with python
Web application with Python + Flask ② ③
Web application with Python + Flask ④
Format when passing a long string as an argument of python
A memorandum when I tried to get it automatically with selenium
[Python] A memo that I tried to get started with asyncio
I made a Nyanko tweet form with Python, Flask and Heroku
[Python] I made an image viewer with a simple sorting function.
I tried to make a 2channel post notification application with Python
I get a can't set attribute when using @property in python
I tried to make a todo application using bottle with python
I sent an SMS with Python
I tried running prolog with python 3.8.2.
I made a daemon with Python
Application development with Docker + Python + Flask
[Python] Format when to_csv with pandas
I tried to discriminate a 6-digit number with a number discrimination application made with python
[GCP] Procedure for creating a web application with Cloud Functions (Python + Flask)
[Streamlit] I hate JavaScript, so I make a web application only with Python
A reminder of what I got stuck when starting Atcoder with python
I got stuck in a flask application redirect with a reverse proxy in between
I want to make a web application using React and Python flask
What to do if an error occurs when loading a python project created with poetry into VS Code
Create an application that inputs, displays, and deletes forms by using an array as a DB with Python / Flask.
I made a character counter with Python
Note when creating an environment with python
I drew a heatmap with seaborn [Python]
I tried sending an email with python.
I tried a functional language with Python
[Python] A quick web application with Bottle!