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 l
The above comment by dirn Feb 24 at 3:35 is correct. However, with anaconda, uninstalling and reinstalling packages does not help. Here is a hack that got mine to work...
The werkzeug/debug
directory on my anaconda installation is missing a directory called shared
. I have a non-anaconda installation of flask (using macports in my case). I simply copied that directory from my macports installation to the anaconda installation. The command for this with full path names that I used for my flasky
conda virtual environment was:
cp -r /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/werkzeug/debug/shared ~/anaconda/envs/flasky/lib/python2.7/site-packages/werkzeug/debug
You need to do this separately for each conda virtual environment. Your path names may vary. Also, you should probably ensure that the non-anaconda installation is the same version of werkzeug.