Basic Flask app not running (TypeError: required field "type_ignores" missing from Module)

The bug was fixed in werkzeug 0.15.5. Upgrade from 0.15.4 to to a later version.


I solved the error by simply executing the following line of code on the terminal:

sudo pip3 install --upgrade ipython

werkzeug library can have issues with different python versions.

First of all, upgrade the werkzeug library to be the latest, then try again.

pip3 install --upgrade werkzeug  

If that didn't work, I presume you may be using python version which kind of creates the whole issue.

You can always create a virtualenv [Install, Create, and Activate] with a specific python version where werkzeug won't cause you this issue.