Flask debug not working under Anaconda

anaconda, flask, python

Solution

You can also uninstall the conda packages

conda remove flask
conda remove werkzeug

Then just pip install both of those

pip install flask
pip install werkzeug

That worked for me using conda 3.4.2

Problem

I'm working in a standard development environment with Flask and am having trouble getting the debug to work. Just using the standard Hello World, with an error like so: ``` from flask import Flask app = Flask(__name__) @app.route("/") def hello(): err return "Hello World!" if __name__ == "__main__": app.run(debug=True) ``` My application breaks, but there is no dynamic debugging and I get the following error message: ``` If you enable JavaScript you can also use additional features such as code execution (if the evalex feature is enabled), automatic pasting of the exceptions and much more. ``` I have JavaScript enabled, and don't know why I'm receiving this error. Any ideas? EDIT I found this similar post here. It appears that Flask can't find a few files. ``` 127.0.0.1 - - [23/Feb/2014 22:04:37] "GET /?__debugger__=yes&cmd=resource&f=style.css HTTP/1.1" 404 - ``` I am using Anaconda and have removed and reinstalled both Flask and Werzeug, but am still having the issue.

Original source

Related problems