python


flask.cli.NoAppException: The file/path provided (new_app.py) does not appear to exist


I keep getting this error flask.cli.NoAppException: The file/path provided (new_app.py) does not appear to exist. Please verify the path is correct. If app is not on PYTHONPATH, ensure the extension is .py it goes away after I restart the Flask server.
I am running flask run in the correct directory where my app is. This just started happening after working for 2 weeks. I've read that it could be due to an import error, but I am not finding any modules that are not installed on my virutalenv.
from flask import Flask
app = Flask(__name__)
app.debug=True
Most likely you haven't set the FLASK_APP environment variable.
To run the application you can either use the flask command or
python’s -m switch with Flask. Before you can do that you need to tell
your terminal the application to work with by exporting the FLASK_APP
environment variable:
$ export FLASK_APP=hello.py
$ flask run * Running on http://127.0.0.1:5000/
If you are on Windows you need to use set
instead of export.
Alternatively you can use python -m flask:
$ export FLASK_APP=hello.py
$ python -m flask run * Running on http://127.0.0.1:5000/

Related Links

Python/Feedparser: reading RSS feed fails
How to generate a Torrent Magnet URI from a directory?
Python/Kivy camera widget error with opencv
Python3 - When exactly do you need to prepend “self._” to variable declarations within class methods? [duplicate]
how to tell python 3 to skip over non-digit characters from a csv file
writing numpy codes in cython with unknown dimensions
How to refresh django connection when inserting in SQL
How to get this enum if I only have a string representation in Python 2.7
How to escape Unicode in Python 3
Performance of timezone-aware Pandas DateTimeIndex
How to remove single space between text
Writing out results with function in.txt document when there's min and max?
Not understanding why I cant use use cx_Oracle with Django
Convert a complex array of array to a list
sorted on basis of two keys, descending order sort for first and ascending for second
Django + redis session sharing accross multiple hosts

Categories

HOME
facebook-graph-api
reportportal
memory-leaks
wms
phaser-framework
dataframe
pygame
google-spreadsheet-api
onenote-api
structuremap
flexbox
rfid
cortex-a
dryioc
nuxt.js
typeahead
mod-pagespeed
android-toolbar
pyyaml
movies
prestodb
ng2-dragula
rails-activerecord
embedly
tcpclient
tarantool
multiplayer
delete-file
jquery-waypoints
nmf
rhandsontable
thinking-sphinx
pygooglechart
consumer
spring-insight
data-extraction
npm-shrinkwrap
geomesa
declare
intellilock
onbackpressed
service-fabric-stateful
stress-testing
z3py
startapp
lumen-5.3
recycle-bin
gauss
xmgrace
decompress
text-classification
ruby-on-rails-2
volume
modelattribute
pagefile
hpcc
addin-express
teiid
ingres
sql-server-administration
master
cjson
backstop.js
activeweb
wcf-ria-services
foxit
qregexp
jackson-databind
coordinate-transformation
mpeg-4
cmocka
void
data-import
zuora
app.xaml
jericho-html-parser
oai
retro-computing
anti-patterns
abas
risk-analysis
achartengine
viper-architecture
gray-code
isml
stackframe
client-side-validation
django-1.6
jstat
alpha-transparency
smartystreets
indexing-service
slick-2.0
dvcs
db4o
confusion-matrix
osx-snow-leopard
fogbugz-api
windows-update
fieldset
xml-libxml
osi
xmlslurper
ninject-extensions
gjs
jpf
ubuntu-11.04
cross-domain-policy
galaxy-tab
smooth
squeel
boost-date-time
webrat
lazy-c++
outlook-form

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App